aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/dataloader
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-03-02 01:21:07 +0100
committer hop311 <hop3114@gmail.com>2024-03-02 01:21:07 +0100
commit35c6417af51e919194043af65870420656f48ae3 (patch)
tree87613ee327ddfbc8bbcc1c3ebf725837d0b724bf /src/openvic-simulation/dataloader
parentc44e76b4f340bb9e667dca7afd7468c78b9de967 (diff)
Cleaned up tech loading and added tech lists for areastech-improvements
Diffstat (limited to 'src/openvic-simulation/dataloader')
-rw-r--r--src/openvic-simulation/dataloader/Dataloader.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/openvic-simulation/dataloader/Dataloader.cpp b/src/openvic-simulation/dataloader/Dataloader.cpp
index b7ccba3..9df9725 100644
--- a/src/openvic-simulation/dataloader/Dataloader.cpp
+++ b/src/openvic-simulation/dataloader/Dataloader.cpp
@@ -426,15 +426,15 @@ bool Dataloader::_load_technologies(GameManager& game_manager) {
const v2script::Parser technology_file_parser = parse_defines(lookup_file(technology_file));
- if (!technology_manager.load_technology_file_areas(technology_file_parser.get_file_node())) {
- Logger::error("Failed to load technology areas and folders!");
+ if (!technology_manager.load_technology_file_folders_and_areas(technology_file_parser.get_file_node())) {
+ Logger::error("Failed to load technology folders and areas!");
ret = false;
}
ModifierManager& modifier_manager = game_manager.get_modifier_manager();
if (!technology_manager.generate_modifiers(modifier_manager)) {
- Logger::error("Failed to generate technollogy-based modifiers!");
+ Logger::error("Failed to generate technology-based modifiers!");
ret = false;
}
@@ -460,6 +460,9 @@ bool Dataloader::_load_technologies(GameManager& game_manager) {
}
technology_manager.lock_technologies();
+
+ ret &= technology_manager.generate_technology_lists();
+
return ret;
}