diff options
author | hop311 <hop3114@gmail.com> | 2024-10-27 12:59:12 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-10-31 21:05:51 +0100 |
commit | 84deeffe04d730064e89b4ceaf508f3f30113ea9 (patch) | |
tree | ead850e2e354fce996778423d6cadeb638322b02 /src/openvic-simulation/misc | |
parent | 9a5468ceb4361059fcefae1a383a7c29b4f4e7be (diff) |
Finish ConditionalWeight base key parsing (including days/months/years)
Diffstat (limited to 'src/openvic-simulation/misc')
-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( |