feat: Void Corruption 2025 #2865
@ -1568,10 +1568,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
|
|||||||
|
|
||||||
const voidCorruptionWeeks = config.worldState?.voidCorruption ?? 0;
|
const voidCorruptionWeeks = config.worldState?.voidCorruption ?? 0;
|
||||||
|
Sainan marked this conversation as resolved
Outdated
|
|||||||
if (voidCorruptionWeeks > 0) {
|
if (voidCorruptionWeeks > 0) {
|
||||||
worldState.Alerts = [
|
worldState.Alerts = [...worldState.Alerts, ...voidCorruptionAlerts.slice(0, voidCorruptionWeeks)];
|
||||||
...worldState.Alerts,
|
|
||||||
...voidCorruptionAlerts.slice(0, voidCorruptionWeeks)
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const isFebruary = date.getUTCMonth() == 1;
|
const isFebruary = date.getUTCMonth() == 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user
There's really no reason to use
structuredClonehere. You can updateIWorldStateto also specifyreadonly IAlert[]for what little value it has.