forked from OpenWF/SpaceNinjaServer
		
	feat: Nights of Naberus (#2817)
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Reviewed-on: OpenWF/SpaceNinjaServer#2817 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: Gian <gianplu55@gmail.com> Co-committed-by: Gian <gianplu55@gmail.com>
This commit is contained in:
		
							parent
							
								
									e5247700df
								
							
						
					
					
						commit
						9426359370
					
				@ -38,6 +38,7 @@
 | 
			
		||||
    "anniversary": null,
 | 
			
		||||
    "hallowedNightmares": false,
 | 
			
		||||
    "hallowedNightmaresRewardsOverride": 0,
 | 
			
		||||
    "naberusNightsOverride": null,
 | 
			
		||||
    "proxyRebellion": false,
 | 
			
		||||
    "proxyRebellionRewardsOverride": 0,
 | 
			
		||||
    "galleonOfGhouls": 0,
 | 
			
		||||
 | 
			
		||||
@ -48,6 +48,7 @@ export interface IConfig {
 | 
			
		||||
        anniversary?: number;
 | 
			
		||||
        hallowedNightmares?: boolean;
 | 
			
		||||
        hallowedNightmaresRewardsOverride?: number;
 | 
			
		||||
        naberusNightsOverride?: boolean;
 | 
			
		||||
        proxyRebellion?: boolean;
 | 
			
		||||
        proxyRebellionRewardsOverride?: number;
 | 
			
		||||
        galleonOfGhouls?: number;
 | 
			
		||||
 | 
			
		||||
@ -2504,6 +2504,37 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
 | 
			
		||||
            BonusReward: { items: ["/Lotus/StoreItems/Upgrades/Skins/Clan/BountyHunterBadgeItem"] }
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const isOctober = date.getUTCMonth() == 9; // October = month index 9
 | 
			
		||||
    if (config.worldState?.naberusNightsOverride ?? isOctober) {
 | 
			
		||||
        worldState.Goals.push({
 | 
			
		||||
            _id: { $oid: "66fd602de1778d583419e8e7" },
 | 
			
		||||
            Activation: {
 | 
			
		||||
                $date: {
 | 
			
		||||
                    $numberLong: config.worldState?.naberusNightsOverride
 | 
			
		||||
                        ? "1727881200000"
 | 
			
		||||
                        : Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1).toString()
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
            Expiry: {
 | 
			
		||||
                $date: {
 | 
			
		||||
                    $numberLong: config.worldState?.naberusNightsOverride
 | 
			
		||||
                        ? "2000000000000"
 | 
			
		||||
                        : Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 1).toString()
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
            Count: 0,
 | 
			
		||||
            Goal: 0,
 | 
			
		||||
            Success: 0,
 | 
			
		||||
            Personal: true,
 | 
			
		||||
            Desc: "/Lotus/Language/Events/HalloweenNaberusName",
 | 
			
		||||
            ToolTip: "/Lotus/Language/Events/HalloweenNaberusDesc",
 | 
			
		||||
            Icon: "/Lotus/Interface/Icons/JackOLanternColour.png",
 | 
			
		||||
            Tag: "DeimosHalloween",
 | 
			
		||||
            Node: "DeimosHub"
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (config.worldState?.bellyOfTheBeast) {
 | 
			
		||||
        worldState.Goals.push({
 | 
			
		||||
            _id: { $oid: "67a5035c2a198564d62e165e" },
 | 
			
		||||
 | 
			
		||||
@ -1207,6 +1207,14 @@
 | 
			
		||||
                                        </select>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                </div>
 | 
			
		||||
                                <div class="form-group mt-2">
 | 
			
		||||
                                    <label class="form-label" for="worldState.naberusNightsOverride" data-loc="worldState_naberusNights"></label>
 | 
			
		||||
                                    <select class="form-control" id="worldState.naberusNightsOverride" data-default="null">
 | 
			
		||||
                                        <option value="null" data-loc="normal"></option>
 | 
			
		||||
                                        <option value="true" data-loc="enabled"></option>
 | 
			
		||||
                                        <option value="false" data-loc="disabled"></option>
 | 
			
		||||
                                    </select>
 | 
			
		||||
                                </div>
 | 
			
		||||
                                <div class="form-group mt-2 d-flex gap-2">
 | 
			
		||||
                                    <div class="flex-fill">
 | 
			
		||||
                                        <label class="form-label" for="worldState.proxyRebellion" data-loc="worldState_proxyRebellion"></label>
 | 
			
		||||
 | 
			
		||||
@ -284,6 +284,7 @@ dict = {
 | 
			
		||||
    worldState_hallowedFlame: `Geweihte Flamme`,
 | 
			
		||||
    worldState_hallowedNightmares: `Geweihte Albträume`,
 | 
			
		||||
    worldState_hallowedNightmaresRewards: `[UNTRANSLATED] Hallowed Nightmares Rewards`,
 | 
			
		||||
    worldState_naberusNights: `[UNTRANSLATED] Nights of Naberus`,
 | 
			
		||||
    worldState_proxyRebellion: `Proxy-Rebellion`,
 | 
			
		||||
    worldState_proxyRebellionRewards: `[UNTRANSLATED] Proxy Rebellion Rewards`,
 | 
			
		||||
    worldState_bellyOfTheBeast: `Das Innere der Bestie`,
 | 
			
		||||
 | 
			
		||||
@ -283,6 +283,7 @@ dict = {
 | 
			
		||||
    worldState_hallowedFlame: `Hallowed Flame`,
 | 
			
		||||
    worldState_hallowedNightmares: `Hallowed Nightmares`,
 | 
			
		||||
    worldState_hallowedNightmaresRewards: `Hallowed Nightmares Rewards`,
 | 
			
		||||
    worldState_naberusNights: `Nights of Naberus`,
 | 
			
		||||
    worldState_proxyRebellion: `Proxy Rebellion`,
 | 
			
		||||
    worldState_proxyRebellionRewards: `Proxy Rebellion Rewards`,
 | 
			
		||||
    worldState_bellyOfTheBeast: `Belly of the Beast`,
 | 
			
		||||
 | 
			
		||||
@ -284,6 +284,7 @@ dict = {
 | 
			
		||||
    worldState_hallowedFlame: `Llama Sagrada`,
 | 
			
		||||
    worldState_hallowedNightmares: `Pesadillas Sagradas`,
 | 
			
		||||
    worldState_hallowedNightmaresRewards: `Recompensas de Pesadillas Sagradas`,
 | 
			
		||||
    worldState_naberusNights: `Noches de Naberus`,
 | 
			
		||||
    worldState_proxyRebellion: `Rebelión Proxy`,
 | 
			
		||||
    worldState_proxyRebellionRewards: `Recompensas de Rebelión Proxy`,
 | 
			
		||||
    worldState_bellyOfTheBeast: `Vientre de la Bestia`,
 | 
			
		||||
 | 
			
		||||
@ -284,6 +284,7 @@ dict = {
 | 
			
		||||
    worldState_hallowedFlame: `Flamme Hantée`,
 | 
			
		||||
    worldState_hallowedNightmares: `Cauchemars Hantés`,
 | 
			
		||||
    worldState_hallowedNightmaresRewards: `Récompenses Flamme Hantée Cauchemar`,
 | 
			
		||||
    worldState_naberusNights: `[UNTRANSLATED] Nights of Naberus`,
 | 
			
		||||
    worldState_proxyRebellion: `Rébellion Proxy`,
 | 
			
		||||
    worldState_proxyRebellionRewards: `Récompenses Rébellion Proxy`,
 | 
			
		||||
    worldState_bellyOfTheBeast: `Ventre de la Bête`,
 | 
			
		||||
 | 
			
		||||
@ -284,6 +284,7 @@ dict = {
 | 
			
		||||
    worldState_hallowedFlame: `Священное пламя`,
 | 
			
		||||
    worldState_hallowedNightmares: `Священные кошмары`,
 | 
			
		||||
    worldState_hallowedNightmaresRewards: `Награды Священных кошмаров`,
 | 
			
		||||
    worldState_naberusNights: `[UNTRANSLATED] Nights of Naberus`,
 | 
			
		||||
    worldState_proxyRebellion: `Восстание роботов`,
 | 
			
		||||
    worldState_proxyRebellionRewards: `Награды Восстания роботов`,
 | 
			
		||||
    worldState_bellyOfTheBeast: `Чрево зверя`,
 | 
			
		||||
 | 
			
		||||
@ -284,6 +284,7 @@ dict = {
 | 
			
		||||
    worldState_hallowedFlame: `Священне полум'я`,
 | 
			
		||||
    worldState_hallowedNightmares: `Священні жахіття`,
 | 
			
		||||
    worldState_hallowedNightmaresRewards: `Нагороди Священних жахіть`,
 | 
			
		||||
    worldState_naberusNights: `[UNTRANSLATED] Nights of Naberus`,
 | 
			
		||||
    worldState_proxyRebellion: `Повстання роботів`,
 | 
			
		||||
    worldState_proxyRebellionRewards: `Нагороди Повстання роботів`,
 | 
			
		||||
    worldState_bellyOfTheBeast: `У лігві звіра`,
 | 
			
		||||
 | 
			
		||||
@ -284,6 +284,7 @@ dict = {
 | 
			
		||||
    worldState_hallowedFlame: `万圣之焰`,
 | 
			
		||||
    worldState_hallowedNightmares: `万圣噩梦`,
 | 
			
		||||
    worldState_hallowedNightmaresRewards: `万圣噩梦奖励设置`,
 | 
			
		||||
    worldState_naberusNights: `[UNTRANSLATED] Nights of Naberus`,
 | 
			
		||||
    worldState_proxyRebellion: `机械叛乱`,
 | 
			
		||||
    worldState_proxyRebellionRewards: `机械叛乱奖励设置`,
 | 
			
		||||
    worldState_bellyOfTheBeast: `兽之腹`,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user