FoodPool
- Parameters
food integerweak booleanid1 integeruse1 integerstrong booleanid2 integeruse2 integer- comment
- patch
1.00
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
function FoodPool takes integer food, boolean weak, integer id1, integer use1, boolean strong, integer id2, integer use2 returns nothing if strong then call SetBuildUnit( (food - use1 * TownCount(id1)) / use2, id2 ) elseif weak then call SetBuildUnit( (food - use2 * TownCount(id2)) / use1, id1 ) endif endfunction