feat: Void Corruption 2025 #2865

Merged
Sainan merged 39 commits from Slayer55555/SpaceNinjaServer:void-alerts into main 2025-10-09 00:28:35 -07:00
Showing only changes of commit b3e003672e - Show all commits

View File

@ -1566,7 +1566,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
fullyStockBaro(vt);
}
if (config.worldState?.voidCorruption) {
worldState.Alerts.push(...voidCorruptionAlerts);
worldState.Alerts = [...worldState.Alerts, ...voidCorruptionAlerts];
Sainan marked this conversation as resolved Outdated

There's really no reason to use structuredClone here. You can update IWorldState to also specify readonly IAlert[] for what little value it has.

There's really no reason to use `structuredClone` here. You can update `IWorldState` to also specify `readonly IAlert[]` for what little value it has.
}
const isFebruary = date.getUTCMonth() == 1;
if (config.worldState?.starDaysOverride ?? isFebruary) {