Add day length compatibility fixup for BeeRewards GS
This commit is contained in:
9
bin/game/compat_brgs.nut
Normal file
9
bin/game/compat_brgs.nut
Normal 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.");
|
||||
}
|
||||
Reference in New Issue
Block a user