From 73671cfa8cc37c8d03b3ebaacd4e1db5eee417ea Mon Sep 17 00:00:00 2001 From: Webster Sheets Date: Tue, 24 Sep 2024 23:37:45 -0400 Subject: [PATCH] MissionUtils: add Hours, Weeks time units --- data/modules/MissionUtils.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/data/modules/MissionUtils.lua b/data/modules/MissionUtils.lua index 540ad8de7b8..71df4fc8b07 100644 --- a/data/modules/MissionUtils.lua +++ b/data/modules/MissionUtils.lua @@ -8,11 +8,15 @@ local utils = require "utils" local AU = 149598000000 local AU_sqrt = math.sqrt(AU) -local Days = 24*60*60 +local Hours = 60*60 +local Days = 24*Hours +local Weeks = 7*Days local MissionUtils = { AU = AU, - Days = Days + Days = Days, + Hours = Hours, + Weeks = Weeks, } ---@class MissionUtils.Calculator