diff options
author | hop311 <hop3114@gmail.com> | 2024-10-27 12:59:12 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-10-29 23:55:20 +0100 |
commit | 129a1c321498ff627b785ae998801d83f9926bb9 (patch) | |
tree | 7f3226794139e08a16106fc39d9adcf43c099df7 /src/openvic-simulation/misc/Event.cpp | |
parent | 9a5468ceb4361059fcefae1a383a7c29b4f4e7be (diff) |
Finish ConditionalWeight base key parsing (including days/months/years)condition-scripts-prep-work
Diffstat (limited to 'src/openvic-simulation/misc/Event.cpp')
-rw-r--r-- | src/openvic-simulation/misc/Event.cpp | 2 |
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( |