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/research/Technology.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/openvic-simulation/research') diff --git a/src/openvic-simulation/research/Technology.cpp b/src/openvic-simulation/research/Technology.cpp index 89c4a71..847c4b0 100644 --- a/src/openvic-simulation/research/Technology.cpp +++ b/src/openvic-simulation/research/Technology.cpp @@ -196,12 +196,14 @@ bool TechnologyManager::load_technologies_file( } bool TechnologyManager::generate_modifiers(ModifierManager& modifier_manager) const { + using enum ModifierEffect::format_t; + bool ret = true; for (TechnologyFolder const& folder : get_technology_folders()) { - ret &= modifier_manager.add_modifier_effect( - StringUtils::append_string_views(folder.get_identifier(), "_research_bonus"), true - ); + const std::string modifier_identifier = StringUtils::append_string_views(folder.get_identifier(), "_research_bonus"); + + ret &= modifier_manager.add_modifier_effect(modifier_identifier, true, PROPORTION_DECIMAL, modifier_identifier); } return ret; -- cgit v1.2.3-56-ga3b1