forked from OpenWF/SpaceNinjaServer
prettier
This commit is contained in:
parent
8957da5275
commit
9b1db045a8
@ -1567,15 +1567,13 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const vcWeeks = [
|
const vcWeeks = [
|
||||||
["voidCorruptionWeek1", 0],
|
["voidCorruptionWeek1", 0],
|
||||||
["voidCorruptionWeek2", 1],
|
["voidCorruptionWeek2", 1],
|
||||||
["voidCorruptionWeek3", 2],
|
["voidCorruptionWeek3", 2],
|
||||||
["voidCorruptionWeek4", 3],
|
["voidCorruptionWeek4", 3],
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
const selected = vcWeeks
|
const selected = vcWeeks.filter(([flag]) => config.worldState?.[flag]).map(([, idx]) => voidCorruptionAlerts[idx]);
|
||||||
.filter(([flag]) => (config.worldState)?.[flag])
|
|
||||||
.map(([, idx]) => voidCorruptionAlerts[idx]);
|
|
||||||
|
|
||||||
if (selected.length) {
|
if (selected.length) {
|
||||||
worldState.Alerts = [...worldState.Alerts, ...selected];
|
worldState.Alerts = [...worldState.Alerts, ...selected];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user