diff options
author | hop311 <hop3114@gmail.com> | 2024-09-25 23:10:21 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-10-05 22:48:41 +0200 |
commit | 4f9fd8a327b6de5fb32792a07453e9a2e245dc84 (patch) | |
tree | dc92397c8d16df21d612ad5159b8fd9b19353eb7 /src/openvic-simulation/economy/BuildingType.cpp | |
parent | fb6b9439c219239691eb0201ec3f431b5dfe4893 (diff) |
Add ModifierEffect targets
Diffstat (limited to 'src/openvic-simulation/economy/BuildingType.cpp')
-rw-r--r-- | src/openvic-simulation/economy/BuildingType.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openvic-simulation/economy/BuildingType.cpp b/src/openvic-simulation/economy/BuildingType.cpp index e7c0d59..d75f1b2 100644 --- a/src/openvic-simulation/economy/BuildingType.cpp +++ b/src/openvic-simulation/economy/BuildingType.cpp @@ -114,16 +114,17 @@ bool BuildingTypeManager::load_buildings_file( for (BuildingType const& building_type : building_types.get_items()) { using enum ModifierEffect::format_t; + using enum ModifierEffect::target_t; static constexpr std::string_view max_prefix = "max_"; static constexpr std::string_view min_prefix = "min_build_"; ret &= modifier_manager.add_modifier_effect( - StringUtils::append_string_views(max_prefix, building_type.get_identifier()), true, INT, + StringUtils::append_string_views(max_prefix, building_type.get_identifier()), true, INT, PROVINCE, StringUtils::append_string_views("$", building_type.get_identifier(), "$ $TECH_MAX_LEVEL$") ); // TODO - add custom localisation for "min_build_$building_type$" modifiers ret &= modifier_manager.add_modifier_effect( - StringUtils::append_string_views(min_prefix, building_type.get_identifier()), false, INT + StringUtils::append_string_views(min_prefix, building_type.get_identifier()), false, INT, PROVINCE ); if (building_type.is_in_province()) { |