From dfa42bc38ebc34904b2325a88cdd16514044cfcb Mon Sep 17 00:00:00 2001 From: hop311 Date: Tue, 26 Dec 2023 22:40:50 +0000 Subject: Added political/policy rules --- src/openvic-simulation/dataloader/Dataloader.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/openvic-simulation/dataloader/Dataloader.cpp') diff --git a/src/openvic-simulation/dataloader/Dataloader.cpp b/src/openvic-simulation/dataloader/Dataloader.cpp index 71cef82..fc4e64c 100644 --- a/src/openvic-simulation/dataloader/Dataloader.cpp +++ b/src/openvic-simulation/dataloader/Dataloader.cpp @@ -737,6 +737,10 @@ bool Dataloader::load_defines(GameManager& game_manager) const { Logger::error("Failed to set up modifier effects!"); ret = false; } + if (!game_manager.get_politics_manager().get_rule_manager().setup_rules()) { + Logger::error("Failed to set up rules!"); + ret = false; + } if (!game_manager.get_define_manager().load_defines_file(parse_lua_defines(lookup_file(defines_file)).get_file_node())) { Logger::error("Failed to load defines!"); ret = false; -- cgit v1.2.3-56-ga3b1