• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.

Creating an economic building

Arkatakor

King
Joined
Mar 11, 2006
Messages
620
Location
Stockholm, Sweden
I would like to create an economic building (that generates gold based on certain resources). Is there any tag that I need to specify to let the AI know that its an economic building? If so where do I specify that?
 
The most brute-force way is to assign a really high FLAVOR_GOLD value to your building:
Code:
INSERT INTO Building_Flavors VALUES ('BUILDING_MYBUILDING', 'FLAVOR_GOLD', 9001);

That being said, I do not think (in the base game) the AI will actually consider "the number of tiles this city can work, containing resources that will be buffed with this building".
 
The most brute-force way is to assign a really high FLAVOR_GOLD value to your building:
Code:
INSERT INTO Building_Flavors VALUES ('BUILDING_MYBUILDING', 'FLAVOR_GOLD', 9001);

That being said, I do not think (in the base game) the AI will actually consider "the number of tiles this city can work, containing resources that will be buffed with this building".
This building would certainly not be a super economic building but a mid ranged one (like a market). Should I still use 9001 for that?
 
This building would certainly not be a super economic building but a mid ranged one (like a market). Should I still use 9001 for that?

EDIT: I found this in CIV5Buildings.xml; looks like i'll assign the same numeric value for my building - thanks for the SQL query, i'll use that :)

Code:
		<Row>
			<BuildingType>BUILDING_MARKET</BuildingType>
			<FlavorType>FLAVOR_GOLD</FlavorType>
			<Flavor>50</Flavor>
		</Row>
 
Back
Top Bottom