Im trying to make Encampments give production. I was able to make city centers give production/gold so I simply used the same steps, but it does not work. Database.log shows no errors, but ingame, encampments just do not give any yields at all.
I tried doing it via xml and SQL, neither works. What am I missing? The weird thing is that it obviously works for the MBANZA...and im using the same format...
I tried doing it via xml and SQL, neither works. What am I missing? The weird thing is that it obviously works for the MBANZA...and im using the same format...
Code:
<Row>
<DistrictType>DISTRICT_ENCAMPMENT</DistrictType>
<ModifierId>ENCAMPMENT_PRODUCTION</ModifierId>
</Row>
<Row>
<ModifierId>ENCAMPMENT_PRODUCTION</ModifierId>
<ModifierType>MODIFIER_PLAYER_DISTRICT_ADJUST_BASE_YIELD_CHANGE</ModifierType>
</Row>
<Row>
<ModifierId>ENCAMPMENT_PRODUCTION</ModifierId>
<Name>Amount</Name>
<Value>2</Value>
</Row>
<Row>
<ModifierId>ENCAMPMENT_PRODUCTION</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_PRODUCTION</Value>
</Row>
Code:
INSERT OR REPLACE INTO DistrictModifiers (DistrictType, ModifierId)
VALUES ('DISTRICT_ENCAMPMENT', 'ENCAMPMENT_PRODUCTION');
INSERT OR REPLACE INTO Modifiers (ModifierId, ModifierType)
VALUES ('ENCAMPMENT_PRODUCTION', 'MODIFIER_PLAYER_DISTRICT_ADJUST_BASE_YIELD_CHANGE');
INSERT OR REPLACE INTO ModifierArguments (ModifierId, Name, Value)
VALUES ('ENCAMPMENT_PRODUCTION', 'Amount', '2');
INSERT OR REPLACE INTO ModifierArguments (ModifierId, Name, Value)
VALUES ('ENCAMPMENT_PRODUCTION', 'YieldType', 'YIELD_PRODUCTION');