[BNW] How do I go about modifying the bonuses received from befriending/allying City States?

CommunistMountain

Chieftain
Joined
Aug 4, 2018
Messages
4
Newbie modder here. I simply want to edit what you get from befriending/allying CS, e.g. +2 Food in your Capital when befriending a Maritime CS. I have no idea where to even begin. The only thing I found is in the CIV5MinorCivilizations.xml in the Gameplay file, in the MinorCivilizations table, where under each City State there's a parameter named MinorCivTrait and its value is MINOR_TRAIT_MARITIME or MINOR_TRAIT_CULTURED etc., nothing else referencing their effects. The table definition states it references "MinorCivTraits(Type)" but I can't for the life of me find that, or anything else I might be able to edit to get what I want.

Are those values hardcoded into DLL or something like that?
 
The values seem to be in the Defines:
Spoiler :

This one's for Maritime CS's food:
LhKgQbl.png


This one's for Cultural CS's Culture:
6MaiViJ.png


This one's for Militaristic CS's Unit spawn:
whGRLlu.png


Relgious CS's Faith:
kUeruDp.png


Mercantile CS's Happiness:
PP8sGdK.png



(The MinorCivTraits table doesn't define anything other than text-keys and art)

EDIT: These values can be edited easily by something along the lines of:
Code:
--SQL code. Requires an OnModActivated->UpdateDatabase entry in the Actions-tab of your mod's properties.
--It can also be done using XML if you'd prefer that.
UPDATE Defines
SET Value = 4
WHERE Name = 'FRIENDS_HAPPINESS_FLAT_BONUS_AMOUNT_ANCIENT';
 
Back
Top Bottom