Comment 57 for bug 1772845

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

@Tibor:
we only defined the attribute "collects_ware_from_map" for 5 special buildings (well, quarry, lumberjack, hunter and fisher) so there are only 5 wares that have a collecting producer (water, granite, log, meat and fish).
line 2801 and 2810 are in a subroutine evaluating the need for a ranger on this field therefore it is ok to use it there.
the lines 2844 and 2845 belong to the programpart that is evaluating any other supporting building (i.e. the building has a "supports production of" AI hint). the problem is that with the frisians this includes at least the berry farm and the clay pit and neither of their producers or collectors has the attribute "collects_ware_from_map". So we need to stick to the old expressions in these lines.
line 2924 is some generic part applicable for all buildings that produce a ware and support the production of another. Again the producers for this wares don't have the collecting attribute.

@Gun this is also the reason why we can't get rid of all instances of "bo.outputs.at(0)" without further changes in the Ai hints.