From 5550b237fa9b6f8c6a86eea0de9d32e28a626dc7 Mon Sep 17 00:00:00 2001 From: hop311 Date: Wed, 18 Sep 2024 23:07:28 +0100 Subject: ModifierEffect and Rule localisation keys --- src/openvic-simulation/pop/Pop.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/openvic-simulation/pop/Pop.cpp') diff --git a/src/openvic-simulation/pop/Pop.cpp b/src/openvic-simulation/pop/Pop.cpp index cde7013..d534fed 100644 --- a/src/openvic-simulation/pop/Pop.cpp +++ b/src/openvic-simulation/pop/Pop.cpp @@ -653,6 +653,8 @@ bool PopManager::load_pop_bases_into_vector( } bool PopManager::generate_modifiers(ModifierManager& modifier_manager) const { + using enum ModifierEffect::format_t; + bool ret = true; for (Strata const& strata : get_stratas()) { @@ -673,7 +675,10 @@ bool PopManager::generate_modifiers(ModifierManager& modifier_manager) const { } for (PopType const& pop_type : get_pop_types()) { - ret &= modifier_manager.add_modifier_effect(pop_type.get_identifier(), true); + ret &= modifier_manager.add_modifier_effect( + pop_type.get_identifier(), true, PROPORTION_DECIMAL, + StringUtils::append_string_views("$ENCOURAGEMENT_FOR$$", pop_type.get_identifier(), "$") + ); } return ret; -- cgit v1.2.3-56-ga3b1