I'm trying to give the policy "Survey" an additional bonus 90% production towards scouts, and the code below creates entries in the PolicyModifiers, Modifiers, and ModifierArguments table (I've checked that it does it correctly in SQLite). It follows the formatting of other policies such as "Agoge" perfectly, yet does nothing in game for some reason.
Does anyone know why it doesn't work?
Does anyone know why it doesn't work?
Code:
--50% Production towards Recon Units.
--Ancient
-- PolicyModifiers Table entry
INSERT INTO PolicyModifiers (PolicyType, ModifierId)
VALUES ('POLICY_SURVEY', 'SURVEY_ANCIENT_RECON_PRODUCTION');
-- Modifiers Table entry
INSERT INTO Modifiers (ModifierId, ModifierType)
VALUES ('SURVEY_ANCIENT_RECON_PRODUCTION', 'MODIFIER_PLAYER_CITIES_ADJUST_UNIT_TAG_ERA_PRODUCTION');
-- ModifierArguments Table entries
INSERT INTO ModifierArguments (ModifierId, Name, Value, Extra)
VALUES ('SURVEY_ANCIENT_RECON_PRODUCTION', 'UnitPromotionClass', 'PROMOTION_CLASS_RECON', '-1');
INSERT INTO ModifierArguments (ModifierId, Name, Value, Extra)
VALUES ('SURVEY_ANCIENT_RECON_PRODUCTION', 'EraType', 'ERA_ANCIENT', '-1');
INSERT INTO ModifierArguments (ModifierId, Name, Value, Extra)
VALUES ('SURVEY_ANCIENT_RECON_PRODUCTION', 'Amount', '90', '-1');
Last edited: