diff options
author | BrickPi <49528459+BrickPi@users.noreply.github.com> | 2023-10-15 21:51:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-15 21:51:46 +0200 |
commit | d1125bf50be8fd415e2ce5179fdf446918e16d93 (patch) | |
tree | 401556d0b45378c670b9101606a4fd98a207de27 /src/openvic-simulation/Modifier.cpp | |
parent | 3249e21104bab6002676abe00450e7bd3f682303 (diff) | |
parent | af4758d399a75485b9adfeb3058a526eec3c8a4d (diff) |
Merge pull request #44 from OpenVicProject/leader-loading
Implement Trait Loading
Diffstat (limited to 'src/openvic-simulation/Modifier.cpp')
-rw-r--r-- | src/openvic-simulation/Modifier.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/openvic-simulation/Modifier.cpp b/src/openvic-simulation/Modifier.cpp index fc5dcaf..97ddd8f 100644 --- a/src/openvic-simulation/Modifier.cpp +++ b/src/openvic-simulation/Modifier.cpp @@ -123,6 +123,17 @@ bool ModifierManager::setup_modifier_effects() { using enum ModifierEffect::format_t; + /* LEADER TRAIT MODIFIERS */ + ret &= add_modifier_effect("attack", true, INT); + ret &= add_modifier_effect("defence", true, INT); + ret &= add_modifier_effect("reliability", true, RAW_DECIMAL); + ret &= add_modifier_effect("morale", true); + ret &= add_modifier_effect("organisation", true); + ret &= add_modifier_effect("speed", true); + ret &= add_modifier_effect("reconnaissance", true); + ret &= add_modifier_effect("experience", true); + ret &= add_modifier_effect("attrition", false, RAW_DECIMAL); + /* MISCELLANEOUS MODIFIERS */ ret &= add_modifier_effect("movement_cost", false); ret &= add_modifier_effect("farm_rgo_size", true); ret &= add_modifier_effect("farm_rgo_eff", true); @@ -130,11 +141,9 @@ bool ModifierManager::setup_modifier_effects() { ret &= add_modifier_effect("mine_rgo_eff", true); ret &= add_modifier_effect("supply_limit", true, RAW_DECIMAL); ret &= add_modifier_effect("combat_width", false); - ret &= add_modifier_effect("defence", true, RAW_DECIMAL); ret &= add_modifier_effect("local_ship_build", false); ret &= add_modifier_effect("research_points_modifier", true); ret &= add_modifier_effect("local_rgo_output", true); - ret &= add_modifier_effect("attrition", false, RAW_DECIMAL); ret &= add_modifier_effect("immigrant_push", false); ret &= add_modifier_effect("population_growth", true); ret &= add_modifier_effect("local_RGO_throughput", true); |