+50% luxury from city states

Yaser

Chieftain
Joined
Sep 27, 2019
Messages
15
"Quantity of Resources gifted by City-States increased by 100%. Happiness from gifted Luxuries increased by 50%."

I cant find the code for +50% luxury from city states in the code here i got from "steamapps\common\Sid Meier's Civilization V\Assets\DLC\Expansion2\Gameplay\XML\GameInfo":

<Row>
<Type>POLICY_CULTURAL_DIPLOMACY</Type>
<Description>TXT_KEY_POLICY_CULTURAL_DIPLOMACY</Description>
<Civilopedia>TXT_KEY_POLICY_CULTURALDIPLOMACY_TEXT</Civilopedia>
<Help>TXT_KEY_POLICY_CULTURAL_DIPLOMACY_HELP</Help>
<PolicyBranchType>POLICY_BRANCH_PATRONAGE</PolicyBranchType>
<CultureCost>10</CultureCost>
<GridX>2</GridX>
<GridY>3</GridY>
<MinorResourceBonus>true</MinorResourceBonus>
<PortraitIndex>40</PortraitIndex>
<IconAtlas>POLICY_ATLAS</IconAtlas>
<IconAtlasAchieved>POLICY_A_ATLAS</IconAtlasAchieved>
</Row>


Where is it?
 
Code:
<MinorResourceBonus>true</MinorResourceBonus>
It's a Boolean effect: either on or off. The values of the effect are not accessible to manipulation by SQL or XML editing.
 
So

<MinorResourceBonus>true</MinorResourceBonus>

turns on BOTH "Quantity of Resources gifted by City-States increased by 100%" AND "Happiness from gifted Luxuries increased by 50%."? It's not two different effects?
 
There are many effects which are only Boolean values in the XML / SQL database (either on or off for a given game element like a Social Policy) but which have multiple "effects" when turned on. These effects are directly coded in the game's DLL source code -- all an XML or SQL mod can do is either turn the Boolean on (thereby enabling all the effects associated with the Boolean) or turn it off (thereby cancelling the effects of the Boolean). By default most Boolean effects are set to "false" except for the one and only Building, Wonder, Social Policy, etc., that has the effect turned on by having the Boolean set to a value of "true".

Policy POLICY_CULTURAL_DIPLOMACY has no other code in the xml file for social policies except for flavor values which are used to make an AI player value the policy more when playing for a certain type of strategy, and the fact that POLICY_SCHOLASTICISM is a prereq for choosing POLICY_CULTURAL_DIPLOMACY. Ergo the Boolean column "MinorResourceBonus" has all those effects rolled into it at the DLL source code level.
 
Ergo the Boolean column "MinorResourceBonus" has all those effects rolled into it at the DLL source code level.

Correct. One Boolean, two effects. The actual multipliers are controlled by the globals MINOR_POLICY_RESOURCE_MULTIPLIER and MINOR_POLICY_RESOURCE_HAPPINESS_MULTIPLIER
 
Top Bottom