Update src/services/worldStateService.ts

This commit is contained in:
Slayer55555 2025-10-07 06:18:40 -07:00
parent 0d394d4591
commit d9349137de

View File

@ -1565,14 +1565,15 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
worldState.VoidTraders.push(vt); worldState.VoidTraders.push(vt);
fullyStockBaro(vt); fullyStockBaro(vt);
} }
const voidCorruptionWeeks = config.worldState?.voidCorruption ?? 0;
const voidCorruptionWeeks = config.worldState?.voidCorruption ?? 0;
if (voidCorruptionWeeks > 0) { if (voidCorruptionWeeks > 0) {
worldState.Alerts = [ worldState.Alerts = [
...worldState.Alerts, ...worldState.Alerts,
...voidCorruptionAlerts.slice(0, voidCorruptionWeeks) ...voidCorruptionAlerts.slice(0, voidCorruptionWeeks)
]; ];
} }
const isFebruary = date.getUTCMonth() == 1; const isFebruary = date.getUTCMonth() == 1;
if (config.worldState?.starDaysOverride ?? isFebruary) { if (config.worldState?.starDaysOverride ?? isFebruary) {
worldState.Goals.push({ worldState.Goals.push({