I've cracked my brain trying to understand farms, but the more I look at the XML file the more confused I get.
Can someone explain how farms work currently in vanilla Glest/GAE?
Do they regenerate the food stored back to 20?
I know each time you build a farm you gain 20 food to your total. So when you make a unit you lose 1(or whatever) food from that total?
In particular, what's going on here?
<resource-requirements>
<resource name="gold" amount="100"/>
<resource name="wood" amount="150"/>
<resource name="stone" amount="50"/>
<resource name="food" amount="-10"/>
</resource-requirements>
<resources-stored>
<resource name="food" amount="20"/>
</resources-stored>
-Why is there a negative 10 under Food amount for resource requirements?
-Resources stored 20, does this get regenerated back to 20 after I use up some of the food to produce units?
From Food.xml
<resource>
<image path="images/food.bmp"/>
<type value="consumable">
<interval value="30"/>
</type>
</resource>
-Is Interval Value how frequently each unit uses up a food?
-If that's the case, what controls how food is brought back in? Does a player need to build more farms/livestock to keep food positive?
The reason I'm asking, is that in my game food will be a static resource (like wood, gold, etc), except that I want the farms to slowly produce it or trickle it in during a game. Units only use up food the first time you build them (like gold or any other static resource).
Next;
If you notice on the resource bar above you see something like Stone 400/1500. I know 400 is the current amount I'm holding. But what is the 1500? Is that the maximum I can hold?
If so, how do I change that, or how do I remove the limit?
One of the resources in project Ethos is Crowns. These are only used to buy "hero" type units. These are very limited and become more or less strategic objectives on the map (hence the large question mark above them, which will be effect later on).
For testing purposes I gave my starting tech, 1 crown to start with (the peasants or not complete so I can't currently gather from chests, yet). However I'm noticing 1/0 meaning I have 1 in hand over a max of 0? How do I change the maximum you can have?
Thanks again for any help you folks can offer.