aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/misc/Event.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-10-27 12:59:12 +0100
committer hop311 <hop3114@gmail.com>2024-10-31 21:05:51 +0100
commit84deeffe04d730064e89b4ceaf508f3f30113ea9 (patch)
treeead850e2e354fce996778423d6cadeb638322b02 /src/openvic-simulation/misc/Event.cpp
parent9a5468ceb4361059fcefae1a383a7c29b4f4e7be (diff)
Finish ConditionalWeight base key parsing (including days/months/years)
Diffstat (limited to 'src/openvic-simulation/misc/Event.cpp')
-rw-r--r--src/openvic-simulation/misc/Event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/misc/Event.cpp b/src/openvic-simulation/misc/Event.cpp
index 3c85afb..64b1f64 100644
--- a/src/openvic-simulation/misc/Event.cpp
+++ b/src/openvic-simulation/misc/Event.cpp
@@ -183,7 +183,7 @@ bool EventManager::load_event_file(IssueManager const& issue_manager, ast::NodeC
return ret;
},
"trigger", ZERO_OR_ONE, trigger.expect_script(),
- "mean_time_to_happen", ZERO_OR_ONE, mean_time_to_happen.expect_conditional_weight(ConditionalWeight::MONTHS),
+ "mean_time_to_happen", ZERO_OR_ONE, mean_time_to_happen.expect_conditional_weight(ConditionalWeight::TIME),
"immediate", ZERO_OR_MORE, immediate.expect_script()
)(value);
ret &= register_event(