aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/research/Technology.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-09-20 23:45:19 +0200
committer hop311 <hop3114@gmail.com>2024-09-20 23:45:19 +0200
commit3fcdd0c7fce2de4cbe14a0cc3d6fb4c2731b93d9 (patch)
tree68fca0f77f6b20f3e1fe98d32a5a79311cfd3edc /src/openvic-simulation/research/Technology.cpp
parent118570dc7cf9ae9daf324c2aaba5a5d86fb2c330 (diff)
Add modifier type enummodifier-types
Diffstat (limited to 'src/openvic-simulation/research/Technology.cpp')
-rw-r--r--src/openvic-simulation/research/Technology.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/research/Technology.cpp b/src/openvic-simulation/research/Technology.cpp
index 847c4b0..a5256f3 100644
--- a/src/openvic-simulation/research/Technology.cpp
+++ b/src/openvic-simulation/research/Technology.cpp
@@ -19,7 +19,7 @@ Technology::Technology(
building_set_t&& new_activated_buildings,
ModifierValue&& new_values,
ConditionalWeight&& new_ai_chance
-) : Modifier { new_identifier, std::move(new_values) },
+) : Modifier { new_identifier, std::move(new_values), modifier_type_t::TECHNOLOGY },
area { new_area },
year { new_year },
cost { new_cost },
@@ -34,7 +34,7 @@ bool Technology::parse_scripts(DefinitionManager const& definition_manager) {
}
TechnologySchool::TechnologySchool(std::string_view new_identifier, ModifierValue&& new_values)
- : Modifier { new_identifier, std::move(new_values) } {}
+ : Modifier { new_identifier, std::move(new_values), modifier_type_t::TECH_SCHOOL } {}
bool TechnologyManager::add_technology_folder(std::string_view identifier) {
if (identifier.empty()) {