feat: Void Corruption 2025 #2865
@ -1567,15 +1567,13 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const vcWeeks = [
 | 
					    const vcWeeks = [
 | 
				
			||||||
| 
						
							
	
	
	
	
	
	
	
	 
					
					Sainan marked this conversation as resolved
					
						
						
							Outdated
						
					
				 
				 | 
				|||||||
    ["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
	
There's really no reason to use
structuredClonehere. You can updateIWorldStateto also specifyreadonly IAlert[]for what little value it has.