Add day length compatibility fixup for BeeRewards GS

This commit is contained in:
Jonathan G Rennison
2020-07-01 18:21:19 +01:00
parent 501f7458db
commit 8f964ee637
3 changed files with 18 additions and 1 deletions

9
bin/game/compat_brgs.nut Normal file
View File

@@ -0,0 +1,9 @@
if ("GetTimeBetweenDates" in CompanyGoal) {
CompanyGoal._GetTimeBetweenDates <- CompanyGoal.GetTimeBetweenDates;
CompanyGoal.GetTimeBetweenDates <- function(start, end)
{
return CompanyGoal._GetTimeBetweenDates(start, start + ((end - start) / GSDate.GetDayLengthFactor()));
}
GSLog.Info("Day length compatibility in effect.");
}