forked from OpenWF/SpaceNinjaServer
		
	spooky month
This commit is contained in:
		
							parent
							
								
									9ca74bf6ee
								
							
						
					
					
						commit
						db472d25cf
					
				@ -2505,11 +2505,24 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
 | 
				
			|||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (config.worldState?.naberusNights) {
 | 
					    const isOctober = date.getUTCMonth() == 9; // October = month index 9
 | 
				
			||||||
 | 
					    if (config.worldState?.naberusNights ?? isOctober) {
 | 
				
			||||||
        worldState.Goals.push({
 | 
					        worldState.Goals.push({
 | 
				
			||||||
            _id: { $oid: "66fd602de1778d583419e8e7" },
 | 
					            _id: { $oid: "66fd602de1778d583419e8e7" },
 | 
				
			||||||
            Activation: { $date: { $numberLong: "1727881200000" } },
 | 
					            Activation: {
 | 
				
			||||||
            Expiry: { $date: { $numberLong: "2000000000000" } },
 | 
					                $date: {
 | 
				
			||||||
 | 
					                    $numberLong: config.worldState?.naberusNights
 | 
				
			||||||
 | 
					                        ? "1727881200000"
 | 
				
			||||||
 | 
					                        : Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1).toString()
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            Expiry: {
 | 
				
			||||||
 | 
					                $date: {
 | 
				
			||||||
 | 
					                    $numberLong: config.worldState?.naberusNights
 | 
				
			||||||
 | 
					                        ? "2000000000000"
 | 
				
			||||||
 | 
					                        : Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 1).toString()
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
            Count: 0,
 | 
					            Count: 0,
 | 
				
			||||||
            Goal: 0,
 | 
					            Goal: 0,
 | 
				
			||||||
            Success: 0,
 | 
					            Success: 0,
 | 
				
			||||||
@ -2522,6 +2535,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
 | 
				
			|||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (config.worldState?.bellyOfTheBeast) {
 | 
					    if (config.worldState?.bellyOfTheBeast) {
 | 
				
			||||||
        worldState.Goals.push({
 | 
					        worldState.Goals.push({
 | 
				
			||||||
            _id: { $oid: "67a5035c2a198564d62e165e" },
 | 
					            _id: { $oid: "67a5035c2a198564d62e165e" },
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user