aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/Modifier.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-10-17 00:37:21 +0200
committer GitHub <noreply@github.com>2023-10-17 00:37:21 +0200
commite65646f260360f634cc7d4ff28e7676c766ebcd8 (patch)
treebe293fe4b4597b74c9d35143a551a8fb33f80290 /src/openvic-simulation/Modifier.cpp
parentfe319098e49c9841219a9e118a30ebef05eb2c51 (diff)
parentf4f41b6c51ce7a1d719759128b2af92604df5182 (diff)
Merge pull request #54 from OpenVicProject/national-values-loading
Implement National Values Loading
Diffstat (limited to 'src/openvic-simulation/Modifier.cpp')
-rw-r--r--src/openvic-simulation/Modifier.cpp41
1 files changed, 22 insertions, 19 deletions
diff --git a/src/openvic-simulation/Modifier.cpp b/src/openvic-simulation/Modifier.cpp
index 97ddd8f..8910715 100644
--- a/src/openvic-simulation/Modifier.cpp
+++ b/src/openvic-simulation/Modifier.cpp
@@ -123,31 +123,34 @@ bool ModifierManager::setup_modifier_effects() {
using enum ModifierEffect::format_t;
- /* LEADER TRAIT MODIFIERS */
+ /* Generic Modifier Effects */
+ ret &= add_modifier_effect("assimilation_rate", true);
ret &= add_modifier_effect("attack", true, INT);
+ ret &= add_modifier_effect("attrition", false, RAW_DECIMAL);
+ ret &= add_modifier_effect("badboy", false, RAW_DECIMAL);
+ ret &= add_modifier_effect("combat_width", false);
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);
- ret &= add_modifier_effect("mine_rgo_size", true);
- 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("local_ship_build", false);
- ret &= add_modifier_effect("research_points_modifier", true);
- ret &= add_modifier_effect("local_rgo_output", true);
+ ret &= add_modifier_effect("farm_rgo_size", true);
ret &= add_modifier_effect("immigrant_push", false);
- ret &= add_modifier_effect("population_growth", true);
+ ret &= add_modifier_effect("local_rgo_output", true);
ret &= add_modifier_effect("local_RGO_throughput", true);
- ret &= add_modifier_effect("assimilation_rate", true);
+ ret &= add_modifier_effect("local_ship_build", false);
+ ret &= add_modifier_effect("mine_rgo_eff", true);
+ ret &= add_modifier_effect("mine_rgo_size", true);
+ ret &= add_modifier_effect("mobilisation_size", true);
+ ret &= add_modifier_effect("mobilisation_economy_impact", false);
+ ret &= add_modifier_effect("mobilisation_impact", false);
+ ret &= add_modifier_effect("morale", true);
+ ret &= add_modifier_effect("movement_cost", false);
+ ret &= add_modifier_effect("organisation", true);
+ ret &= add_modifier_effect("population_growth", true);
+ ret &= add_modifier_effect("reconnaissance", true);
+ ret &= add_modifier_effect("reliability", true, RAW_DECIMAL);
+ ret &= add_modifier_effect("research_points_modifier", true);
+ ret &= add_modifier_effect("speed", true);
+ ret &= add_modifier_effect("supply_limit", true, RAW_DECIMAL);
/* These should be added automatically for each Building loaded (or at least
* non-factories), however currently we need modifier effects locked before we