fix: don't push thermal fractures event if it's not activated yet #2722

Merged
Sainan merged 1 commits from thermia-fix into main 2025-08-29 17:37:35 -07:00

View File

@ -2639,6 +2639,8 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
const activation = config.worldState?.thermiaFracturesOverride ? 1740416400000 : getSortieTime(activeStartDay);
const expiry = config.worldState?.thermiaFracturesOverride ? 2000000000000 : getSortieTime(activeStartDay + 14);
// If we push it, the game may show the event even tho it's not activated yet (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/2721)
if (timeMs >= activation) {
worldState.Goals.push({
_id: { $oid: "5c7cb0d00000000000000000" },
Activation: { $date: { $numberLong: activation.toString() } },
@ -2710,6 +2712,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
});
}
}
}
// Nightwave Challenges
const nightwaveSyndicateTag = getNightwaveSyndicateTag(buildLabel);