aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/Rebel.cpp
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2023-12-05 10:16:27 +0100
committer zaaarf <me@zaaarf.foo>2023-12-05 10:16:27 +0100
commitfa2ca50905f327713207069cf9a2e66cf6c00076 (patch)
treea6c82c543d5fc52183ca1363e171dbd4cc161943 /src/openvic-simulation/politics/Rebel.cpp
parent444a27726695478e44e0166e75df1f354b6432d5 (diff)
feat: implemented invention dataloading
Diffstat (limited to 'src/openvic-simulation/politics/Rebel.cpp')
-rw-r--r--src/openvic-simulation/politics/Rebel.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/openvic-simulation/politics/Rebel.cpp b/src/openvic-simulation/politics/Rebel.cpp
index e58b3de..ec39c9e 100644
--- a/src/openvic-simulation/politics/Rebel.cpp
+++ b/src/openvic-simulation/politics/Rebel.cpp
@@ -142,4 +142,18 @@ bool RebelManager::load_rebels_file(
lock_rebel_types();
return ret;
+}
+
+bool RebelManager::generate_modifiers(ModifierManager& modifier_manager) {
+ bool ret = true;
+
+ modifier_manager.register_complex_modifier("rebel_org_gain");
+
+ ret &= modifier_manager.add_modifier_effect("rebel_org_gain_all", false);
+
+ for (RebelType const& rebel_type : get_rebel_types()) {
+ std::string modifier_name = StringUtils::append_string_views("rebel_org_gain_", rebel_type.get_identifier());
+ ret &= modifier_manager.add_modifier_effect(modifier_name, false);
+ }
+ return ret;
} \ No newline at end of file