aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/economy/GoodDefinition.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/economy/GoodDefinition.cpp
parentfb6b9439c219239691eb0201ec3f431b5dfe4893 (diff)
Add ModifierEffect targets
Diffstat (limited to 'src/openvic-simulation/economy/GoodDefinition.cpp')
-rw-r--r--src/openvic-simulation/economy/GoodDefinition.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openvic-simulation/economy/GoodDefinition.cpp b/src/openvic-simulation/economy/GoodDefinition.cpp
index ed24549..97396f2 100644
--- a/src/openvic-simulation/economy/GoodDefinition.cpp
+++ b/src/openvic-simulation/economy/GoodDefinition.cpp
@@ -89,6 +89,7 @@ bool GoodDefinitionManager::load_goods_file(ast::NodeCPtr root) {
bool GoodDefinitionManager::generate_modifiers(ModifierManager& modifier_manager) const {
using enum ModifierEffect::format_t;
+ using enum ModifierEffect::target_t;
bool ret = true;
@@ -100,7 +101,7 @@ bool GoodDefinitionManager::generate_modifiers(ModifierManager& modifier_manager
for (GoodDefinition const& good : get_good_definitions()) {
ret &= modifier_manager.add_modifier_effect(
ModifierManager::get_flat_identifier(name, good.get_identifier()), is_positive_good, PROPORTION_DECIMAL,
- make_localisation_suffix(good.get_identifier())
+ COUNTRY, make_localisation_suffix(good.get_identifier())
);
}
};