feat: YearIteration cycling every 4 weeks
This commit is contained in:
parent
1dba3aa0bd
commit
d92f96cef1
@ -88,7 +88,7 @@ export const worldStateController: RequestHandler = (req, res) => {
|
||||
][week % 8]
|
||||
});
|
||||
|
||||
// 1999 Calendar Season cycling every week
|
||||
// 1999 Calendar Season cycling every week + YearIteration every 4 weeks
|
||||
worldState.KnownCalendarSeasons[0].Activation = { $date: { $numberLong: weekStart.toString() } };
|
||||
worldState.KnownCalendarSeasons[0].Expiry = { $date: { $numberLong: weekEnd.toString() } };
|
||||
worldState.KnownCalendarSeasons[0].Season = ["CST_WINTER", "CST_SPRING", "CST_SUMMER", "CST_FALL"][week % 4];
|
||||
@ -98,6 +98,7 @@ export const worldStateController: RequestHandler = (req, res) => {
|
||||
static1999SummerDays,
|
||||
static1999FallDays
|
||||
][week % 4];
|
||||
worldState.KnownCalendarSeasons[0].YearIteration = Math.trunc(week / 4);
|
||||
|
||||
// Sentient Anomaly cycling every 30 minutes
|
||||
const halfHour = Math.trunc(new Date().getTime() / (unixTimesInMs.hour / 2));
|
||||
@ -175,4 +176,5 @@ interface ICalendarSeason {
|
||||
Days: {
|
||||
day: number;
|
||||
}[];
|
||||
YearIteration: number;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user