aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/research/Technology.cpp
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/research/Technology.cpp
parentfb6b9439c219239691eb0201ec3f431b5dfe4893 (diff)
Add ModifierEffect targets
Diffstat (limited to 'src/openvic-simulation/research/Technology.cpp')
-rw-r--r--src/openvic-simulation/research/Technology.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/openvic-simulation/research/Technology.cpp b/src/openvic-simulation/research/Technology.cpp
index a5256f3..3284193 100644
--- a/src/openvic-simulation/research/Technology.cpp
+++ b/src/openvic-simulation/research/Technology.cpp
@@ -197,13 +197,16 @@ bool TechnologyManager::load_technologies_file(
bool TechnologyManager::generate_modifiers(ModifierManager& modifier_manager) const {
using enum ModifierEffect::format_t;
+ using enum ModifierEffect::target_t;
bool ret = true;
for (TechnologyFolder const& folder : get_technology_folders()) {
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);
+ ret &= modifier_manager.add_modifier_effect(
+ modifier_identifier, true, PROPORTION_DECIMAL, COUNTRY, modifier_identifier
+ );
}
return ret;