feat: xtra cheese rotation #2191

Merged
Sainan merged 2 commits from cheese into main 2025-06-17 17:32:34 -07:00
Showing only changes of commit 4c8662a668 - Show all commits

View File

@ -1297,8 +1297,12 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
pushVoidStorms(worldState.VoidStorms, hour); pushVoidStorms(worldState.VoidStorms, hour);
} }
// Sentient Anomaly cycling every 30 minutes // Sentient Anomaly + Xtra Cheese cycles
const halfHour = Math.trunc(timeMs / (unixTimesInMs.hour / 2)); const halfHour = Math.trunc(timeMs / (unixTimesInMs.hour / 2));
const hourInSeconds = 3600;
const cheeseInterval = hourInSeconds * 8;
const cheeseDuration = hourInSeconds * 2;
const cheeseIndex = Math.trunc(timeSecs / cheeseInterval);
const tmp = { const tmp = {
cavabegin: "1690761600", cavabegin: "1690761600",
PurchasePlatformLockEnabled: true, PurchasePlatformLockEnabled: true,
@ -1323,6 +1327,11 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
}, },
ennnd: true, ennnd: true,
mbrt: true, mbrt: true,
fbst: {
a: cheeseIndex * cheeseInterval,
e: cheeseIndex * cheeseInterval + cheeseDuration,
n: (cheeseIndex + 1) * hourInSeconds * 8
},
sfn: [550, 553, 554, 555][halfHour % 4] sfn: [550, 553, 554, 555][halfHour % 4]
}; };
worldState.Tmp = JSON.stringify(tmp); worldState.Tmp = JSON.stringify(tmp);