FlavorType MEANING?

Imnoob

Chieftain
Joined
Jan 14, 2017
Messages
25
can someone explain what is Flavor type concerning resources
Resource Flavors
I'm trying to make a resources mod.
Thanks
 
Table <Resource_Flavors> is used to tell the AI what the resource is good for.

So for Iron the resource has a flavor setting as
Code:
<Row>
	<ResourceType>RESOURCE_IRON</ResourceType>
	<FlavorType>FLAVOR_OFFENSE</FlavorType>
	<Flavor>10</Flavor>
</Row>
This tells the AI that Iron is good to have when the AI wants to go attack someone, essentially. These flavors then match up to various flavors that are given to Leaders. So if a leader has a flavor setting for FLAVOR_OFFENSE that is 6 or higher, that leader will tend to value things that give FLAVOR_OFFENSE higher than things that do not, all else being equal.

But you cannot make all AI players go goo-goo nuts to get Iron at the expense of all else by giving Iron a value like <Flavor>100</Flavor> or by giving all leaders a <FlavorType>FLAVOR_OFFENSE</FlavorType> setting that is crazy high. First because <Leader_Flavors> only go to 12, and second a particular flavoring only really comes into play when an AI determines it needs more offense, more defense, more food, etc.

For the human player these Flavor settings mean nothing.
 
Top Bottom