aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/pop
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-01-12 20:44:55 +0100
committer GitHub <noreply@github.com>2024-01-12 20:44:55 +0100
commite79d3e0416e62883c697225b090d03abafc7bb30 (patch)
treedb11a1c0c0829bb5af6135f855b2af3f6ea095be /src/openvic-simulation/pop
parent6301a3e47a1a36dd926f7819e9c4c9244851fb0b (diff)
parent518ab7b436dcaa2e93eb06cdf9b1e0d17b2113ff (diff)
Merge pull request #127 from OpenVicProject/national-focus-modifiers
Added NationalFocus ModifierEffects + bool variables
Diffstat (limited to 'src/openvic-simulation/pop')
-rw-r--r--src/openvic-simulation/pop/Pop.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openvic-simulation/pop/Pop.cpp b/src/openvic-simulation/pop/Pop.cpp
index 0c70842..d15bd2e 100644
--- a/src/openvic-simulation/pop/Pop.cpp
+++ b/src/openvic-simulation/pop/Pop.cpp
@@ -334,6 +334,11 @@ bool PopManager::generate_modifiers(ModifierManager& modifier_manager) const {
strata_modifier("_everyday_needs", false);
strata_modifier("_luxury_needs", false);
}
+
+ for (PopType const& pop_type : get_pop_types()) {
+ ret &= modifier_manager.add_modifier_effect(pop_type.get_identifier(), true);
+ }
+
return ret;
}