Aheadatime
Prince
- Joined
- Dec 21, 2009
- Messages
- 325
While working on the tech tree (including new buildings, wonders, techs, etc), I've come across an issue that I don't have the skill to resolve.
Essentially, I want a new Lua table similar to LocalResourceOrs and LocalResourceAnds, except that I want the table to scan for unimproved resources within working radius of a city.
Example building is the Garden. +1 food for each nearby Bananas, Wheat, and Truffles. Since some cities may have access to Bananas without access to the other resources, requiring the city to improve the Bananas to gain access to the Garden would feel crappy, as Bananas are much better unimproved.
I realize that I can just forgo any resource requirement for construction, but that would create visual clutter. Ie, you can build a Garden in cities that don't have Bananas, Wheat, or Truffles, and the building itself doesn't provide any flat bonuses. Why is it in my Production menu then?
Could anyone help me with this?
Essentially, I want a new Lua table similar to LocalResourceOrs and LocalResourceAnds, except that I want the table to scan for unimproved resources within working radius of a city.
Example building is the Garden. +1 food for each nearby Bananas, Wheat, and Truffles. Since some cities may have access to Bananas without access to the other resources, requiring the city to improve the Bananas to gain access to the Garden would feel crappy, as Bananas are much better unimproved.
I realize that I can just forgo any resource requirement for construction, but that would create visual clutter. Ie, you can build a Garden in cities that don't have Bananas, Wheat, or Truffles, and the building itself doesn't provide any flat bonuses. Why is it in my Production menu then?
Could anyone help me with this?