Code:
if(irec->GetNumNeedsCityGood() > 0) { sint32 s; bool found = false; for(s = 0; s < irec->GetNumNeedsCityGood(); s++) { if(irec->GetNeedsCityGoodIndex(s) == m_collectingResources || m_buyingResources) { found = true; break; } } if(!found) return FALSE; }
Now I'm NOT looking to make it like Civ3 where you need road connections etc, because if only certain cities can build units it makes not only the good strategic but the cities strategic (unless you trade the good within the empire).
But I'm not sure m_buyingResources and m_collectingResources pertains to goods. I haven't mapped out how this class is being filled (not sure if it counts food, prod, gold) but I think its goods. If this is the case then I'd like to add this code along with my already finished stuff.
Comment