aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/pop
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-09-25 23:10:21 +0200
committer hop311 <hop3114@gmail.com>2024-10-05 22:48:41 +0200
commit4f9fd8a327b6de5fb32792a07453e9a2e245dc84 (patch)
treedc92397c8d16df21d612ad5159b8fd9b19353eb7 /src/openvic-simulation/pop
parentfb6b9439c219239691eb0201ec3f431b5dfe4893 (diff)
Add ModifierEffect targets
Diffstat (limited to 'src/openvic-simulation/pop')
-rw-r--r--src/openvic-simulation/pop/Pop.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openvic-simulation/pop/Pop.cpp b/src/openvic-simulation/pop/Pop.cpp
index e89d510..aeaeef5 100644
--- a/src/openvic-simulation/pop/Pop.cpp
+++ b/src/openvic-simulation/pop/Pop.cpp
@@ -654,6 +654,7 @@ bool PopManager::load_pop_bases_into_vector(
bool PopManager::generate_modifiers(ModifierManager& modifier_manager) const {
using enum ModifierEffect::format_t;
+ using enum ModifierEffect::target_t;
bool ret = true;
@@ -662,11 +663,12 @@ bool PopManager::generate_modifiers(ModifierManager& modifier_manager) const {
std::string_view suffix, bool is_positive_good
) -> void {
ret &= modifier_manager.add_modifier_effect(
- StringUtils::append_string_views(strata.get_identifier(), suffix), is_positive_good, PROPORTION_DECIMAL
+ StringUtils::append_string_views(strata.get_identifier(), suffix), is_positive_good, PROPORTION_DECIMAL,
+ COUNTRY
);
};
- strata_modifier("_income_modifier", true);
+ strata_modifier("_income_modifier", true); // Has no effect in game
strata_modifier("_vote", true);
strata_modifier("_life_needs", false);