aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/modifier/ModifierManager.cpp
diff options
context:
space:
mode:
author wvpm <24685035+wvpm@users.noreply.github.com>2024-10-29 10:50:05 +0100
committer wvpm <24685035+wvpm@users.noreply.github.com>2024-10-29 10:50:05 +0100
commit80233199b7cfee38b655a5123d0e65b1f849e345 (patch)
tree90874c7993e610d5767c34f291adb6de75502fef /src/openvic-simulation/modifier/ModifierManager.cpp
parent0f2074fc51cfab930e2a672125c1625d9a47fb06 (diff)
Support attrition modifier from terrainattrition_local_modifier
Diffstat (limited to 'src/openvic-simulation/modifier/ModifierManager.cpp')
-rw-r--r--src/openvic-simulation/modifier/ModifierManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openvic-simulation/modifier/ModifierManager.cpp b/src/openvic-simulation/modifier/ModifierManager.cpp
index cd330fd..663e296 100644
--- a/src/openvic-simulation/modifier/ModifierManager.cpp
+++ b/src/openvic-simulation/modifier/ModifierManager.cpp
@@ -488,6 +488,7 @@ bool ModifierManager::setup_modifier_effects() {
ret &= register_base_province_modifier_effect(
modifier_effect_cache.local_ship_build, "local_ship_build", false, PROPORTION_DECIMAL
);
+ ret &= register_terrain_modifier_effect(modifier_effect_cache.attrition_local, "attrition", false, PROPORTION_DECIMAL, "UA_ATTRITION");
ret &= register_base_province_modifier_effect(modifier_effect_cache.max_attrition, "max_attrition", false, RAW_DECIMAL);
ret &= register_technology_modifier_effect(
modifier_effect_cache.mine_rgo_throughput_global, "mine_rgo_eff", true, PROPORTION_DECIMAL, "TECH_MINE_OUTPUT"
@@ -530,7 +531,7 @@ bool ModifierManager::setup_modifier_effects() {
/* Military Modifier Effects */
ret &= register_leader_modifier_effect(modifier_effect_cache.attack_leader, "attack", true, INT, "TRAIT_ATTACK");
- ret &= register_leader_modifier_effect(modifier_effect_cache.attrition, "attrition", false, RAW_DECIMAL, "ATTRITION");
+ ret &= register_leader_modifier_effect(modifier_effect_cache.attrition_leader, "attrition", false, RAW_DECIMAL, "ATTRITION");
ret &= register_leader_modifier_effect(modifier_effect_cache.defence_leader, "defence", true, INT, "TRAIT_DEFEND");
ret &= register_leader_modifier_effect(
modifier_effect_cache.experience, "experience", true, PROPORTION_DECIMAL, "TRAIT_EXPERIENCE"