Compare commits
	
		
			12 Commits
		
	
	
		
			f00ca6ac56
			...
			127445902a
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					127445902a | ||
| 4fa07a1319 | |||
| a3cc7d9f92 | |||
| c47c60fdcc | |||
| 367455baaa | |||
| 6c2b7a61e2 | |||
| 6a6683fb25 | |||
| e3b6accb5d | |||
| 7e437d75bf | |||
| 62570177b6 | |||
| d2aff211c6 | |||
| 791ae389d8 | 
@ -11,8 +11,6 @@
 | 
				
			|||||||
  "administratorNames": [],
 | 
					  "administratorNames": [],
 | 
				
			||||||
  "autoCreateAccount": true,
 | 
					  "autoCreateAccount": true,
 | 
				
			||||||
  "skipTutorial": false,
 | 
					  "skipTutorial": false,
 | 
				
			||||||
  "unlockAllShipDecorations": false,
 | 
					 | 
				
			||||||
  "unlockAllFlavourItems": false,
 | 
					 | 
				
			||||||
  "unlockAllSkins": false,
 | 
					  "unlockAllSkins": false,
 | 
				
			||||||
  "fullyStockedVendors": false,
 | 
					  "fullyStockedVendors": false,
 | 
				
			||||||
  "skipClanKeyCrafting": false,
 | 
					  "skipClanKeyCrafting": false,
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										8
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										8
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -17,7 +17,7 @@
 | 
				
			|||||||
        "morgan": "^1.10.0",
 | 
					        "morgan": "^1.10.0",
 | 
				
			||||||
        "ncp": "^2.0.0",
 | 
					        "ncp": "^2.0.0",
 | 
				
			||||||
        "undici": "^7.10.0",
 | 
					        "undici": "^7.10.0",
 | 
				
			||||||
        "warframe-public-export-plus": "^0.5.88",
 | 
					        "warframe-public-export-plus": "^0.5.89",
 | 
				
			||||||
        "warframe-riven-info": "^0.1.2",
 | 
					        "warframe-riven-info": "^0.1.2",
 | 
				
			||||||
        "winston": "^3.17.0",
 | 
					        "winston": "^3.17.0",
 | 
				
			||||||
        "winston-daily-rotate-file": "^5.0.0",
 | 
					        "winston-daily-rotate-file": "^5.0.0",
 | 
				
			||||||
@ -5532,9 +5532,9 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/warframe-public-export-plus": {
 | 
					    "node_modules/warframe-public-export-plus": {
 | 
				
			||||||
      "version": "0.5.88",
 | 
					      "version": "0.5.89",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.88.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.89.tgz",
 | 
				
			||||||
      "integrity": "sha512-uX766+MYDY3pMncu/23Dp9VZvrUe8pdWRWMcxfUbXg29aYO2GqipimHaFtw+vfrY06YAE8nbFkCWhFL3oPDPGw=="
 | 
					      "integrity": "sha512-a6dM1MirzofSsuv3LlRQHFLSSIGKPVSN93dcXSDmA3njsWqOGjJJdWyXqcyxxYw8rEB8CNowSHst/MUmKvKlRg=="
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/warframe-riven-info": {
 | 
					    "node_modules/warframe-riven-info": {
 | 
				
			||||||
      "version": "0.1.2",
 | 
					      "version": "0.1.2",
 | 
				
			||||||
 | 
				
			|||||||
@ -35,7 +35,7 @@
 | 
				
			|||||||
    "morgan": "^1.10.0",
 | 
					    "morgan": "^1.10.0",
 | 
				
			||||||
    "ncp": "^2.0.0",
 | 
					    "ncp": "^2.0.0",
 | 
				
			||||||
    "undici": "^7.10.0",
 | 
					    "undici": "^7.10.0",
 | 
				
			||||||
    "warframe-public-export-plus": "^0.5.88",
 | 
					    "warframe-public-export-plus": "^0.5.89",
 | 
				
			||||||
    "warframe-riven-info": "^0.1.2",
 | 
					    "warframe-riven-info": "^0.1.2",
 | 
				
			||||||
    "winston": "^3.17.0",
 | 
					    "winston": "^3.17.0",
 | 
				
			||||||
    "winston-daily-rotate-file": "^5.0.0",
 | 
					    "winston-daily-rotate-file": "^5.0.0",
 | 
				
			||||||
 | 
				
			|||||||
@ -8,8 +8,8 @@ export const giveKeyChainTriggeredMessageController: RequestHandler = async (req
 | 
				
			|||||||
    const accountId = await getAccountIdForRequest(req);
 | 
					    const accountId = await getAccountIdForRequest(req);
 | 
				
			||||||
    const keyChainInfo = JSON.parse((req.body as Buffer).toString()) as IKeyChainRequest;
 | 
					    const keyChainInfo = JSON.parse((req.body as Buffer).toString()) as IKeyChainRequest;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const inventory = await getInventory(accountId, "QuestKeys");
 | 
					    const inventory = await getInventory(accountId, "QuestKeys accountOwnerId");
 | 
				
			||||||
    await giveKeyChainMessage(inventory, accountId, keyChainInfo);
 | 
					    await giveKeyChainMessage(inventory, keyChainInfo);
 | 
				
			||||||
    await inventory.save();
 | 
					    await inventory.save();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    res.send(1);
 | 
					    res.send(1);
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ import { equipmentKeys } from "../../types/inventoryTypes/inventoryTypes.ts";
 | 
				
			|||||||
import type { IPolarity } from "../../types/inventoryTypes/commonInventoryTypes.ts";
 | 
					import type { IPolarity } from "../../types/inventoryTypes/commonInventoryTypes.ts";
 | 
				
			||||||
import { ArtifactPolarity } from "../../types/inventoryTypes/commonInventoryTypes.ts";
 | 
					import { ArtifactPolarity } from "../../types/inventoryTypes/commonInventoryTypes.ts";
 | 
				
			||||||
import type { ICountedItem } from "warframe-public-export-plus";
 | 
					import type { ICountedItem } from "warframe-public-export-plus";
 | 
				
			||||||
import { ExportCustoms, ExportFlavour, ExportResources } from "warframe-public-export-plus";
 | 
					import { ExportCustoms } from "warframe-public-export-plus";
 | 
				
			||||||
import { applyCheatsToInfestedFoundry, handleSubsumeCompletion } from "../../services/infestedFoundryService.ts";
 | 
					import { applyCheatsToInfestedFoundry, handleSubsumeCompletion } from "../../services/infestedFoundryService.ts";
 | 
				
			||||||
import {
 | 
					import {
 | 
				
			||||||
    addEmailItem,
 | 
					    addEmailItem,
 | 
				
			||||||
@ -321,21 +321,7 @@ export const getInventoryResponse = async (
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (config.unlockAllShipDecorations) {
 | 
					    if (config.worldState?.baroTennoConRelay) {
 | 
				
			||||||
        inventoryResponse.ShipDecorations = [];
 | 
					 | 
				
			||||||
        for (const [uniqueName, item] of Object.entries(ExportResources)) {
 | 
					 | 
				
			||||||
            if (item.productCategory == "ShipDecorations") {
 | 
					 | 
				
			||||||
                inventoryResponse.ShipDecorations.push({ ItemType: uniqueName, ItemCount: 999_999 });
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (config.unlockAllFlavourItems) {
 | 
					 | 
				
			||||||
        inventoryResponse.FlavourItems = [];
 | 
					 | 
				
			||||||
        for (const uniqueName in ExportFlavour) {
 | 
					 | 
				
			||||||
            inventoryResponse.FlavourItems.push({ ItemType: uniqueName });
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    } else if (config.worldState?.baroTennoConRelay) {
 | 
					 | 
				
			||||||
        [
 | 
					        [
 | 
				
			||||||
            "/Lotus/Types/Items/Events/TennoConRelay2022EarlyAccess",
 | 
					            "/Lotus/Types/Items/Events/TennoConRelay2022EarlyAccess",
 | 
				
			||||||
            "/Lotus/Types/Items/Events/TennoConRelay2023EarlyAccess",
 | 
					            "/Lotus/Types/Items/Events/TennoConRelay2023EarlyAccess",
 | 
				
			||||||
 | 
				
			|||||||
@ -2,7 +2,11 @@ import type { RequestHandler } from "express";
 | 
				
			|||||||
import { getJSONfromString } from "../../helpers/stringHelpers.ts";
 | 
					import { getJSONfromString } from "../../helpers/stringHelpers.ts";
 | 
				
			||||||
import { getAccountForRequest } from "../../services/loginService.ts";
 | 
					import { getAccountForRequest } from "../../services/loginService.ts";
 | 
				
			||||||
import type { IMissionInventoryUpdateRequest } from "../../types/requestTypes.ts";
 | 
					import type { IMissionInventoryUpdateRequest } from "../../types/requestTypes.ts";
 | 
				
			||||||
import { addMissionInventoryUpdates, addMissionRewards } from "../../services/missionInventoryUpdateService.ts";
 | 
					import {
 | 
				
			||||||
 | 
					    addMissionInventoryUpdates,
 | 
				
			||||||
 | 
					    addMissionRewards,
 | 
				
			||||||
 | 
					    handleConservation
 | 
				
			||||||
 | 
					} from "../../services/missionInventoryUpdateService.ts";
 | 
				
			||||||
import { getInventory } from "../../services/inventoryService.ts";
 | 
					import { getInventory } from "../../services/inventoryService.ts";
 | 
				
			||||||
import { getInventoryResponse } from "./inventoryController.ts";
 | 
					import { getInventoryResponse } from "./inventoryController.ts";
 | 
				
			||||||
import { logger } from "../../utils/logger.ts";
 | 
					import { logger } from "../../utils/logger.ts";
 | 
				
			||||||
@ -94,6 +98,7 @@ export const missionInventoryUpdateController: RequestHandler = async (req, res)
 | 
				
			|||||||
        SyndicateXPItemReward,
 | 
					        SyndicateXPItemReward,
 | 
				
			||||||
        ConquestCompletedMissionsCount
 | 
					        ConquestCompletedMissionsCount
 | 
				
			||||||
    } = await addMissionRewards(account, inventory, missionReport, firstCompletion);
 | 
					    } = await addMissionRewards(account, inventory, missionReport, firstCompletion);
 | 
				
			||||||
 | 
					    handleConservation(inventory, missionReport, AffiliationMods); // Conservation reports have GS_SUCCESS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (missionReport.EndOfMatchUpload) {
 | 
					    if (missionReport.EndOfMatchUpload) {
 | 
				
			||||||
        inventory.RewardSeed = generateRewardSeed();
 | 
					        inventory.RewardSeed = generateRewardSeed();
 | 
				
			||||||
@ -111,8 +116,16 @@ export const missionInventoryUpdateController: RequestHandler = async (req, res)
 | 
				
			|||||||
        AffiliationMods,
 | 
					        AffiliationMods,
 | 
				
			||||||
        ConquestCompletedMissionsCount
 | 
					        ConquestCompletedMissionsCount
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    if (missionReport.RJ) {
 | 
					    if (
 | 
				
			||||||
        logger.debug(`railjack interstitial request, sending only deltas`, deltas);
 | 
					        missionReport.BMI ||
 | 
				
			||||||
 | 
					        missionReport.TNT ||
 | 
				
			||||||
 | 
					        missionReport.SSC ||
 | 
				
			||||||
 | 
					        missionReport.RJ ||
 | 
				
			||||||
 | 
					        missionReport.SS ||
 | 
				
			||||||
 | 
					        missionReport.CMI ||
 | 
				
			||||||
 | 
					        missionReport.EJC
 | 
				
			||||||
 | 
					    ) {
 | 
				
			||||||
 | 
					        logger.debug(`interstitial request, sending only deltas`, deltas);
 | 
				
			||||||
        res.json(deltas);
 | 
					        res.json(deltas);
 | 
				
			||||||
    } else if (missionReport.RewardInfo) {
 | 
					    } else if (missionReport.RewardInfo) {
 | 
				
			||||||
        logger.debug(`classic mission completion, sending everything`);
 | 
					        logger.debug(`classic mission completion, sending everything`);
 | 
				
			||||||
 | 
				
			|||||||
@ -10,6 +10,7 @@ import {
 | 
				
			|||||||
    ExportDojoRecipes,
 | 
					    ExportDojoRecipes,
 | 
				
			||||||
    ExportDrones,
 | 
					    ExportDrones,
 | 
				
			||||||
    ExportFactions,
 | 
					    ExportFactions,
 | 
				
			||||||
 | 
					    ExportFlavour,
 | 
				
			||||||
    ExportGear,
 | 
					    ExportGear,
 | 
				
			||||||
    ExportKeys,
 | 
					    ExportKeys,
 | 
				
			||||||
    ExportRailjackWeapons,
 | 
					    ExportRailjackWeapons,
 | 
				
			||||||
@ -35,6 +36,7 @@ interface ListedItem {
 | 
				
			|||||||
    partType?: string;
 | 
					    partType?: string;
 | 
				
			||||||
    chainLength?: number;
 | 
					    chainLength?: number;
 | 
				
			||||||
    parazon?: boolean;
 | 
					    parazon?: boolean;
 | 
				
			||||||
 | 
					    alwaysAvailable?: boolean;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
interface ItemLists {
 | 
					interface ItemLists {
 | 
				
			||||||
@ -62,6 +64,8 @@ interface ItemLists {
 | 
				
			|||||||
    Abilities: ListedItem[];
 | 
					    Abilities: ListedItem[];
 | 
				
			||||||
    TechProjects: ListedItem[];
 | 
					    TechProjects: ListedItem[];
 | 
				
			||||||
    VaultDecoRecipes: ListedItem[];
 | 
					    VaultDecoRecipes: ListedItem[];
 | 
				
			||||||
 | 
					    FlavourItems: ListedItem[];
 | 
				
			||||||
 | 
					    ShipDecorations: ListedItem[];
 | 
				
			||||||
    //circuitGameModes: ListedItem[];
 | 
					    //circuitGameModes: ListedItem[];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -102,7 +106,9 @@ const getItemListsController: RequestHandler = (req, response) => {
 | 
				
			|||||||
        VarziaOffers: [],
 | 
					        VarziaOffers: [],
 | 
				
			||||||
        Abilities: [],
 | 
					        Abilities: [],
 | 
				
			||||||
        TechProjects: [],
 | 
					        TechProjects: [],
 | 
				
			||||||
        VaultDecoRecipes: []
 | 
					        VaultDecoRecipes: [],
 | 
				
			||||||
 | 
					        FlavourItems: [],
 | 
				
			||||||
 | 
					        ShipDecorations: []
 | 
				
			||||||
        /*circuitGameModes: [
 | 
					        /*circuitGameModes: [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                uniqueName: "Survival",
 | 
					                uniqueName: "Survival",
 | 
				
			||||||
@ -230,7 +236,12 @@ const getItemListsController: RequestHandler = (req, response) => {
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (
 | 
					        if (item.productCategory == "ShipDecorations") {
 | 
				
			||||||
 | 
					            res.ShipDecorations.push({
 | 
				
			||||||
 | 
					                uniqueName: uniqueName,
 | 
				
			||||||
 | 
					                name: name
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					        } else if (
 | 
				
			||||||
            name &&
 | 
					            name &&
 | 
				
			||||||
            uniqueName.substring(0, 30) != "/Lotus/Types/Game/Projections/" &&
 | 
					            uniqueName.substring(0, 30) != "/Lotus/Types/Game/Projections/" &&
 | 
				
			||||||
            uniqueName != "/Lotus/Types/Gameplay/EntratiLab/Resources/EntratiLanthornBundle"
 | 
					            uniqueName != "/Lotus/Types/Gameplay/EntratiLab/Resources/EntratiLanthornBundle"
 | 
				
			||||||
@ -443,6 +454,14 @@ const getItemListsController: RequestHandler = (req, response) => {
 | 
				
			|||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    for (const [uniqueName, item] of Object.entries(ExportFlavour)) {
 | 
				
			||||||
 | 
					        res.FlavourItems.push({
 | 
				
			||||||
 | 
					            uniqueName,
 | 
				
			||||||
 | 
					            name: getString(item.name, lang),
 | 
				
			||||||
 | 
					            alwaysAvailable: item.alwaysAvailable
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    response.json(res);
 | 
					    response.json(res);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -102,8 +102,16 @@ export const manageQuestsController: RequestHandler = async (req, res) => {
 | 
				
			|||||||
                    questKey.Completed = false;
 | 
					                    questKey.Completed = false;
 | 
				
			||||||
                    questKey.CompletionDate = undefined;
 | 
					                    questKey.CompletionDate = undefined;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                questKey.Progress.pop();
 | 
					
 | 
				
			||||||
                const stage = questKey.Progress.length - 1;
 | 
					                const run = questKey.Progress[0]?.c ?? 0;
 | 
				
			||||||
 | 
					                const stage = questKey.Progress.map(p => p.c).lastIndexOf(run);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                if (run > 0) {
 | 
				
			||||||
 | 
					                    questKey.Progress[stage].c = run - 1;
 | 
				
			||||||
 | 
					                } else {
 | 
				
			||||||
 | 
					                    questKey.Progress.pop();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (stage > 0) {
 | 
					                if (stage > 0) {
 | 
				
			||||||
                    await giveKeyChainStageTriggered(inventory, {
 | 
					                    await giveKeyChainStageTriggered(inventory, {
 | 
				
			||||||
                        KeyChain: questKey.ItemType,
 | 
					                        KeyChain: questKey.ItemType,
 | 
				
			||||||
@ -123,28 +131,28 @@ export const manageQuestsController: RequestHandler = async (req, res) => {
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
                if (!questKey.Progress) break;
 | 
					                if (!questKey.Progress) break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                const currentStage = questKey.Progress.length;
 | 
					                const run = questKey.Progress[0]?.c ?? 0;
 | 
				
			||||||
 | 
					                const currentStage = questKey.Progress.map(p => p.c).lastIndexOf(run);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (currentStage + 1 == questManifest.chainStages?.length) {
 | 
					                if (currentStage + 1 == questManifest.chainStages?.length) {
 | 
				
			||||||
                    logger.debug(`Trying to complete last stage with nextStage, calling completeQuest instead`);
 | 
					                    logger.debug(`Trying to complete last stage with nextStage, calling completeQuest instead`);
 | 
				
			||||||
                    await completeQuest(inventory, questKey.ItemType);
 | 
					                    await completeQuest(inventory, questKey.ItemType);
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    const progress = {
 | 
					                    if (run > 0) {
 | 
				
			||||||
                        c: 0,
 | 
					                        questKey.Progress[currentStage + 1].c = run;
 | 
				
			||||||
                        i: false,
 | 
					                    } else {
 | 
				
			||||||
                        m: false,
 | 
					                        questKey.Progress.push({ c: run, i: false, m: false, b: [] });
 | 
				
			||||||
                        b: []
 | 
					                    }
 | 
				
			||||||
                    };
 | 
					 | 
				
			||||||
                    questKey.Progress.push(progress);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    await giveKeyChainStageTriggered(inventory, {
 | 
					                    await giveKeyChainStageTriggered(inventory, {
 | 
				
			||||||
                        KeyChain: questKey.ItemType,
 | 
					                        KeyChain: questKey.ItemType,
 | 
				
			||||||
                        ChainStage: currentStage
 | 
					                        ChainStage: currentStage + 1
 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (currentStage > 0) {
 | 
					                    if (currentStage > 0) {
 | 
				
			||||||
                        await giveKeyChainMissionReward(inventory, {
 | 
					                        await giveKeyChainMissionReward(inventory, {
 | 
				
			||||||
                            KeyChain: questKey.ItemType,
 | 
					                            KeyChain: questKey.ItemType,
 | 
				
			||||||
                            ChainStage: currentStage - 1
 | 
					                            ChainStage: currentStage
 | 
				
			||||||
                        });
 | 
					                        });
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										14
									
								
								src/controllers/custom/removeCustomizationController.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/controllers/custom/removeCustomizationController.ts
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
				
			|||||||
 | 
					import { getAccountIdForRequest } from "../../services/loginService.ts";
 | 
				
			||||||
 | 
					import { getInventory } from "../../services/inventoryService.ts";
 | 
				
			||||||
 | 
					import type { RequestHandler } from "express";
 | 
				
			||||||
 | 
					import { broadcastInventoryUpdate } from "../../services/wsService.ts";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const removeCustomizationController: RequestHandler = async (req, res) => {
 | 
				
			||||||
 | 
					    const accountId = await getAccountIdForRequest(req);
 | 
				
			||||||
 | 
					    const ItemType = req.query.itemType as string;
 | 
				
			||||||
 | 
					    const inventory = await getInventory(accountId, "FlavourItems");
 | 
				
			||||||
 | 
					    inventory.FlavourItems.pull({ ItemType });
 | 
				
			||||||
 | 
					    await inventory.save();
 | 
				
			||||||
 | 
					    res.end();
 | 
				
			||||||
 | 
					    broadcastInventoryUpdate(req);
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
@ -104,11 +104,11 @@ const guildRankSchema = new Schema<IGuildRank>(
 | 
				
			|||||||
const defaultRanks: IGuildRank[] = [
 | 
					const defaultRanks: IGuildRank[] = [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Name: "/Lotus/Language/Game/Rank_Creator",
 | 
					        Name: "/Lotus/Language/Game/Rank_Creator",
 | 
				
			||||||
        Permissions: 16351
 | 
					        Permissions: GuildPermission.Host | 16351
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Name: "/Lotus/Language/Game/Rank_Warlord",
 | 
					        Name: "/Lotus/Language/Game/Rank_Warlord",
 | 
				
			||||||
        Permissions: 16351
 | 
					        Permissions: GuildPermission.Host | 16351
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Name: "/Lotus/Language/Game/Rank_General",
 | 
					        Name: "/Lotus/Language/Game/Rank_General",
 | 
				
			||||||
 | 
				
			|||||||
@ -21,6 +21,7 @@ import { unlockAllSimarisResearchEntriesController } from "../controllers/custom
 | 
				
			|||||||
import { unlockAllScansController } from "../controllers/custom/unlockAllScansController.ts";
 | 
					import { unlockAllScansController } from "../controllers/custom/unlockAllScansController.ts";
 | 
				
			||||||
import { unlockAllShipFeaturesController } from "../controllers/custom/unlockAllShipFeaturesController.ts";
 | 
					import { unlockAllShipFeaturesController } from "../controllers/custom/unlockAllShipFeaturesController.ts";
 | 
				
			||||||
import { unlockAllCapturaScenesController } from "../controllers/custom/unlockAllCapturaScenesController.ts";
 | 
					import { unlockAllCapturaScenesController } from "../controllers/custom/unlockAllCapturaScenesController.ts";
 | 
				
			||||||
 | 
					import { removeCustomizationController } from "../controllers/custom/removeCustomizationController.ts";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { abilityOverrideController } from "../controllers/custom/abilityOverrideController.ts";
 | 
					import { abilityOverrideController } from "../controllers/custom/abilityOverrideController.ts";
 | 
				
			||||||
import { createAccountController } from "../controllers/custom/createAccountController.ts";
 | 
					import { createAccountController } from "../controllers/custom/createAccountController.ts";
 | 
				
			||||||
@ -70,6 +71,7 @@ customRouter.get("/unlockAllSimarisResearchEntries", unlockAllSimarisResearchEnt
 | 
				
			|||||||
customRouter.get("/unlockAllScans", unlockAllScansController);
 | 
					customRouter.get("/unlockAllScans", unlockAllScansController);
 | 
				
			||||||
customRouter.get("/unlockAllShipFeatures", unlockAllShipFeaturesController);
 | 
					customRouter.get("/unlockAllShipFeatures", unlockAllShipFeaturesController);
 | 
				
			||||||
customRouter.get("/unlockAllCapturaScenes", unlockAllCapturaScenesController);
 | 
					customRouter.get("/unlockAllCapturaScenes", unlockAllCapturaScenesController);
 | 
				
			||||||
 | 
					customRouter.get("/removeCustomization", removeCustomizationController);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
customRouter.post("/abilityOverride", abilityOverrideController);
 | 
					customRouter.post("/abilityOverride", abilityOverrideController);
 | 
				
			||||||
customRouter.post("/createAccount", createAccountController);
 | 
					customRouter.post("/createAccount", createAccountController);
 | 
				
			||||||
 | 
				
			|||||||
@ -21,8 +21,6 @@ export interface IConfig {
 | 
				
			|||||||
    administratorNames?: string[];
 | 
					    administratorNames?: string[];
 | 
				
			||||||
    autoCreateAccount?: boolean;
 | 
					    autoCreateAccount?: boolean;
 | 
				
			||||||
    skipTutorial?: boolean;
 | 
					    skipTutorial?: boolean;
 | 
				
			||||||
    unlockAllShipDecorations?: boolean;
 | 
					 | 
				
			||||||
    unlockAllFlavourItems?: boolean;
 | 
					 | 
				
			||||||
    unlockAllSkins?: boolean;
 | 
					    unlockAllSkins?: boolean;
 | 
				
			||||||
    fullyStockedVendors?: boolean;
 | 
					    fullyStockedVendors?: boolean;
 | 
				
			||||||
    skipClanKeyCrafting?: boolean;
 | 
					    skipClanKeyCrafting?: boolean;
 | 
				
			||||||
@ -128,6 +126,8 @@ export const configRemovedOptionsKeys = [
 | 
				
			|||||||
    "noDojoResearchCosts",
 | 
					    "noDojoResearchCosts",
 | 
				
			||||||
    "noDojoResearchTime",
 | 
					    "noDojoResearchTime",
 | 
				
			||||||
    "fastClanAscension",
 | 
					    "fastClanAscension",
 | 
				
			||||||
 | 
					    "unlockAllFlavourItems",
 | 
				
			||||||
 | 
					    "unlockAllShipDecorations",
 | 
				
			||||||
    "unlockAllDecoRecipes"
 | 
					    "unlockAllDecoRecipes"
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -538,46 +538,6 @@ export const addMissionInventoryUpdates = async (
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            case "CapturedAnimals": {
 | 
					 | 
				
			||||||
                for (const capturedAnimal of value) {
 | 
					 | 
				
			||||||
                    // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
 | 
					 | 
				
			||||||
                    const meta = ExportAnimals[capturedAnimal.AnimalType]?.conservation;
 | 
					 | 
				
			||||||
                    // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
 | 
					 | 
				
			||||||
                    if (meta) {
 | 
					 | 
				
			||||||
                        if (capturedAnimal.NumTags) {
 | 
					 | 
				
			||||||
                            addMiscItems(inventory, [
 | 
					 | 
				
			||||||
                                {
 | 
					 | 
				
			||||||
                                    ItemType: meta.itemReward,
 | 
					 | 
				
			||||||
                                    ItemCount: capturedAnimal.NumTags
 | 
					 | 
				
			||||||
                                }
 | 
					 | 
				
			||||||
                            ]);
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        if (capturedAnimal.NumExtraRewards) {
 | 
					 | 
				
			||||||
                            if (meta.woundedAnimalReward) {
 | 
					 | 
				
			||||||
                                addMiscItems(inventory, [
 | 
					 | 
				
			||||||
                                    {
 | 
					 | 
				
			||||||
                                        ItemType: meta.woundedAnimalReward,
 | 
					 | 
				
			||||||
                                        ItemCount: capturedAnimal.NumExtraRewards
 | 
					 | 
				
			||||||
                                    }
 | 
					 | 
				
			||||||
                                ]);
 | 
					 | 
				
			||||||
                            } else {
 | 
					 | 
				
			||||||
                                logger.warn(
 | 
					 | 
				
			||||||
                                    `client attempted to claim unknown extra rewards for conservation of ${capturedAnimal.AnimalType}`
 | 
					 | 
				
			||||||
                                );
 | 
					 | 
				
			||||||
                            }
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        if (meta.standingReward) {
 | 
					 | 
				
			||||||
                            const syndicateTag =
 | 
					 | 
				
			||||||
                                inventoryUpdates.Missions!.Tag == "SolNode129" ? "SolarisSyndicate" : "CetusSyndicate";
 | 
					 | 
				
			||||||
                            logger.debug(`adding ${meta.standingReward} standing to ${syndicateTag} for conservation`);
 | 
					 | 
				
			||||||
                            addStanding(inventory, syndicateTag, meta.standingReward);
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                    } else {
 | 
					 | 
				
			||||||
                        logger.warn(`ignoring conservation of unknown AnimalType: ${capturedAnimal.AnimalType}`);
 | 
					 | 
				
			||||||
                    }
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            case "KubrowPetEggs": {
 | 
					            case "KubrowPetEggs": {
 | 
				
			||||||
                for (const egg of value) {
 | 
					                for (const egg of value) {
 | 
				
			||||||
                    inventory.KubrowPetEggs.push({
 | 
					                    inventory.KubrowPetEggs.push({
 | 
				
			||||||
@ -998,7 +958,7 @@ interface AddMissionRewardsReturnType {
 | 
				
			|||||||
    MissionRewards: IMissionReward[];
 | 
					    MissionRewards: IMissionReward[];
 | 
				
			||||||
    inventoryChanges?: IInventoryChanges;
 | 
					    inventoryChanges?: IInventoryChanges;
 | 
				
			||||||
    credits?: IMissionCredits;
 | 
					    credits?: IMissionCredits;
 | 
				
			||||||
    AffiliationMods?: IAffiliationMods[];
 | 
					    AffiliationMods: IAffiliationMods[];
 | 
				
			||||||
    SyndicateXPItemReward?: number;
 | 
					    SyndicateXPItemReward?: number;
 | 
				
			||||||
    ConquestCompletedMissionsCount?: number;
 | 
					    ConquestCompletedMissionsCount?: number;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -1174,10 +1134,12 @@ export const addMissionRewards = async (
 | 
				
			|||||||
    }: IMissionInventoryUpdateRequest,
 | 
					    }: IMissionInventoryUpdateRequest,
 | 
				
			||||||
    firstCompletion: boolean
 | 
					    firstCompletion: boolean
 | 
				
			||||||
): Promise<AddMissionRewardsReturnType> => {
 | 
					): Promise<AddMissionRewardsReturnType> => {
 | 
				
			||||||
 | 
					    AffiliationMods ??= [];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!rewardInfo) {
 | 
					    if (!rewardInfo) {
 | 
				
			||||||
        //TODO: if there is a case where you can have credits collected during a mission but no rewardInfo, add credits needs to be handled earlier
 | 
					        //TODO: if there is a case where you can have credits collected during a mission but no rewardInfo, add credits needs to be handled earlier
 | 
				
			||||||
        logger.debug(`Mission ${missions!.Tag} did not have Reward Info `);
 | 
					        logger.debug(`Mission ${missions!.Tag} did not have Reward Info `);
 | 
				
			||||||
        return { MissionRewards: [] };
 | 
					        return { MissionRewards: [], AffiliationMods };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //TODO: check double reward merging
 | 
					    //TODO: check double reward merging
 | 
				
			||||||
@ -1508,8 +1470,6 @@ export const addMissionRewards = async (
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    AffiliationMods ??= [];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (rewardInfo.JobStage != undefined && rewardInfo.jobId) {
 | 
					    if (rewardInfo.JobStage != undefined && rewardInfo.jobId) {
 | 
				
			||||||
        // eslint-disable-next-line @typescript-eslint/no-unused-vars
 | 
					        // eslint-disable-next-line @typescript-eslint/no-unused-vars
 | 
				
			||||||
        const [jobType, unkIndex, hubNode, syndicateMissionId] = rewardInfo.jobId.split("_");
 | 
					        const [jobType, unkIndex, hubNode, syndicateMissionId] = rewardInfo.jobId.split("_");
 | 
				
			||||||
@ -2310,6 +2270,54 @@ function getRandomMissionDrops(
 | 
				
			|||||||
    return drops;
 | 
					    return drops;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const handleConservation = (
 | 
				
			||||||
 | 
					    inventory: TInventoryDatabaseDocument,
 | 
				
			||||||
 | 
					    missionReport: IMissionInventoryUpdateRequest,
 | 
				
			||||||
 | 
					    AffiliationMods: IAffiliationMods[]
 | 
				
			||||||
 | 
					): void => {
 | 
				
			||||||
 | 
					    if (missionReport.CapturedAnimals) {
 | 
				
			||||||
 | 
					        for (const capturedAnimal of missionReport.CapturedAnimals) {
 | 
				
			||||||
 | 
					            // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
 | 
				
			||||||
 | 
					            const meta = ExportAnimals[capturedAnimal.AnimalType]?.conservation;
 | 
				
			||||||
 | 
					            // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
 | 
				
			||||||
 | 
					            if (meta) {
 | 
				
			||||||
 | 
					                if (capturedAnimal.NumTags) {
 | 
				
			||||||
 | 
					                    addMiscItems(inventory, [
 | 
				
			||||||
 | 
					                        {
 | 
				
			||||||
 | 
					                            ItemType: meta.itemReward,
 | 
				
			||||||
 | 
					                            ItemCount: capturedAnimal.NumTags * capturedAnimal.Count
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					                    ]);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                if (capturedAnimal.NumExtraRewards) {
 | 
				
			||||||
 | 
					                    if (meta.woundedAnimalReward) {
 | 
				
			||||||
 | 
					                        addMiscItems(inventory, [
 | 
				
			||||||
 | 
					                            {
 | 
				
			||||||
 | 
					                                ItemType: meta.woundedAnimalReward,
 | 
				
			||||||
 | 
					                                ItemCount: capturedAnimal.NumExtraRewards * capturedAnimal.Count
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
 | 
					                        ]);
 | 
				
			||||||
 | 
					                    } else {
 | 
				
			||||||
 | 
					                        logger.warn(
 | 
				
			||||||
 | 
					                            `client attempted to claim unknown extra rewards for conservation of ${capturedAnimal.AnimalType}`
 | 
				
			||||||
 | 
					                        );
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                if (meta.standingReward) {
 | 
				
			||||||
 | 
					                    addStanding(
 | 
				
			||||||
 | 
					                        inventory,
 | 
				
			||||||
 | 
					                        missionReport.Missions!.Tag == "SolNode129" ? "SolarisSyndicate" : "CetusSyndicate",
 | 
				
			||||||
 | 
					                        [2, 1.5, 1][capturedAnimal.CaptureRating] * meta.standingReward * capturedAnimal.Count,
 | 
				
			||||||
 | 
					                        AffiliationMods
 | 
				
			||||||
 | 
					                    );
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					                logger.warn(`ignoring conservation of unknown AnimalType: ${capturedAnimal.AnimalType}`);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const corruptedMods = [
 | 
					const corruptedMods = [
 | 
				
			||||||
    "/Lotus/StoreItems/Upgrades/Mods/Melee/DualStat/CorruptedHeavyDamageChargeSpeedMod", // Corrupt Charge
 | 
					    "/Lotus/StoreItems/Upgrades/Mods/Melee/DualStat/CorruptedHeavyDamageChargeSpeedMod", // Corrupt Charge
 | 
				
			||||||
    "/Lotus/StoreItems/Upgrades/Mods/Pistol/DualStat/CorruptedCritDamagePistol", // Hollow Point
 | 
					    "/Lotus/StoreItems/Upgrades/Mods/Pistol/DualStat/CorruptedCritDamagePistol", // Hollow Point
 | 
				
			||||||
 | 
				
			|||||||
@ -6,7 +6,6 @@ import { addItem, addItems, addKeyChainItems, setupKahlSyndicate } from "./inven
 | 
				
			|||||||
import { fromStoreItem, getKeyChainMessage, getLevelKeyRewards } from "./itemDataService.ts";
 | 
					import { fromStoreItem, getKeyChainMessage, getLevelKeyRewards } from "./itemDataService.ts";
 | 
				
			||||||
import type { IQuestKeyClient, IQuestKeyDatabase, IQuestStage } from "../types/inventoryTypes/inventoryTypes.ts";
 | 
					import type { IQuestKeyClient, IQuestKeyDatabase, IQuestStage } from "../types/inventoryTypes/inventoryTypes.ts";
 | 
				
			||||||
import { logger } from "../utils/logger.ts";
 | 
					import { logger } from "../utils/logger.ts";
 | 
				
			||||||
import type { Types } from "mongoose";
 | 
					 | 
				
			||||||
import { ExportKeys } from "warframe-public-export-plus";
 | 
					import { ExportKeys } from "warframe-public-export-plus";
 | 
				
			||||||
import { addFixedLevelRewards } from "./missionInventoryUpdateService.ts";
 | 
					import { addFixedLevelRewards } from "./missionInventoryUpdateService.ts";
 | 
				
			||||||
import type { IInventoryChanges } from "../types/purchaseTypes.ts";
 | 
					import type { IInventoryChanges } from "../types/purchaseTypes.ts";
 | 
				
			||||||
@ -44,7 +43,12 @@ export const updateQuestKey = async (
 | 
				
			|||||||
        inventory.QuestKeys[questKeyIndex].CompletionDate = new Date();
 | 
					        inventory.QuestKeys[questKeyIndex].CompletionDate = new Date();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const questKey = questKeyUpdate[0].ItemType;
 | 
					        const questKey = questKeyUpdate[0].ItemType;
 | 
				
			||||||
        await handleQuestCompletion(inventory, questKey, inventoryChanges);
 | 
					        await handleQuestCompletion(
 | 
				
			||||||
 | 
					            inventory,
 | 
				
			||||||
 | 
					            questKey,
 | 
				
			||||||
 | 
					            inventoryChanges,
 | 
				
			||||||
 | 
					            (questKeyUpdate[0].Progress?.[0]?.c ?? 0) > 0
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return inventoryChanges;
 | 
					    return inventoryChanges;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
@ -52,7 +56,7 @@ export const updateQuestKey = async (
 | 
				
			|||||||
export const updateQuestStage = (
 | 
					export const updateQuestStage = (
 | 
				
			||||||
    inventory: TInventoryDatabaseDocument,
 | 
					    inventory: TInventoryDatabaseDocument,
 | 
				
			||||||
    { KeyChain, ChainStage }: IKeyChainRequest,
 | 
					    { KeyChain, ChainStage }: IKeyChainRequest,
 | 
				
			||||||
    questStageUpdate: IQuestStage
 | 
					    questStageUpdate: Partial<IQuestStage>
 | 
				
			||||||
): void => {
 | 
					): void => {
 | 
				
			||||||
    const quest = inventory.QuestKeys.find(quest => quest.ItemType === KeyChain);
 | 
					    const quest = inventory.QuestKeys.find(quest => quest.ItemType === KeyChain);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -68,14 +72,22 @@ export const updateQuestStage = (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
 | 
					    // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
 | 
				
			||||||
    if (!questStage) {
 | 
					    if (!questStage) {
 | 
				
			||||||
        const questStageIndex = quest.Progress.push(questStageUpdate) - 1;
 | 
					        const questStageIndex =
 | 
				
			||||||
 | 
					            quest.Progress.push({
 | 
				
			||||||
 | 
					                c: questStageUpdate.c ?? 0,
 | 
				
			||||||
 | 
					                i: questStageUpdate.i ?? false,
 | 
				
			||||||
 | 
					                m: questStageUpdate.m ?? false,
 | 
				
			||||||
 | 
					                b: questStageUpdate.b ?? []
 | 
				
			||||||
 | 
					            }) - 1;
 | 
				
			||||||
        if (questStageIndex !== ChainStage) {
 | 
					        if (questStageIndex !== ChainStage) {
 | 
				
			||||||
            throw new Error(`Quest stage index mismatch: ${questStageIndex} !== ${ChainStage}`);
 | 
					            throw new Error(`Quest stage index mismatch: ${questStageIndex} !== ${ChainStage}`);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Object.assign(questStage, questStageUpdate);
 | 
					    for (const [key, value] of Object.entries(questStageUpdate) as [keyof IQuestStage, number | boolean | any[]][]) {
 | 
				
			||||||
 | 
					        (questStage[key] as any) = value;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const addQuestKey = (
 | 
					export const addQuestKey = (
 | 
				
			||||||
@ -112,58 +124,53 @@ export const completeQuest = async (inventory: TInventoryDatabaseDocument, quest
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const chainStageTotal = chainStages.length;
 | 
					    const chainStageTotal = chainStages.length;
 | 
				
			||||||
 | 
					    let existingQuestKey = inventory.QuestKeys.find(qk => qk.ItemType === questKey);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const existingQuestKey = inventory.QuestKeys.find(qk => qk.ItemType === questKey);
 | 
					    if (!existingQuestKey) {
 | 
				
			||||||
 | 
					 | 
				
			||||||
    const startingStage = Math.max((existingQuestKey?.Progress?.length ?? 0) - 1, 0);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (existingQuestKey?.Completed) {
 | 
					 | 
				
			||||||
        return;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if (existingQuestKey) {
 | 
					 | 
				
			||||||
        existingQuestKey.Progress = existingQuestKey.Progress ?? [];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        const existingProgressLength = existingQuestKey.Progress.length;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if (existingProgressLength < chainStageTotal) {
 | 
					 | 
				
			||||||
            const missingProgress: IQuestStage[] = Array.from(
 | 
					 | 
				
			||||||
                { length: chainStageTotal - existingProgressLength },
 | 
					 | 
				
			||||||
                () =>
 | 
					 | 
				
			||||||
                    ({
 | 
					 | 
				
			||||||
                        c: 0,
 | 
					 | 
				
			||||||
                        i: false,
 | 
					 | 
				
			||||||
                        m: false,
 | 
					 | 
				
			||||||
                        b: []
 | 
					 | 
				
			||||||
                    }) as IQuestStage
 | 
					 | 
				
			||||||
            );
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            existingQuestKey.Progress.push(...missingProgress);
 | 
					 | 
				
			||||||
            existingQuestKey.CompletionDate = new Date();
 | 
					 | 
				
			||||||
            existingQuestKey.Completed = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    } else {
 | 
					 | 
				
			||||||
        const completedQuestKey: IQuestKeyDatabase = {
 | 
					        const completedQuestKey: IQuestKeyDatabase = {
 | 
				
			||||||
            ItemType: questKey,
 | 
					            ItemType: questKey,
 | 
				
			||||||
            Completed: true,
 | 
					            Completed: false,
 | 
				
			||||||
            unlock: true,
 | 
					            unlock: true,
 | 
				
			||||||
            Progress: Array(chainStageTotal).fill({
 | 
					            Progress: Array.from({ length: chainStageTotal }, () => ({
 | 
				
			||||||
                c: 0,
 | 
					                c: 0,
 | 
				
			||||||
                i: false,
 | 
					                i: false,
 | 
				
			||||||
                m: false,
 | 
					                m: false,
 | 
				
			||||||
                b: []
 | 
					                b: []
 | 
				
			||||||
            } satisfies IQuestStage),
 | 
					            }))
 | 
				
			||||||
            CompletionDate: new Date()
 | 
					 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        addQuestKey(inventory, completedQuestKey);
 | 
					        addQuestKey(inventory, completedQuestKey);
 | 
				
			||||||
 | 
					        existingQuestKey = inventory.QuestKeys.find(qk => qk.ItemType === questKey)!;
 | 
				
			||||||
 | 
					    } else if (existingQuestKey.Completed) {
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (let i = startingStage; i < chainStageTotal; i++) {
 | 
					    existingQuestKey.Progress = existingQuestKey.Progress ?? [];
 | 
				
			||||||
        await giveKeyChainStageTriggered(inventory, { KeyChain: questKey, ChainStage: i });
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        await giveKeyChainMissionReward(inventory, { KeyChain: questKey, ChainStage: i });
 | 
					    const run = existingQuestKey.Progress[0]?.c ?? 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const existingProgressLength = existingQuestKey.Progress.length;
 | 
				
			||||||
 | 
					    if (existingProgressLength < chainStageTotal) {
 | 
				
			||||||
 | 
					        const missingProgress: IQuestStage[] = Array.from(
 | 
				
			||||||
 | 
					            { length: chainStageTotal - existingProgressLength },
 | 
				
			||||||
 | 
					            () => ({ c: run, i: false, m: false, b: [] }) as IQuestStage
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					        existingQuestKey.Progress.push(...missingProgress);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    await handleQuestCompletion(inventory, questKey);
 | 
					    for (let i = 0; i < chainStageTotal; i++) {
 | 
				
			||||||
 | 
					        const stage = existingQuestKey.Progress[i];
 | 
				
			||||||
 | 
					        if (stage.c < run) {
 | 
				
			||||||
 | 
					            stage.c = run;
 | 
				
			||||||
 | 
					            await giveKeyChainStageTriggered(inventory, { KeyChain: questKey, ChainStage: i });
 | 
				
			||||||
 | 
					            await giveKeyChainMissionReward(inventory, { KeyChain: questKey, ChainStage: i });
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (existingQuestKey.Progress.every(p => p.c == run)) {
 | 
				
			||||||
 | 
					        existingQuestKey.Completed = true;
 | 
				
			||||||
 | 
					        existingQuestKey.CompletionDate = new Date();
 | 
				
			||||||
 | 
					        await handleQuestCompletion(inventory, questKey, undefined, run > 0);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const getQuestCompletionItems = (questKey: string): ITypeCount[] | undefined => {
 | 
					const getQuestCompletionItems = (questKey: string): ITypeCount[] | undefined => {
 | 
				
			||||||
@ -214,28 +221,35 @@ const doesQuestCompletionFinishSet = (
 | 
				
			|||||||
const handleQuestCompletion = async (
 | 
					const handleQuestCompletion = async (
 | 
				
			||||||
    inventory: TInventoryDatabaseDocument,
 | 
					    inventory: TInventoryDatabaseDocument,
 | 
				
			||||||
    questKey: string,
 | 
					    questKey: string,
 | 
				
			||||||
    inventoryChanges: IInventoryChanges = {}
 | 
					    inventoryChanges: IInventoryChanges = {},
 | 
				
			||||||
 | 
					    isRerun: boolean = false
 | 
				
			||||||
): Promise<void> => {
 | 
					): Promise<void> => {
 | 
				
			||||||
    logger.debug(`completed quest ${questKey}`);
 | 
					    logger.debug(`completed quest ${questKey}`);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (inventory.ActiveQuest == questKey) inventory.ActiveQuest = "";
 | 
				
			||||||
    if (questKey == "/Lotus/Types/Keys/OrokinMoonQuest/OrokinMoonQuestKeyChain") {
 | 
					    if (questKey == "/Lotus/Types/Keys/OrokinMoonQuest/OrokinMoonQuestKeyChain") {
 | 
				
			||||||
 | 
					        const att = isRerun
 | 
				
			||||||
 | 
					            ? []
 | 
				
			||||||
 | 
					            : [
 | 
				
			||||||
 | 
					                  "/Lotus/Weapons/Tenno/Melee/Swords/StalkerTwo/StalkerTwoSmallSword",
 | 
				
			||||||
 | 
					                  "/Lotus/Upgrades/Skins/Sigils/ScarSigil"
 | 
				
			||||||
 | 
					              ];
 | 
				
			||||||
        await createMessage(inventory.accountOwnerId, [
 | 
					        await createMessage(inventory.accountOwnerId, [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                sndr: "/Lotus/Language/Bosses/Ordis",
 | 
					                sndr: "/Lotus/Language/Bosses/Ordis",
 | 
				
			||||||
                msg: "/Lotus/Language/G1Quests/SecondDreamFinishInboxMessage",
 | 
					                msg: "/Lotus/Language/G1Quests/SecondDreamFinishInboxMessage",
 | 
				
			||||||
                att: [
 | 
					                att,
 | 
				
			||||||
                    "/Lotus/Weapons/Tenno/Melee/Swords/StalkerTwo/StalkerTwoSmallSword",
 | 
					 | 
				
			||||||
                    "/Lotus/Upgrades/Skins/Sigils/ScarSigil"
 | 
					 | 
				
			||||||
                ],
 | 
					 | 
				
			||||||
                sub: "/Lotus/Language/G1Quests/SecondDreamFinishInboxTitle",
 | 
					                sub: "/Lotus/Language/G1Quests/SecondDreamFinishInboxTitle",
 | 
				
			||||||
                icon: "/Lotus/Interface/Icons/Npcs/Ordis.png",
 | 
					                icon: "/Lotus/Interface/Icons/Npcs/Ordis.png",
 | 
				
			||||||
                highPriority: true
 | 
					                highPriority: true
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        ]);
 | 
					        ]);
 | 
				
			||||||
    } else if (questKey == "/Lotus/Types/Keys/NewWarQuest/NewWarQuestKeyChain") {
 | 
					    } else if (questKey == "/Lotus/Types/Keys/NewWarQuest/NewWarQuestKeyChain" && !isRerun) {
 | 
				
			||||||
        setupKahlSyndicate(inventory);
 | 
					        setupKahlSyndicate(inventory);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (isRerun) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Whispers in the Walls is unlocked once The New War + Heart of Deimos are completed.
 | 
					    // Whispers in the Walls is unlocked once The New War + Heart of Deimos are completed.
 | 
				
			||||||
    if (
 | 
					    if (
 | 
				
			||||||
        doesQuestCompletionFinishSet(inventory, questKey, [
 | 
					        doesQuestCompletionFinishSet(inventory, questKey, [
 | 
				
			||||||
@ -279,21 +293,24 @@ const handleQuestCompletion = async (
 | 
				
			|||||||
    if (questCompletionItems) {
 | 
					    if (questCompletionItems) {
 | 
				
			||||||
        await addItems(inventory, questCompletionItems, inventoryChanges);
 | 
					        await addItems(inventory, questCompletionItems, inventoryChanges);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (inventory.ActiveQuest == questKey) inventory.ActiveQuest = "";
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const giveKeyChainItem = async (
 | 
					export const giveKeyChainItem = async (
 | 
				
			||||||
    inventory: TInventoryDatabaseDocument,
 | 
					    inventory: TInventoryDatabaseDocument,
 | 
				
			||||||
    keyChainInfo: IKeyChainRequest
 | 
					    keyChainInfo: IKeyChainRequest,
 | 
				
			||||||
 | 
					    isRerun: boolean = false
 | 
				
			||||||
): Promise<IInventoryChanges> => {
 | 
					): Promise<IInventoryChanges> => {
 | 
				
			||||||
    const inventoryChanges = await addKeyChainItems(inventory, keyChainInfo);
 | 
					    let inventoryChanges: IInventoryChanges = {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (isEmptyObject(inventoryChanges)) {
 | 
					    if (!isRerun) {
 | 
				
			||||||
        logger.warn("inventory changes was empty after getting keychain items: should not happen");
 | 
					        inventoryChanges = await addKeyChainItems(inventory, keyChainInfo);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (isEmptyObject(inventoryChanges)) {
 | 
				
			||||||
 | 
					            logger.warn("inventory changes was empty after getting keychain items: should not happen");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        // items were added: update quest stage's i (item was given)
 | 
				
			||||||
 | 
					        updateQuestStage(inventory, keyChainInfo, { i: true });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    // items were added: update quest stage's i (item was given)
 | 
					 | 
				
			||||||
    updateQuestStage(inventory, keyChainInfo, { i: true });
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return inventoryChanges;
 | 
					    return inventoryChanges;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -309,12 +326,17 @@ export const giveKeyChainItem = async (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export const giveKeyChainMessage = async (
 | 
					export const giveKeyChainMessage = async (
 | 
				
			||||||
    inventory: TInventoryDatabaseDocument,
 | 
					    inventory: TInventoryDatabaseDocument,
 | 
				
			||||||
    accountId: string | Types.ObjectId,
 | 
					    keyChainInfo: IKeyChainRequest,
 | 
				
			||||||
    keyChainInfo: IKeyChainRequest
 | 
					    isRerun: boolean = false
 | 
				
			||||||
): Promise<void> => {
 | 
					): Promise<void> => {
 | 
				
			||||||
    const keyChainMessage = getKeyChainMessage(keyChainInfo);
 | 
					    const keyChainMessage = getKeyChainMessage(keyChainInfo);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    await createMessage(accountId, [keyChainMessage]);
 | 
					    if (!isRerun) {
 | 
				
			||||||
 | 
					        keyChainMessage.att = [];
 | 
				
			||||||
 | 
					        keyChainMessage.countedAtt = [];
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    await createMessage(inventory.accountOwnerId, [keyChainMessage]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    updateQuestStage(inventory, keyChainInfo, { m: true });
 | 
					    updateQuestStage(inventory, keyChainInfo, { m: true });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
@ -328,8 +350,10 @@ export const giveKeyChainMissionReward = async (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if (chainStages) {
 | 
					    if (chainStages) {
 | 
				
			||||||
        const missionName = chainStages[keyChainInfo.ChainStage].key;
 | 
					        const missionName = chainStages[keyChainInfo.ChainStage].key;
 | 
				
			||||||
        if (missionName) {
 | 
					        const questKey = inventory.QuestKeys.find(q => q.ItemType === keyChainInfo.KeyChain);
 | 
				
			||||||
 | 
					        if (missionName && questKey) {
 | 
				
			||||||
            const fixedLevelRewards = getLevelKeyRewards(missionName);
 | 
					            const fixedLevelRewards = getLevelKeyRewards(missionName);
 | 
				
			||||||
 | 
					            const run = questKey.Progress?.[0]?.c ?? 0;
 | 
				
			||||||
            if (fixedLevelRewards.levelKeyRewards) {
 | 
					            if (fixedLevelRewards.levelKeyRewards) {
 | 
				
			||||||
                const missionRewards: { StoreItem: string; ItemCount: number }[] = [];
 | 
					                const missionRewards: { StoreItem: string; ItemCount: number }[] = [];
 | 
				
			||||||
                inventory.RegularCredits += addFixedLevelRewards(fixedLevelRewards.levelKeyRewards, missionRewards);
 | 
					                inventory.RegularCredits += addFixedLevelRewards(fixedLevelRewards.levelKeyRewards, missionRewards);
 | 
				
			||||||
@ -338,7 +362,7 @@ export const giveKeyChainMissionReward = async (
 | 
				
			|||||||
                    await addItem(inventory, fromStoreItem(reward.StoreItem), reward.ItemCount);
 | 
					                    await addItem(inventory, fromStoreItem(reward.StoreItem), reward.ItemCount);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                updateQuestStage(inventory, keyChainInfo, { c: 0 });
 | 
					                updateQuestStage(inventory, keyChainInfo, { c: run });
 | 
				
			||||||
            } else if (fixedLevelRewards.levelKeyRewards2) {
 | 
					            } else if (fixedLevelRewards.levelKeyRewards2) {
 | 
				
			||||||
                for (const reward of fixedLevelRewards.levelKeyRewards2) {
 | 
					                for (const reward of fixedLevelRewards.levelKeyRewards2) {
 | 
				
			||||||
                    if (reward.rewardType == "RT_CREDITS") {
 | 
					                    if (reward.rewardType == "RT_CREDITS") {
 | 
				
			||||||
@ -352,7 +376,7 @@ export const giveKeyChainMissionReward = async (
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                updateQuestStage(inventory, keyChainInfo, { c: 0 });
 | 
					                updateQuestStage(inventory, keyChainInfo, { c: run });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -364,14 +388,17 @@ export const giveKeyChainStageTriggered = async (
 | 
				
			|||||||
): Promise<void> => {
 | 
					): Promise<void> => {
 | 
				
			||||||
    // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
 | 
					    // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
 | 
				
			||||||
    const chainStages = ExportKeys[keyChainInfo.KeyChain]?.chainStages;
 | 
					    const chainStages = ExportKeys[keyChainInfo.KeyChain]?.chainStages;
 | 
				
			||||||
 | 
					    const questKey = inventory.QuestKeys.find(qk => qk.ItemType === keyChainInfo.KeyChain);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (chainStages && questKey) {
 | 
				
			||||||
 | 
					        const run = questKey.Progress?.[0]?.c ?? 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (chainStages) {
 | 
					 | 
				
			||||||
        if (chainStages[keyChainInfo.ChainStage].itemsToGiveWhenTriggered.length > 0) {
 | 
					        if (chainStages[keyChainInfo.ChainStage].itemsToGiveWhenTriggered.length > 0) {
 | 
				
			||||||
            await giveKeyChainItem(inventory, keyChainInfo);
 | 
					            await giveKeyChainItem(inventory, keyChainInfo, run > 0);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (chainStages[keyChainInfo.ChainStage].messageToSendWhenTriggered) {
 | 
					        if (chainStages[keyChainInfo.ChainStage].messageToSendWhenTriggered) {
 | 
				
			||||||
            await giveKeyChainMessage(inventory, inventory.accountOwnerId, keyChainInfo);
 | 
					            await giveKeyChainMessage(inventory, keyChainInfo, run > 0);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
@ -14,7 +14,6 @@ import type {
 | 
				
			|||||||
import { logger } from "../utils/logger.ts";
 | 
					import { logger } from "../utils/logger.ts";
 | 
				
			||||||
import { Types } from "mongoose";
 | 
					import { Types } from "mongoose";
 | 
				
			||||||
import { addFusionTreasures, addShipDecorations, getInventory } from "./inventoryService.ts";
 | 
					import { addFusionTreasures, addShipDecorations, getInventory } from "./inventoryService.ts";
 | 
				
			||||||
import { config } from "./configService.ts";
 | 
					 | 
				
			||||||
import { Guild } from "../models/guildModel.ts";
 | 
					import { Guild } from "../models/guildModel.ts";
 | 
				
			||||||
import { hasGuildPermission } from "./guildService.ts";
 | 
					import { hasGuildPermission } from "./guildService.ts";
 | 
				
			||||||
import { GuildPermission } from "../types/guildTypes.ts";
 | 
					import { GuildPermission } from "../types/guildTypes.ts";
 | 
				
			||||||
@ -137,15 +136,13 @@ export const handleSetShipDecorations = async (
 | 
				
			|||||||
        roomToPlaceIn.MaxCapacity += meta.capacityCost;
 | 
					        roomToPlaceIn.MaxCapacity += meta.capacityCost;
 | 
				
			||||||
        await personalRooms.save();
 | 
					        await personalRooms.save();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!config.unlockAllShipDecorations) {
 | 
					        const inventory = await getInventory(accountId);
 | 
				
			||||||
            const inventory = await getInventory(accountId);
 | 
					        if (deco.Sockets !== undefined) {
 | 
				
			||||||
            if (deco.Sockets !== undefined) {
 | 
					            addFusionTreasures(inventory, [{ ItemType: itemType, Sockets: deco.Sockets, ItemCount: 1 }]);
 | 
				
			||||||
                addFusionTreasures(inventory, [{ ItemType: itemType, Sockets: deco.Sockets, ItemCount: 1 }]);
 | 
					        } else {
 | 
				
			||||||
            } else {
 | 
					            addShipDecorations(inventory, [{ ItemType: itemType, ItemCount: 1 }]);
 | 
				
			||||||
                addShipDecorations(inventory, [{ ItemType: itemType, ItemCount: 1 }]);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            await inventory.save();
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        await inventory.save();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
            DecoId: placedDecoration.RemoveId,
 | 
					            DecoId: placedDecoration.RemoveId,
 | 
				
			||||||
@ -155,15 +152,13 @@ export const handleSetShipDecorations = async (
 | 
				
			|||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!config.unlockAllShipDecorations) {
 | 
					    const inventory = await getInventory(accountId);
 | 
				
			||||||
        const inventory = await getInventory(accountId);
 | 
					    if (placedDecoration.Sockets !== undefined) {
 | 
				
			||||||
        if (placedDecoration.Sockets !== undefined) {
 | 
					        addFusionTreasures(inventory, [{ ItemType: itemType, Sockets: placedDecoration.Sockets, ItemCount: -1 }]);
 | 
				
			||||||
            addFusionTreasures(inventory, [{ ItemType: itemType, Sockets: placedDecoration.Sockets, ItemCount: -1 }]);
 | 
					    } else {
 | 
				
			||||||
        } else {
 | 
					        addShipDecorations(inventory, [{ ItemType: itemType, ItemCount: -1 }]);
 | 
				
			||||||
            addShipDecorations(inventory, [{ ItemType: itemType, ItemCount: -1 }]);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        await inventory.save();
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    await inventory.save();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    //place decoration
 | 
					    //place decoration
 | 
				
			||||||
    const decoId = new Types.ObjectId();
 | 
					    const decoId = new Types.ObjectId();
 | 
				
			||||||
@ -221,12 +216,10 @@ export const handleResetShipDecorations = async (
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // refund item
 | 
					        // refund item
 | 
				
			||||||
        if (!config.unlockAllShipDecorations) {
 | 
					        if (deco.Sockets !== undefined) {
 | 
				
			||||||
            if (deco.Sockets !== undefined) {
 | 
					            addFusionTreasures(inventory, [{ ItemType: itemType, Sockets: deco.Sockets, ItemCount: 1 }]);
 | 
				
			||||||
                addFusionTreasures(inventory, [{ ItemType: itemType, Sockets: deco.Sockets, ItemCount: 1 }]);
 | 
					        } else {
 | 
				
			||||||
            } else {
 | 
					            addShipDecorations(inventory, [{ ItemType: itemType, ItemCount: 1 }]);
 | 
				
			||||||
                addShipDecorations(inventory, [{ ItemType: itemType, ItemCount: 1 }]);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // refund capacity
 | 
					        // refund capacity
 | 
				
			||||||
 | 
				
			|||||||
@ -266,14 +266,15 @@ export const getSortie = (day: number): ISortie => {
 | 
				
			|||||||
    const rng = new SRng(seed);
 | 
					    const rng = new SRng(seed);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const boss = rng.randomElement(sortieBosses)!;
 | 
					    const boss = rng.randomElement(sortieBosses)!;
 | 
				
			||||||
 | 
					    const enemyFaction = sortieBossToFaction[boss];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const nodes: string[] = [];
 | 
					    const nodes: string[] = [];
 | 
				
			||||||
    for (const [key, value] of Object.entries(ExportRegions)) {
 | 
					    for (const [key, value] of Object.entries(ExportRegions)) {
 | 
				
			||||||
        if (
 | 
					        if (
 | 
				
			||||||
            sortieFactionToSystemIndexes[sortieBossToFaction[boss]].includes(value.systemIndex) &&
 | 
					            sortieFactionToSystemIndexes[enemyFaction].includes(value.systemIndex) &&
 | 
				
			||||||
            sortieFactionToFactions[sortieBossToFaction[boss]].includes(value.faction!) &&
 | 
					            sortieFactionToFactions[enemyFaction].includes(value.faction!) &&
 | 
				
			||||||
            key in sortieTilesets &&
 | 
					            key in sortieTilesets &&
 | 
				
			||||||
            (key != "SolNode228" || sortieBossToFaction[boss] == "FC_GRINEER") // PoE does not work for non-infested enemies
 | 
					            (key != "SolNode228" || enemyFaction == "FC_GRINEER") // PoE only works for grineer enemies
 | 
				
			||||||
        ) {
 | 
					        ) {
 | 
				
			||||||
            nodes.push(key);
 | 
					            nodes.push(key);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@ -339,13 +340,7 @@ export const getSortie = (day: number): ISortie => {
 | 
				
			|||||||
            modifiers.push("SORTIE_MODIFIER_HAZARD_RADIATION");
 | 
					            modifiers.push("SORTIE_MODIFIER_HAZARD_RADIATION");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (ExportRegions[node].faction == "FC_GRINEER") {
 | 
					        modifiers.push(enemyFaction == "FC_CORPUS" ? "SORTIE_MODIFIER_SHIELDS" : "SORTIE_MODIFIER_ARMOR");
 | 
				
			||||||
            // Grineer
 | 
					 | 
				
			||||||
            modifiers.push("SORTIE_MODIFIER_ARMOR");
 | 
					 | 
				
			||||||
        } else if (ExportRegions[node].faction == "FC_CORPUS") {
 | 
					 | 
				
			||||||
            // Corpus
 | 
					 | 
				
			||||||
            modifiers.push("SORTIE_MODIFIER_SHIELDS");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const modifierType = rng.randomElement(modifiers)!;
 | 
					        const modifierType = rng.randomElement(modifiers)!;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -2803,7 +2798,7 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        const activeStartDay = day - ghoulsCycleDay + 17;
 | 
					        const activeStartDay = day - ghoulsCycleDay + 17;
 | 
				
			||||||
        const activeEndDay = activeStartDay + 5;
 | 
					        const activeEndDay = activeStartDay + 5;
 | 
				
			||||||
        const dayWithFraction = (timeMs - EPOCH) / 86400000;
 | 
					        const dayWithFraction = (timeMs - EPOCH) / unixTimesInMs.day;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const progress = (dayWithFraction - activeStartDay) / (activeEndDay - activeStartDay);
 | 
					        const progress = (dayWithFraction - activeStartDay) / (activeEndDay - activeStartDay);
 | 
				
			||||||
        const healthPct = 1 - Math.min(Math.max(progress, 0), 1);
 | 
					        const healthPct = 1 - Math.min(Math.max(progress, 0), 1);
 | 
				
			||||||
@ -2814,22 +2809,14 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
 | 
				
			|||||||
                $date: {
 | 
					                $date: {
 | 
				
			||||||
                    $numberLong: config.worldState?.ghoulEmergenceOverride
 | 
					                    $numberLong: config.worldState?.ghoulEmergenceOverride
 | 
				
			||||||
                        ? "1753204900185"
 | 
					                        ? "1753204900185"
 | 
				
			||||||
                        : Date.UTC(
 | 
					                        : (EPOCH + activeStartDay * unixTimesInMs.day).toString()
 | 
				
			||||||
                              date.getUTCFullYear(),
 | 
					 | 
				
			||||||
                              date.getUTCMonth(),
 | 
					 | 
				
			||||||
                              date.getUTCDate() + activeStartDay
 | 
					 | 
				
			||||||
                          ).toString()
 | 
					 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            Expiry: {
 | 
					            Expiry: {
 | 
				
			||||||
                $date: {
 | 
					                $date: {
 | 
				
			||||||
                    $numberLong: config.worldState?.ghoulEmergenceOverride
 | 
					                    $numberLong: config.worldState?.ghoulEmergenceOverride
 | 
				
			||||||
                        ? "2000000000000"
 | 
					                        ? "2000000000000"
 | 
				
			||||||
                        : Date.UTC(
 | 
					                        : (EPOCH + activeEndDay * unixTimesInMs.day).toString()
 | 
				
			||||||
                              date.getUTCFullYear(),
 | 
					 | 
				
			||||||
                              date.getUTCMonth(),
 | 
					 | 
				
			||||||
                              date.getUTCDate() + activeEndDay
 | 
					 | 
				
			||||||
                          ).toString()
 | 
					 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            HealthPct: config.worldState?.ghoulEmergenceOverride ? 1 : healthPct,
 | 
					            HealthPct: config.worldState?.ghoulEmergenceOverride ? 1 : healthPct,
 | 
				
			||||||
 | 
				
			|||||||
@ -995,10 +995,10 @@ export interface IQuestKeyClient extends Omit<IQuestKeyDatabase, "CompletionDate
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export interface IQuestStage {
 | 
					export interface IQuestStage {
 | 
				
			||||||
    c?: number;
 | 
					    c: number;
 | 
				
			||||||
    i?: boolean;
 | 
					    i: boolean;
 | 
				
			||||||
    m?: boolean;
 | 
					    m: boolean;
 | 
				
			||||||
    b?: any[];
 | 
					    b: any[];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export interface IRawUpgrade {
 | 
					export interface IRawUpgrade {
 | 
				
			||||||
 | 
				
			|||||||
@ -45,6 +45,15 @@ export type IMissionInventoryUpdateRequest = {
 | 
				
			|||||||
    EmailItems?: ITypeCount[];
 | 
					    EmailItems?: ITypeCount[];
 | 
				
			||||||
    ShipDecorations?: ITypeCount[];
 | 
					    ShipDecorations?: ITypeCount[];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // flags for interstitial requests
 | 
				
			||||||
 | 
					    BMI?: boolean;
 | 
				
			||||||
 | 
					    TNT?: boolean; // Conservation; definitely need to include AffiliationMods in this case, so a normal 'inventory sync' would not work here.
 | 
				
			||||||
 | 
					    SSC?: boolean; // K-Drive race?
 | 
				
			||||||
 | 
					    RJ?: boolean; // Railjack. InventoryJson should only be returned when going back to dojo.
 | 
				
			||||||
 | 
					    SS?: boolean;
 | 
				
			||||||
 | 
					    CMI?: boolean;
 | 
				
			||||||
 | 
					    EJC?: boolean;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    SyndicateId?: string;
 | 
					    SyndicateId?: string;
 | 
				
			||||||
    SortieId?: string;
 | 
					    SortieId?: string;
 | 
				
			||||||
    CalendarProgress?: { challenge: string }[];
 | 
					    CalendarProgress?: { challenge: string }[];
 | 
				
			||||||
@ -149,7 +158,6 @@ export type IMissionInventoryUpdateRequest = {
 | 
				
			|||||||
        MultiProgress: unknown[];
 | 
					        MultiProgress: unknown[];
 | 
				
			||||||
    }[];
 | 
					    }[];
 | 
				
			||||||
    InvasionProgress?: IInvasionProgressClient[];
 | 
					    InvasionProgress?: IInvasionProgressClient[];
 | 
				
			||||||
    RJ?: boolean;
 | 
					 | 
				
			||||||
    ConquestMissionsCompleted?: number;
 | 
					    ConquestMissionsCompleted?: number;
 | 
				
			||||||
    duviriSuitSelection?: string;
 | 
					    duviriSuitSelection?: string;
 | 
				
			||||||
    duviriPistolSelection?: string;
 | 
					    duviriPistolSelection?: string;
 | 
				
			||||||
 | 
				
			|||||||
@ -6,7 +6,7 @@
 | 
				
			|||||||
      "Messages": [
 | 
					      "Messages": [
 | 
				
			||||||
        { "LanguageCode": "fr", "Message": "Rejoignez le Discord OpenWF!" },
 | 
					        { "LanguageCode": "fr", "Message": "Rejoignez le Discord OpenWF!" },
 | 
				
			||||||
        { "LanguageCode": "it", "Message": "Unisciti al Discord di OpenWF!" },
 | 
					        { "LanguageCode": "it", "Message": "Unisciti al Discord di OpenWF!" },
 | 
				
			||||||
        { "LanguageCode": "de", "Message": "Tritt dem OpenWF Discord bei!" },
 | 
					        { "LanguageCode": "de", "Message": "Trete dem OpenWF Discord bei!" },
 | 
				
			||||||
        { "LanguageCode": "es", "Message": "Únete al Discord de OpenWF!" },
 | 
					        { "LanguageCode": "es", "Message": "Únete al Discord de OpenWF!" },
 | 
				
			||||||
        { "LanguageCode": "pt", "Message": "Junte-se ao Discord do OpenWF!" },
 | 
					        { "LanguageCode": "pt", "Message": "Junte-se ao Discord do OpenWF!" },
 | 
				
			||||||
        { "LanguageCode": "ru", "Message": "Присоединяйтесь к OpenWF Discord!" },
 | 
					        { "LanguageCode": "ru", "Message": "Присоединяйтесь к OpenWF Discord!" },
 | 
				
			||||||
 | 
				
			|||||||
@ -108,9 +108,9 @@
 | 
				
			|||||||
                    <div class="card-body">
 | 
					                    <div class="card-body">
 | 
				
			||||||
                        <div class="tab-content">
 | 
					                        <div class="tab-content">
 | 
				
			||||||
                            <div class="tab-pane" id="miscItems-tab-content">
 | 
					                            <div class="tab-pane" id="miscItems-tab-content">
 | 
				
			||||||
                                <form class="card-body input-group" onsubmit="doAcquireMiscItems();return false;">
 | 
					                                <form class="card-body input-group" onsubmit="doAcquireCountItems('miscitem');return false;">
 | 
				
			||||||
                                    <input class="form-control" id="miscitem-count" type="number" value="1" />
 | 
					                                    <input class="form-control" id="miscitem-count" type="number" value="1" />
 | 
				
			||||||
                                    <input class="form-control w-50" id="miscitem-type" list="datalist-miscitems" />
 | 
					                                    <input class="form-control w-50" id="acquire-type-miscitem" list="datalist-miscitems" />
 | 
				
			||||||
                                    <button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
 | 
					                                    <button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
 | 
				
			||||||
                                </form>
 | 
					                                </form>
 | 
				
			||||||
                            </div>
 | 
					                            </div>
 | 
				
			||||||
@ -459,6 +459,37 @@
 | 
				
			|||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
 | 
					                <div class="row g-3 mb-3">
 | 
				
			||||||
 | 
					                    <div class="col-lg-6">
 | 
				
			||||||
 | 
					                        <div class="card" style="height: 400px;">
 | 
				
			||||||
 | 
					                            <h5 class="card-header" data-loc="inventory_flavourItems"></h5>
 | 
				
			||||||
 | 
					                            <div class="card-body overflow-auto">
 | 
				
			||||||
 | 
					                                <form class="input-group mb-3" onsubmit="doAcquireEquipment('FlavourItems');return false;">
 | 
				
			||||||
 | 
					                                    <input class="form-control" id="acquire-type-FlavourItems" list="datalist-FlavourItems" />
 | 
				
			||||||
 | 
					                                    <button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
 | 
				
			||||||
 | 
					                                </form>
 | 
				
			||||||
 | 
					                                <table class="table table-hover w-100">
 | 
				
			||||||
 | 
					                                    <tbody id="FlavourItems-list"></tbody>
 | 
				
			||||||
 | 
					                                </table>
 | 
				
			||||||
 | 
					                            </div>
 | 
				
			||||||
 | 
					                        </div>
 | 
				
			||||||
 | 
					                    </div>
 | 
				
			||||||
 | 
					                    <div class="col-lg-6">
 | 
				
			||||||
 | 
					                        <div class="card" style="height: 400px;">
 | 
				
			||||||
 | 
					                            <h5 class="card-header" data-loc="inventory_shipDecorations"></h5>
 | 
				
			||||||
 | 
					                            <div class="card-body overflow-auto">
 | 
				
			||||||
 | 
					                                <form class="card-body input-group" onsubmit="doAcquireCountItems('ShipDecorations');return false;">
 | 
				
			||||||
 | 
					                                    <input class="form-control" id="ShipDecorations-count" type="number" value="1" />
 | 
				
			||||||
 | 
					                                    <input class="form-control w-50" id="acquire-type-ShipDecorations" list="datalist-ShipDecorations" />
 | 
				
			||||||
 | 
					                                    <button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
 | 
				
			||||||
 | 
					                                </form>
 | 
				
			||||||
 | 
					                                <table class="table table-hover w-100">
 | 
				
			||||||
 | 
					                                    <tbody id="ShipDecorations-list"></tbody>
 | 
				
			||||||
 | 
					                                </table>
 | 
				
			||||||
 | 
					                            </div>
 | 
				
			||||||
 | 
					                        </div>
 | 
				
			||||||
 | 
					                    </div>
 | 
				
			||||||
 | 
					                </div>
 | 
				
			||||||
                <div class="card">
 | 
					                <div class="card">
 | 
				
			||||||
                    <h5 class="card-header" data-loc="general_bulkActions"></h5>
 | 
					                    <h5 class="card-header" data-loc="general_bulkActions"></h5>
 | 
				
			||||||
                    <div class="card-body">
 | 
					                    <div class="card-body">
 | 
				
			||||||
@ -469,6 +500,8 @@
 | 
				
			|||||||
                            <button class="btn btn-primary" onclick="debounce(addMissingEquipment, ['SpaceGuns', 'SpaceMelee']);" data-loc="inventory_bulkAddSpaceWeapons"></button>
 | 
					                            <button class="btn btn-primary" onclick="debounce(addMissingEquipment, ['SpaceGuns', 'SpaceMelee']);" data-loc="inventory_bulkAddSpaceWeapons"></button>
 | 
				
			||||||
                            <button class="btn btn-primary" onclick="debounce(addMissingEquipment, ['Sentinels']);" data-loc="inventory_bulkAddSentinels"></button>
 | 
					                            <button class="btn btn-primary" onclick="debounce(addMissingEquipment, ['Sentinels']);" data-loc="inventory_bulkAddSentinels"></button>
 | 
				
			||||||
                            <button class="btn btn-primary" onclick="debounce(addMissingEquipment, ['SentinelWeapons']);" data-loc="inventory_bulkAddSentinelWeapons"></button>
 | 
					                            <button class="btn btn-primary" onclick="debounce(addMissingEquipment, ['SentinelWeapons']);" data-loc="inventory_bulkAddSentinelWeapons"></button>
 | 
				
			||||||
 | 
					                            <button class="btn btn-primary" onclick="debounce(addMissingEquipment, ['FlavourItems']);" data-loc="inventory_bulkAddFlavourItems"></button>
 | 
				
			||||||
 | 
					                            <button class="btn btn-primary" onclick="debounce(addMissingEquipment, ['ShipDecorations']);" data-loc="inventory_bulkAddShipDecorations"></button>
 | 
				
			||||||
                            <button class="btn btn-primary" onclick="debounce(addMissingEvolutionProgress);" data-loc="inventory_bulkAddEvolutionProgress"></button>
 | 
					                            <button class="btn btn-primary" onclick="debounce(addMissingEvolutionProgress);" data-loc="inventory_bulkAddEvolutionProgress"></button>
 | 
				
			||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                        <div class="mb-2 d-flex flex-wrap gap-2">
 | 
					                        <div class="mb-2 d-flex flex-wrap gap-2">
 | 
				
			||||||
@ -1097,14 +1130,6 @@
 | 
				
			|||||||
                                        <input class="form-check-input" type="checkbox" id="skipTutorial" />
 | 
					                                        <input class="form-check-input" type="checkbox" id="skipTutorial" />
 | 
				
			||||||
                                        <label class="form-check-label" for="skipTutorial" data-loc="cheats_skipTutorial"></label>
 | 
					                                        <label class="form-check-label" for="skipTutorial" data-loc="cheats_skipTutorial"></label>
 | 
				
			||||||
                                    </div>
 | 
					                                    </div>
 | 
				
			||||||
                                    <div class="form-check">
 | 
					 | 
				
			||||||
                                        <input class="form-check-input" type="checkbox" id="unlockAllShipDecorations" />
 | 
					 | 
				
			||||||
                                        <label class="form-check-label" for="unlockAllShipDecorations" data-loc="cheats_unlockAllShipDecorations"></label>
 | 
					 | 
				
			||||||
                                    </div>
 | 
					 | 
				
			||||||
                                    <div class="form-check">
 | 
					 | 
				
			||||||
                                        <input class="form-check-input" type="checkbox" id="unlockAllFlavourItems" />
 | 
					 | 
				
			||||||
                                        <label class="form-check-label" for="unlockAllFlavourItems" data-loc="cheats_unlockAllFlavourItems"></label>
 | 
					 | 
				
			||||||
                                    </div>
 | 
					 | 
				
			||||||
                                    <div class="form-check">
 | 
					                                    <div class="form-check">
 | 
				
			||||||
                                        <input class="form-check-input" type="checkbox" id="unlockAllSkins" />
 | 
					                                        <input class="form-check-input" type="checkbox" id="unlockAllSkins" />
 | 
				
			||||||
                                        <label class="form-check-label" for="unlockAllSkins" data-loc="cheats_unlockAllSkins"></label>
 | 
					                                        <label class="form-check-label" for="unlockAllSkins" data-loc="cheats_unlockAllSkins"></label>
 | 
				
			||||||
@ -1505,6 +1530,8 @@
 | 
				
			|||||||
    <datalist id="datalist-Abilities"></datalist>
 | 
					    <datalist id="datalist-Abilities"></datalist>
 | 
				
			||||||
    <datalist id="datalist-TechProjects"></datalist>
 | 
					    <datalist id="datalist-TechProjects"></datalist>
 | 
				
			||||||
    <datalist id="datalist-VaultDecoRecipes"></datalist>
 | 
					    <datalist id="datalist-VaultDecoRecipes"></datalist>
 | 
				
			||||||
 | 
					    <datalist id="datalist-FlavourItems"></datalist>
 | 
				
			||||||
 | 
					    <datalist id="datalist-ShipDecorations"></datalist>
 | 
				
			||||||
    <datalist id="datalist-circuitGameModes">
 | 
					    <datalist id="datalist-circuitGameModes">
 | 
				
			||||||
        <option>Survival</option>
 | 
					        <option>Survival</option>
 | 
				
			||||||
        <option>VoidFlood</option>
 | 
					        <option>VoidFlood</option>
 | 
				
			||||||
 | 
				
			|||||||
@ -505,6 +505,9 @@ function fetchItemList() {
 | 
				
			|||||||
                        i => i.uniqueName === "/Lotus/Types/Friendly/Pets/ZanukaPets/ZanukaPetParts/ZanukaPetPartHeadC"
 | 
					                        i => i.uniqueName === "/Lotus/Types/Friendly/Pets/ZanukaPets/ZanukaPetParts/ZanukaPetPartHeadC"
 | 
				
			||||||
                    ).name
 | 
					                    ).name
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
 | 
					                "/Lotus/Powersuits/Stalker/Stalker": {
 | 
				
			||||||
 | 
					                    name: loc("code_stalker")
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
                "/Lotus/Language/Game/Rank_Creator": {
 | 
					                "/Lotus/Language/Game/Rank_Creator": {
 | 
				
			||||||
                    name: loc("guildView_rank_creator")
 | 
					                    name: loc("guildView_rank_creator")
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
@ -570,6 +573,35 @@ function fetchItemList() {
 | 
				
			|||||||
                        option.textContent = item.name;
 | 
					                        option.textContent = item.name;
 | 
				
			||||||
                        document.getElementById("changeSyndicate").appendChild(option);
 | 
					                        document.getElementById("changeSyndicate").appendChild(option);
 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
 | 
					                } else if (type == "FlavourItems") {
 | 
				
			||||||
 | 
					                    const cursorPrefixes = {
 | 
				
			||||||
 | 
					                        Controller: loc("code_controller"),
 | 
				
			||||||
 | 
					                        MouseGrey: loc("code_mouse"),
 | 
				
			||||||
 | 
					                        MouseLine: loc("code_mouseLine"),
 | 
				
			||||||
 | 
					                        Mouse: loc("code_mouse")
 | 
				
			||||||
 | 
					                    };
 | 
				
			||||||
 | 
					                    items.forEach(item => {
 | 
				
			||||||
 | 
					                        if (item.uniqueName.startsWith("/Lotus/Interface/Graphics/CustomUI/Cursors/")) {
 | 
				
			||||||
 | 
					                            let base = item.uniqueName.replace("/Lotus/Interface/Graphics/CustomUI/Cursors/", "");
 | 
				
			||||||
 | 
					                            for (const key in cursorPrefixes) {
 | 
				
			||||||
 | 
					                                if (base.startsWith(key)) {
 | 
				
			||||||
 | 
					                                    const prefix = cursorPrefixes[key];
 | 
				
			||||||
 | 
					                                    const suffix = base.slice(key.length);
 | 
				
			||||||
 | 
					                                    item.name = prefix + " " + suffix;
 | 
				
			||||||
 | 
					                                    break;
 | 
				
			||||||
 | 
					                                }
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
 | 
					                        } else if (item.uniqueName.includes("ColourPicker")) {
 | 
				
			||||||
 | 
					                            item.name = loc("code_itemColorPalette").split("|ITEM|").join(item.name);
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					                        if (!item.alwaysAvailable) {
 | 
				
			||||||
 | 
					                            const option = document.createElement("option");
 | 
				
			||||||
 | 
					                            option.setAttribute("data-key", item.uniqueName);
 | 
				
			||||||
 | 
					                            option.value = item.name;
 | 
				
			||||||
 | 
					                            document.getElementById("datalist-" + type).appendChild(option);
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					                        itemMap[item.uniqueName] = { ...item, type };
 | 
				
			||||||
 | 
					                    });
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    const nameToItems = {};
 | 
					                    const nameToItems = {};
 | 
				
			||||||
                    items.forEach(item => {
 | 
					                    items.forEach(item => {
 | 
				
			||||||
@ -960,6 +992,46 @@ function updateInventory() {
 | 
				
			|||||||
                document.getElementById("EvolutionProgress-list").appendChild(tr);
 | 
					                document.getElementById("EvolutionProgress-list").appendChild(tr);
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            document.getElementById("FlavourItems-list").innerHTML = "";
 | 
				
			||||||
 | 
					            data.FlavourItems.forEach(item => {
 | 
				
			||||||
 | 
					                const datalist = document.getElementById("datalist-FlavourItems");
 | 
				
			||||||
 | 
					                if (!data.FlavourItems.some(x => x.ItemType == item.ItemType)) {
 | 
				
			||||||
 | 
					                    if (!datalist.querySelector(`option[data-key="${item.ItemType}"]`)) {
 | 
				
			||||||
 | 
					                        reAddToItemList(itemMap, "FlavourItems", item.ItemType);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                const optionToRemove = datalist.querySelector(`option[data-key="${item.ItemType}"]`);
 | 
				
			||||||
 | 
					                optionToRemove?.remove();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                const tr = document.createElement("tr");
 | 
				
			||||||
 | 
					                tr.setAttribute("data-item-type", item.ItemType);
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    const td = document.createElement("td");
 | 
				
			||||||
 | 
					                    td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType;
 | 
				
			||||||
 | 
					                    tr.appendChild(td);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    const td = document.createElement("td");
 | 
				
			||||||
 | 
					                    td.classList = "text-end text-nowrap";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        const a = document.createElement("a");
 | 
				
			||||||
 | 
					                        a.href = "#";
 | 
				
			||||||
 | 
					                        a.onclick = function (event) {
 | 
				
			||||||
 | 
					                            event.preventDefault();
 | 
				
			||||||
 | 
					                            reAddToItemList(itemMap, "FlavourItems", item.ItemType);
 | 
				
			||||||
 | 
					                            removeCustomization(item.ItemType);
 | 
				
			||||||
 | 
					                        };
 | 
				
			||||||
 | 
					                        a.title = loc("code_remove");
 | 
				
			||||||
 | 
					                        a.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"/></svg>`;
 | 
				
			||||||
 | 
					                        td.appendChild(a);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    tr.appendChild(td);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                document.getElementById("FlavourItems-list").appendChild(tr);
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            const datalistEvolutionProgress = document.querySelectorAll("#datalist-EvolutionProgress option");
 | 
					            const datalistEvolutionProgress = document.querySelectorAll("#datalist-EvolutionProgress option");
 | 
				
			||||||
            const formEvolutionProgress = document.querySelector('form[onsubmit*="doAcquireEvolution()"]');
 | 
					            const formEvolutionProgress = document.querySelector('form[onsubmit*="doAcquireEvolution()"]');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -976,6 +1048,40 @@ function updateInventory() {
 | 
				
			|||||||
                };
 | 
					                };
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            document.getElementById("ShipDecorations-list").innerHTML = "";
 | 
				
			||||||
 | 
					            data.ShipDecorations.forEach(item => {
 | 
				
			||||||
 | 
					                if (item.ItemCount > 0) {
 | 
				
			||||||
 | 
					                    const tr = document.createElement("tr");
 | 
				
			||||||
 | 
					                    tr.setAttribute("data-item-type", item.ItemType);
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        const td = document.createElement("td");
 | 
				
			||||||
 | 
					                        td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType;
 | 
				
			||||||
 | 
					                        if (item.ItemCount > 1) {
 | 
				
			||||||
 | 
					                            td.innerHTML +=
 | 
				
			||||||
 | 
					                                " <span title='" + loc("code_count") + "'>🗍 " + parseInt(item.ItemCount) + "</span>";
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					                        tr.appendChild(td);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        const td = document.createElement("td");
 | 
				
			||||||
 | 
					                        td.classList = "text-end text-nowrap";
 | 
				
			||||||
 | 
					                        {
 | 
				
			||||||
 | 
					                            const a = document.createElement("a");
 | 
				
			||||||
 | 
					                            a.href = "#";
 | 
				
			||||||
 | 
					                            a.onclick = function (event) {
 | 
				
			||||||
 | 
					                                event.preventDefault();
 | 
				
			||||||
 | 
					                                removeCountItems(item.ItemType, item.ItemCount);
 | 
				
			||||||
 | 
					                            };
 | 
				
			||||||
 | 
					                            a.title = loc("code_remove");
 | 
				
			||||||
 | 
					                            a.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"/></svg>`;
 | 
				
			||||||
 | 
					                            td.appendChild(a);
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
 | 
					                        tr.appendChild(td);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    document.getElementById("ShipDecorations-list").appendChild(tr);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // Populate quests route
 | 
					            // Populate quests route
 | 
				
			||||||
            document.getElementById("QuestKeys-list").innerHTML = "";
 | 
					            document.getElementById("QuestKeys-list").innerHTML = "";
 | 
				
			||||||
            window.allQuestKeys.forEach(questKey => {
 | 
					            window.allQuestKeys.forEach(questKey => {
 | 
				
			||||||
@ -989,7 +1095,8 @@ function updateInventory() {
 | 
				
			|||||||
            data.QuestKeys.forEach(item => {
 | 
					            data.QuestKeys.forEach(item => {
 | 
				
			||||||
                const tr = document.createElement("tr");
 | 
					                const tr = document.createElement("tr");
 | 
				
			||||||
                tr.setAttribute("data-item-type", item.ItemType);
 | 
					                tr.setAttribute("data-item-type", item.ItemType);
 | 
				
			||||||
                const stage = item.Progress?.length ?? 0;
 | 
					                const run = item.Progress[0]?.c ?? 0;
 | 
				
			||||||
 | 
					                const stage = run == 0 ? item.Progress.length : item.Progress.map(p => p.c ?? 0).lastIndexOf(run);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                const datalist = document.getElementById("datalist-QuestKeys");
 | 
					                const datalist = document.getElementById("datalist-QuestKeys");
 | 
				
			||||||
                const optionToRemove = datalist.querySelector(`option[data-key="${item.ItemType}"]`);
 | 
					                const optionToRemove = datalist.querySelector(`option[data-key="${item.ItemType}"]`);
 | 
				
			||||||
@ -1007,6 +1114,10 @@ function updateInventory() {
 | 
				
			|||||||
                        td.textContent += " | " + loc("code_completed");
 | 
					                        td.textContent += " | " + loc("code_completed");
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    if (run > 0) {
 | 
				
			||||||
 | 
					                        td.textContent += " | " + loc("code_replays") + ": " + (run + 1);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (data.ActiveQuest == item.ItemType) td.textContent += " | " + loc("code_active");
 | 
					                    if (data.ActiveQuest == item.ItemType) td.textContent += " | " + loc("code_active");
 | 
				
			||||||
                    tr.appendChild(td);
 | 
					                    tr.appendChild(td);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
@ -1232,7 +1343,8 @@ function updateInventory() {
 | 
				
			|||||||
                        td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType;
 | 
					                        td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType;
 | 
				
			||||||
                        td.innerHTML += " <span title='" + loc("code_rank") + "'>★ 0/" + maxRank + "</span>";
 | 
					                        td.innerHTML += " <span title='" + loc("code_rank") + "'>★ 0/" + maxRank + "</span>";
 | 
				
			||||||
                        if (item.ItemCount > 1) {
 | 
					                        if (item.ItemCount > 1) {
 | 
				
			||||||
                            td.innerHTML += " <span title='Count'>🗍 " + parseInt(item.ItemCount) + "</span>";
 | 
					                            td.innerHTML +=
 | 
				
			||||||
 | 
					                                " <span title='" + loc("code_count") + "'>🗍 " + parseInt(item.ItemCount) + "</span>";
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        tr.appendChild(td);
 | 
					                        tr.appendChild(td);
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
@ -1970,6 +2082,15 @@ function doAcquireEquipment(category) {
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function removeCustomization(uniqueName) {
 | 
				
			||||||
 | 
					    revalidateAuthz().then(() => {
 | 
				
			||||||
 | 
					        const req = $.get("/custom/removeCustomization?" + window.authz + "&itemType=" + uniqueName);
 | 
				
			||||||
 | 
					        req.done(() => {
 | 
				
			||||||
 | 
					            updateInventory();
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function getRequiredParts(category, WeaponType) {
 | 
					function getRequiredParts(category, WeaponType) {
 | 
				
			||||||
    switch (category) {
 | 
					    switch (category) {
 | 
				
			||||||
        case "Hoverboards":
 | 
					        case "Hoverboards":
 | 
				
			||||||
@ -2151,7 +2272,9 @@ function addMissingEquipment(categories) {
 | 
				
			|||||||
                )
 | 
					                )
 | 
				
			||||||
            ) {
 | 
					            ) {
 | 
				
			||||||
                if (!webUiModularWeapons.includes(elm.getAttribute("data-key"))) {
 | 
					                if (!webUiModularWeapons.includes(elm.getAttribute("data-key"))) {
 | 
				
			||||||
                    requests.push({ ItemType: elm.getAttribute("data-key"), ItemCount: 1 });
 | 
					                    let ItemCount = 1;
 | 
				
			||||||
 | 
					                    if (category == "ShipDecorations") ItemCount = 999999;
 | 
				
			||||||
 | 
					                    requests.push({ ItemType: elm.getAttribute("data-key"), ItemCount });
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
@ -2671,13 +2794,13 @@ function setEvolutionProgress(requests) {
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function doAcquireMiscItems() {
 | 
					function doAcquireCountItems(category) {
 | 
				
			||||||
    const uniqueName = getKey(document.getElementById("miscitem-type"));
 | 
					    const uniqueName = getKey(document.getElementById(category + "-type"));
 | 
				
			||||||
    if (!uniqueName) {
 | 
					    if (!uniqueName) {
 | 
				
			||||||
        $("#miscitem-type").addClass("is-invalid").focus();
 | 
					        $(`#acquire-type-${category}`).addClass("is-invalid").focus();
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    const count = parseInt($("#miscitem-count").val());
 | 
					    const count = parseInt($(`#${category}-count`).val());
 | 
				
			||||||
    if (count != 0) {
 | 
					    if (count != 0) {
 | 
				
			||||||
        revalidateAuthz().then(() => {
 | 
					        revalidateAuthz().then(() => {
 | 
				
			||||||
            $.post({
 | 
					            $.post({
 | 
				
			||||||
@ -2695,11 +2818,30 @@ function doAcquireMiscItems() {
 | 
				
			|||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    toast(loc("code_succRemoved"));
 | 
					                    toast(loc("code_succRemoved"));
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					                if (category != "miscitem") updateInventory();
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function removeCountItems(uniqueName, count) {
 | 
				
			||||||
 | 
					    revalidateAuthz().then(() => {
 | 
				
			||||||
 | 
					        $.post({
 | 
				
			||||||
 | 
					            url: "/custom/addItems?" + window.authz,
 | 
				
			||||||
 | 
					            contentType: "application/json",
 | 
				
			||||||
 | 
					            data: JSON.stringify([
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    ItemType: uniqueName,
 | 
				
			||||||
 | 
					                    ItemCount: count * -1
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ])
 | 
				
			||||||
 | 
					        }).done(function () {
 | 
				
			||||||
 | 
					            toast(loc("code_succRemoved"));
 | 
				
			||||||
 | 
					            updateInventory();
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function addItemByItemType() {
 | 
					function addItemByItemType() {
 | 
				
			||||||
    const ItemType = document.getElementById("typeName-type").value;
 | 
					    const ItemType = document.getElementById("typeName-type").value;
 | 
				
			||||||
    // Must start with "/Lotus/", contain only A–Z letters, no "//", and not end with "/"
 | 
					    // Must start with "/Lotus/", contain only A–Z letters, no "//", and not end with "/"
 | 
				
			||||||
@ -3273,10 +3415,13 @@ function doAddCurrency(currency) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function reAddToItemList(itemMap, datalist, itemType) {
 | 
					function reAddToItemList(itemMap, datalist, itemType) {
 | 
				
			||||||
    const option = document.createElement("option");
 | 
					    const item = itemMap[itemType];
 | 
				
			||||||
    option.setAttribute("data-key", itemType);
 | 
					    if (!item?.alwaysAvailable) {
 | 
				
			||||||
    option.value = itemMap[itemType]?.name ?? itemType;
 | 
					        const option = document.createElement("option");
 | 
				
			||||||
    document.getElementById("datalist-" + datalist).appendChild(option);
 | 
					        option.setAttribute("data-key", itemType);
 | 
				
			||||||
 | 
					        option.value = item?.name ?? itemType;
 | 
				
			||||||
 | 
					        document.getElementById("datalist-" + datalist).appendChild(option);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function doQuestUpdate(operation, itemType) {
 | 
					function doQuestUpdate(operation, itemType) {
 | 
				
			||||||
 | 
				
			|||||||
@ -64,10 +64,16 @@ dict = {
 | 
				
			|||||||
    code_completed: `Abgeschlossen`,
 | 
					    code_completed: `Abgeschlossen`,
 | 
				
			||||||
    code_active: `Aktiv`,
 | 
					    code_active: `Aktiv`,
 | 
				
			||||||
    code_pigment: `Pigment`,
 | 
					    code_pigment: `Pigment`,
 | 
				
			||||||
 | 
					    code_controller: `[UNTRANSLATED] Controller cursor`,
 | 
				
			||||||
 | 
					    code_mouseLine: `[UNTRANSLATED] Line cursor`,
 | 
				
			||||||
 | 
					    code_mouse: `[UNTRANSLATED] Cursor`,
 | 
				
			||||||
 | 
					    code_itemColorPalette: `|ITEM| Farbpalette`,
 | 
				
			||||||
    code_mature: `Für den Kampf auswachsen lassen`,
 | 
					    code_mature: `Für den Kampf auswachsen lassen`,
 | 
				
			||||||
    code_unmature: `Genetisches Altern zurücksetzen`,
 | 
					    code_unmature: `Genetisches Altern zurücksetzen`,
 | 
				
			||||||
    code_fund: `[UNTRANSLATED] Fund`,
 | 
					    code_fund: `[UNTRANSLATED] Fund`,
 | 
				
			||||||
    code_funded: `[UNTRANSLATED] Funded`,
 | 
					    code_funded: `[UNTRANSLATED] Funded`,
 | 
				
			||||||
 | 
					    code_replays: `[UNTRANSLATED] Replays`,
 | 
				
			||||||
 | 
					    code_stalker: `Stalker`,
 | 
				
			||||||
    code_succChange: `Erfolgreich geändert.`,
 | 
					    code_succChange: `Erfolgreich geändert.`,
 | 
				
			||||||
    code_requiredInvigorationUpgrade: `Du musst sowohl ein offensives & defensives Upgrade auswählen.`,
 | 
					    code_requiredInvigorationUpgrade: `Du musst sowohl ein offensives & defensives Upgrade auswählen.`,
 | 
				
			||||||
    login_description: `Melde dich mit deinem OpenWF-Account an (denselben Angaben wie im Spiel, wenn du dich mit diesem Server verbindest).`,
 | 
					    login_description: `Melde dich mit deinem OpenWF-Account an (denselben Angaben wie im Spiel, wenn du dich mit diesem Server verbindest).`,
 | 
				
			||||||
@ -103,12 +109,16 @@ dict = {
 | 
				
			|||||||
    inventory_kubrowPets: `Bestien`,
 | 
					    inventory_kubrowPets: `Bestien`,
 | 
				
			||||||
    inventory_evolutionProgress: `Incarnon-Entwicklungsfortschritte`,
 | 
					    inventory_evolutionProgress: `Incarnon-Entwicklungsfortschritte`,
 | 
				
			||||||
    inventory_Boosters: `Booster`,
 | 
					    inventory_Boosters: `Booster`,
 | 
				
			||||||
 | 
					    inventory_flavourItems: `<abbr title="Animationssets, Glyphen, Farbpaletten usw.">Sammlerstücke</abbr>`,
 | 
				
			||||||
 | 
					    inventory_shipDecorations: `Schiffsdekorationen`,
 | 
				
			||||||
    inventory_bulkAddSuits: `Fehlende Warframes hinzufügen`,
 | 
					    inventory_bulkAddSuits: `Fehlende Warframes hinzufügen`,
 | 
				
			||||||
    inventory_bulkAddWeapons: `Fehlende Waffen hinzufügen`,
 | 
					    inventory_bulkAddWeapons: `Fehlende Waffen hinzufügen`,
 | 
				
			||||||
    inventory_bulkAddSpaceSuits: `Fehlende Archwings hinzufügen`,
 | 
					    inventory_bulkAddSpaceSuits: `Fehlende Archwings hinzufügen`,
 | 
				
			||||||
    inventory_bulkAddSpaceWeapons: `Fehlende Archwing-Waffen hinzufügen`,
 | 
					    inventory_bulkAddSpaceWeapons: `Fehlende Archwing-Waffen hinzufügen`,
 | 
				
			||||||
    inventory_bulkAddSentinels: `Fehlende Wächter hinzufügen`,
 | 
					    inventory_bulkAddSentinels: `Fehlende Wächter hinzufügen`,
 | 
				
			||||||
    inventory_bulkAddSentinelWeapons: `Fehlende Wächter-Waffen hinzufügen`,
 | 
					    inventory_bulkAddSentinelWeapons: `Fehlende Wächter-Waffen hinzufügen`,
 | 
				
			||||||
 | 
					    inventory_bulkAddFlavourItems: `[UNTRANSLATED] Add Missing Flavour Items`,
 | 
				
			||||||
 | 
					    inventory_bulkAddShipDecorations: `[UNTRANSLATED] Add Missing Ship Decorations`,
 | 
				
			||||||
    inventory_bulkAddEvolutionProgress: `Fehlende Incarnon-Entwicklungsfortschritte hinzufügen`,
 | 
					    inventory_bulkAddEvolutionProgress: `Fehlende Incarnon-Entwicklungsfortschritte hinzufügen`,
 | 
				
			||||||
    inventory_bulkRankUpSuits: `Alle Warframes auf Max. Rang`,
 | 
					    inventory_bulkRankUpSuits: `Alle Warframes auf Max. Rang`,
 | 
				
			||||||
    inventory_bulkRankUpWeapons: `Alle Waffen auf Max. Rang`,
 | 
					    inventory_bulkRankUpWeapons: `Alle Waffen auf Max. Rang`,
 | 
				
			||||||
@ -198,8 +208,6 @@ dict = {
 | 
				
			|||||||
    cheats_dontSubtractVoidTraces: `Void-Spuren nicht verbrauchen`,
 | 
					    cheats_dontSubtractVoidTraces: `Void-Spuren nicht verbrauchen`,
 | 
				
			||||||
    cheats_dontSubtractConsumables: `Verbrauchsgegenstände (Ausrüstung) nicht verbrauchen`,
 | 
					    cheats_dontSubtractConsumables: `Verbrauchsgegenstände (Ausrüstung) nicht verbrauchen`,
 | 
				
			||||||
    cheats_unlockAllShipFeatures: `Alle Schiffs-Funktionen freischalten`,
 | 
					    cheats_unlockAllShipFeatures: `Alle Schiffs-Funktionen freischalten`,
 | 
				
			||||||
    cheats_unlockAllShipDecorations: `Alle Schiffsdekorationen freischalten`,
 | 
					 | 
				
			||||||
    cheats_unlockAllFlavourItems: `Alle <abbr title="Animationssets, Glyphen, Farbpaletten usw.">Sammlerstücke</abbr> freischalten`,
 | 
					 | 
				
			||||||
    cheats_unlockAllSkins: `Alle Skins freischalten`,
 | 
					    cheats_unlockAllSkins: `Alle Skins freischalten`,
 | 
				
			||||||
    cheats_unlockAllCapturaScenes: `Alle Photora-Szenen freischalten`,
 | 
					    cheats_unlockAllCapturaScenes: `Alle Photora-Szenen freischalten`,
 | 
				
			||||||
    cheats_universalPolarityEverywhere: `Universelle Polarität überall`,
 | 
					    cheats_universalPolarityEverywhere: `Universelle Polarität überall`,
 | 
				
			||||||
 | 
				
			|||||||
@ -63,10 +63,16 @@ dict = {
 | 
				
			|||||||
    code_completed: `Completed`,
 | 
					    code_completed: `Completed`,
 | 
				
			||||||
    code_active: `Active`,
 | 
					    code_active: `Active`,
 | 
				
			||||||
    code_pigment: `Pigment`,
 | 
					    code_pigment: `Pigment`,
 | 
				
			||||||
 | 
					    code_controller: `Controller cursor`,
 | 
				
			||||||
 | 
					    code_mouseLine: `Line cursor`,
 | 
				
			||||||
 | 
					    code_mouse: `Cursor`,
 | 
				
			||||||
 | 
					    code_itemColorPalette: `|ITEM| Color Palette`,
 | 
				
			||||||
    code_mature: `Mature for combat`,
 | 
					    code_mature: `Mature for combat`,
 | 
				
			||||||
    code_unmature: `Regress genetic aging`,
 | 
					    code_unmature: `Regress genetic aging`,
 | 
				
			||||||
    code_fund: `Fund`,
 | 
					    code_fund: `Fund`,
 | 
				
			||||||
    code_funded: `Funded`,
 | 
					    code_funded: `Funded`,
 | 
				
			||||||
 | 
					    code_replays: `Replays`,
 | 
				
			||||||
 | 
					    code_stalker: `Stalker`,
 | 
				
			||||||
    code_succChange: `Successfully changed.`,
 | 
					    code_succChange: `Successfully changed.`,
 | 
				
			||||||
    code_requiredInvigorationUpgrade: `You must select both an offensive & defensive upgrade.`,
 | 
					    code_requiredInvigorationUpgrade: `You must select both an offensive & defensive upgrade.`,
 | 
				
			||||||
    login_description: `Login using your OpenWF account credentials (same as in-game when connecting to this server).`,
 | 
					    login_description: `Login using your OpenWF account credentials (same as in-game when connecting to this server).`,
 | 
				
			||||||
@ -102,12 +108,16 @@ dict = {
 | 
				
			|||||||
    inventory_kubrowPets: `Beasts`,
 | 
					    inventory_kubrowPets: `Beasts`,
 | 
				
			||||||
    inventory_evolutionProgress: `Incarnon Evolution Progress`,
 | 
					    inventory_evolutionProgress: `Incarnon Evolution Progress`,
 | 
				
			||||||
    inventory_Boosters: `Boosters`,
 | 
					    inventory_Boosters: `Boosters`,
 | 
				
			||||||
 | 
					    inventory_flavourItems: `<abbr title="Animation Sets, Glyphs, Palettes, etc.">Flavour Items</abbr>`,
 | 
				
			||||||
 | 
					    inventory_shipDecorations: `Ship Decorations`,
 | 
				
			||||||
    inventory_bulkAddSuits: `Add Missing Warframes`,
 | 
					    inventory_bulkAddSuits: `Add Missing Warframes`,
 | 
				
			||||||
    inventory_bulkAddWeapons: `Add Missing Weapons`,
 | 
					    inventory_bulkAddWeapons: `Add Missing Weapons`,
 | 
				
			||||||
    inventory_bulkAddSpaceSuits: `Add Missing Archwings`,
 | 
					    inventory_bulkAddSpaceSuits: `Add Missing Archwings`,
 | 
				
			||||||
    inventory_bulkAddSpaceWeapons: `Add Missing Archwing Weapons`,
 | 
					    inventory_bulkAddSpaceWeapons: `Add Missing Archwing Weapons`,
 | 
				
			||||||
    inventory_bulkAddSentinels: `Add Missing Sentinels`,
 | 
					    inventory_bulkAddSentinels: `Add Missing Sentinels`,
 | 
				
			||||||
    inventory_bulkAddSentinelWeapons: `Add Missing Sentinel Weapons`,
 | 
					    inventory_bulkAddSentinelWeapons: `Add Missing Sentinel Weapons`,
 | 
				
			||||||
 | 
					    inventory_bulkAddFlavourItems: `Add Missing Flavour Items`,
 | 
				
			||||||
 | 
					    inventory_bulkAddShipDecorations: `Add Missing Ship Decorations`,
 | 
				
			||||||
    inventory_bulkAddEvolutionProgress: `Add Missing Incarnon Evolution Progress`,
 | 
					    inventory_bulkAddEvolutionProgress: `Add Missing Incarnon Evolution Progress`,
 | 
				
			||||||
    inventory_bulkRankUpSuits: `Max Rank All Warframes`,
 | 
					    inventory_bulkRankUpSuits: `Max Rank All Warframes`,
 | 
				
			||||||
    inventory_bulkRankUpWeapons: `Max Rank All Weapons`,
 | 
					    inventory_bulkRankUpWeapons: `Max Rank All Weapons`,
 | 
				
			||||||
@ -197,8 +207,6 @@ dict = {
 | 
				
			|||||||
    cheats_dontSubtractVoidTraces: `Don't Subtract Void Traces`,
 | 
					    cheats_dontSubtractVoidTraces: `Don't Subtract Void Traces`,
 | 
				
			||||||
    cheats_dontSubtractConsumables: `Don't Subtract Consumables`,
 | 
					    cheats_dontSubtractConsumables: `Don't Subtract Consumables`,
 | 
				
			||||||
    cheats_unlockAllShipFeatures: `Unlock All Ship Features`,
 | 
					    cheats_unlockAllShipFeatures: `Unlock All Ship Features`,
 | 
				
			||||||
    cheats_unlockAllShipDecorations: `Unlock All Ship Decorations`,
 | 
					 | 
				
			||||||
    cheats_unlockAllFlavourItems: `Unlock All <abbr title="Animation Sets, Glyphs, Palettes, etc.">Flavor Items</abbr>`,
 | 
					 | 
				
			||||||
    cheats_unlockAllSkins: `Unlock All Skins`,
 | 
					    cheats_unlockAllSkins: `Unlock All Skins`,
 | 
				
			||||||
    cheats_unlockAllCapturaScenes: `Unlock All Captura Scenes`,
 | 
					    cheats_unlockAllCapturaScenes: `Unlock All Captura Scenes`,
 | 
				
			||||||
    cheats_universalPolarityEverywhere: `Universal Polarity Everywhere`,
 | 
					    cheats_universalPolarityEverywhere: `Universal Polarity Everywhere`,
 | 
				
			||||||
 | 
				
			|||||||
@ -64,10 +64,16 @@ dict = {
 | 
				
			|||||||
    code_completed: `Completada`,
 | 
					    code_completed: `Completada`,
 | 
				
			||||||
    code_active: `Activa`,
 | 
					    code_active: `Activa`,
 | 
				
			||||||
    code_pigment: `Pigmento`,
 | 
					    code_pigment: `Pigmento`,
 | 
				
			||||||
 | 
					    code_controller: `[UNTRANSLATED] Controller cursor`,
 | 
				
			||||||
 | 
					    code_mouseLine: `[UNTRANSLATED] Line cursor`,
 | 
				
			||||||
 | 
					    code_mouse: `[UNTRANSLATED] Cursor`,
 | 
				
			||||||
 | 
					    code_itemColorPalette: `Paleta de colores |ITEM|`,
 | 
				
			||||||
    code_mature: `Listo para el combate`,
 | 
					    code_mature: `Listo para el combate`,
 | 
				
			||||||
    code_unmature: `Regresar el envejecimiento genético`,
 | 
					    code_unmature: `Regresar el envejecimiento genético`,
 | 
				
			||||||
    code_fund: `[UNTRANSLATED] Fund`,
 | 
					    code_fund: `[UNTRANSLATED] Fund`,
 | 
				
			||||||
    code_funded: `[UNTRANSLATED] Funded`,
 | 
					    code_funded: `[UNTRANSLATED] Funded`,
 | 
				
			||||||
 | 
					    code_replays: `[UNTRANSLATED] Replays`,
 | 
				
			||||||
 | 
					    code_stalker: `Stalker`,
 | 
				
			||||||
    code_succChange: `Cambiado correctamente`,
 | 
					    code_succChange: `Cambiado correctamente`,
 | 
				
			||||||
    code_requiredInvigorationUpgrade: `Debes seleccionar una mejora ofensiva y una defensiva.`,
 | 
					    code_requiredInvigorationUpgrade: `Debes seleccionar una mejora ofensiva y una defensiva.`,
 | 
				
			||||||
    login_description: `Inicia sesión con las credenciales de tu cuenta OpenWF (las mismas que usas en el juego al conectarte a este servidor).`,
 | 
					    login_description: `Inicia sesión con las credenciales de tu cuenta OpenWF (las mismas que usas en el juego al conectarte a este servidor).`,
 | 
				
			||||||
@ -103,12 +109,16 @@ dict = {
 | 
				
			|||||||
    inventory_kubrowPets: `Bestias`,
 | 
					    inventory_kubrowPets: `Bestias`,
 | 
				
			||||||
    inventory_evolutionProgress: `Progreso de evolución Incarnon`,
 | 
					    inventory_evolutionProgress: `Progreso de evolución Incarnon`,
 | 
				
			||||||
    inventory_Boosters: `Potenciadores`,
 | 
					    inventory_Boosters: `Potenciadores`,
 | 
				
			||||||
 | 
					    inventory_flavourItems: `<abbr title="Conjuntos de animaciones, glifos, paletas, etc.">Ítems estéticos</abbr>`,
 | 
				
			||||||
 | 
					    inventory_shipDecorations: `Decoraciones de nave`,
 | 
				
			||||||
    inventory_bulkAddSuits: `Agregar Warframes faltantes`,
 | 
					    inventory_bulkAddSuits: `Agregar Warframes faltantes`,
 | 
				
			||||||
    inventory_bulkAddWeapons: `Agregar armas faltantes`,
 | 
					    inventory_bulkAddWeapons: `Agregar armas faltantes`,
 | 
				
			||||||
    inventory_bulkAddSpaceSuits: `Agregar Archwings faltantes`,
 | 
					    inventory_bulkAddSpaceSuits: `Agregar Archwings faltantes`,
 | 
				
			||||||
    inventory_bulkAddSpaceWeapons: `Agregar armas Archwing faltantes`,
 | 
					    inventory_bulkAddSpaceWeapons: `Agregar armas Archwing faltantes`,
 | 
				
			||||||
    inventory_bulkAddSentinels: `Agregar centinelas faltantes`,
 | 
					    inventory_bulkAddSentinels: `Agregar centinelas faltantes`,
 | 
				
			||||||
    inventory_bulkAddSentinelWeapons: `Agregar armas de centinela faltantes`,
 | 
					    inventory_bulkAddSentinelWeapons: `Agregar armas de centinela faltantes`,
 | 
				
			||||||
 | 
					    inventory_bulkAddFlavourItems: `[UNTRANSLATED] Add Missing Flavour Items`,
 | 
				
			||||||
 | 
					    inventory_bulkAddShipDecorations: `[UNTRANSLATED] Add Missing Ship Decorations`,
 | 
				
			||||||
    inventory_bulkAddEvolutionProgress: `Completar el progreso de evolución Incarnon faltante`,
 | 
					    inventory_bulkAddEvolutionProgress: `Completar el progreso de evolución Incarnon faltante`,
 | 
				
			||||||
    inventory_bulkRankUpSuits: `Maximizar rango de todos los Warframes`,
 | 
					    inventory_bulkRankUpSuits: `Maximizar rango de todos los Warframes`,
 | 
				
			||||||
    inventory_bulkRankUpWeapons: `Maximizar rango de todas las armas`,
 | 
					    inventory_bulkRankUpWeapons: `Maximizar rango de todas las armas`,
 | 
				
			||||||
@ -198,8 +208,6 @@ dict = {
 | 
				
			|||||||
    cheats_dontSubtractVoidTraces: `No descontar vestigios del Vacío`,
 | 
					    cheats_dontSubtractVoidTraces: `No descontar vestigios del Vacío`,
 | 
				
			||||||
    cheats_dontSubtractConsumables: `No restar consumibles`,
 | 
					    cheats_dontSubtractConsumables: `No restar consumibles`,
 | 
				
			||||||
    cheats_unlockAllShipFeatures: `Desbloquear todas las funciones de nave`,
 | 
					    cheats_unlockAllShipFeatures: `Desbloquear todas las funciones de nave`,
 | 
				
			||||||
    cheats_unlockAllShipDecorations: `Desbloquear todas las decoraciones de nave`,
 | 
					 | 
				
			||||||
    cheats_unlockAllFlavourItems: `Desbloquear todos los <abbr title="Conjuntos de animaciones, glifos, paletas, etc.">ítems estéticos</abbr>`,
 | 
					 | 
				
			||||||
    cheats_unlockAllSkins: `Desbloquear todas las skins`,
 | 
					    cheats_unlockAllSkins: `Desbloquear todas las skins`,
 | 
				
			||||||
    cheats_unlockAllCapturaScenes: `Desbloquear todas las escenas de Captura`,
 | 
					    cheats_unlockAllCapturaScenes: `Desbloquear todas las escenas de Captura`,
 | 
				
			||||||
    cheats_universalPolarityEverywhere: `Polaridad universal en todas partes`,
 | 
					    cheats_universalPolarityEverywhere: `Polaridad universal en todas partes`,
 | 
				
			||||||
 | 
				
			|||||||
@ -64,10 +64,16 @@ dict = {
 | 
				
			|||||||
    code_completed: `Complétée`,
 | 
					    code_completed: `Complétée`,
 | 
				
			||||||
    code_active: `Active`,
 | 
					    code_active: `Active`,
 | 
				
			||||||
    code_pigment: `Pigment`,
 | 
					    code_pigment: `Pigment`,
 | 
				
			||||||
 | 
					    code_controller: `[UNTRANSLATED] Controller cursor`,
 | 
				
			||||||
 | 
					    code_mouseLine: `[UNTRANSLATED] Line cursor`,
 | 
				
			||||||
 | 
					    code_mouse: `[UNTRANSLATED] Cursor`,
 | 
				
			||||||
 | 
					    code_itemColorPalette: `Palette de couleurs |ITEM|`,
 | 
				
			||||||
    code_mature: `Maturer pour le combat`,
 | 
					    code_mature: `Maturer pour le combat`,
 | 
				
			||||||
    code_unmature: `Régrésser l'âge génétique`,
 | 
					    code_unmature: `Régrésser l'âge génétique`,
 | 
				
			||||||
    code_fund: `Financer`,
 | 
					    code_fund: `Financer`,
 | 
				
			||||||
    code_funded: `Complété`,
 | 
					    code_funded: `Complété`,
 | 
				
			||||||
 | 
					    code_replays: `[UNTRANSLATED] Replays`,
 | 
				
			||||||
 | 
					    code_stalker: `Stalker`,
 | 
				
			||||||
    code_succChange: `Changement effectué.`,
 | 
					    code_succChange: `Changement effectué.`,
 | 
				
			||||||
    code_requiredInvigorationUpgrade: `Augmentation offensive et défensive requises.`,
 | 
					    code_requiredInvigorationUpgrade: `Augmentation offensive et défensive requises.`,
 | 
				
			||||||
    login_description: `Connexion avec les informations de connexion OpenWF.`,
 | 
					    login_description: `Connexion avec les informations de connexion OpenWF.`,
 | 
				
			||||||
@ -103,12 +109,16 @@ dict = {
 | 
				
			|||||||
    inventory_kubrowPets: `Bêtes`,
 | 
					    inventory_kubrowPets: `Bêtes`,
 | 
				
			||||||
    inventory_evolutionProgress: `Progrès de l'évolution Incarnon`,
 | 
					    inventory_evolutionProgress: `Progrès de l'évolution Incarnon`,
 | 
				
			||||||
    inventory_Boosters: `Boosters`,
 | 
					    inventory_Boosters: `Boosters`,
 | 
				
			||||||
 | 
					    inventory_flavourItems: `[UNTRANSLATED] <abbr title="Animation Sets, Glyphs, Palettes, etc.">Flavour Items</abbr>`,
 | 
				
			||||||
 | 
					    inventory_shipDecorations: `Décorations du vaisseau`,
 | 
				
			||||||
    inventory_bulkAddSuits: `Ajouter les Warframes manquantes`,
 | 
					    inventory_bulkAddSuits: `Ajouter les Warframes manquantes`,
 | 
				
			||||||
    inventory_bulkAddWeapons: `Ajouter les armes manquantes`,
 | 
					    inventory_bulkAddWeapons: `Ajouter les armes manquantes`,
 | 
				
			||||||
    inventory_bulkAddSpaceSuits: `Ajouter les Archwings manquants`,
 | 
					    inventory_bulkAddSpaceSuits: `Ajouter les Archwings manquants`,
 | 
				
			||||||
    inventory_bulkAddSpaceWeapons: `Ajouter les armes d'Archwing manquantes`,
 | 
					    inventory_bulkAddSpaceWeapons: `Ajouter les armes d'Archwing manquantes`,
 | 
				
			||||||
    inventory_bulkAddSentinels: `Ajouter les Sentinelles manquantes`,
 | 
					    inventory_bulkAddSentinels: `Ajouter les Sentinelles manquantes`,
 | 
				
			||||||
    inventory_bulkAddSentinelWeapons: `Ajouter les armes de Sentinelles manquantes`,
 | 
					    inventory_bulkAddSentinelWeapons: `Ajouter les armes de Sentinelles manquantes`,
 | 
				
			||||||
 | 
					    inventory_bulkAddFlavourItems: `[UNTRANSLATED] Add Missing Flavour Items`,
 | 
				
			||||||
 | 
					    inventory_bulkAddShipDecorations: `[UNTRANSLATED] Add Missing Ship Decorations`,
 | 
				
			||||||
    inventory_bulkAddEvolutionProgress: `Ajouter les évolutions Incarnon manquantes`,
 | 
					    inventory_bulkAddEvolutionProgress: `Ajouter les évolutions Incarnon manquantes`,
 | 
				
			||||||
    inventory_bulkRankUpSuits: `Toutes les Warframes au rang max`,
 | 
					    inventory_bulkRankUpSuits: `Toutes les Warframes au rang max`,
 | 
				
			||||||
    inventory_bulkRankUpWeapons: `Toutes les armes au rang max`,
 | 
					    inventory_bulkRankUpWeapons: `Toutes les armes au rang max`,
 | 
				
			||||||
@ -198,8 +208,6 @@ dict = {
 | 
				
			|||||||
    cheats_dontSubtractVoidTraces: `Ne pas consommer de Void Traces`,
 | 
					    cheats_dontSubtractVoidTraces: `Ne pas consommer de Void Traces`,
 | 
				
			||||||
    cheats_dontSubtractConsumables: `Ne pas retirer de consommables`,
 | 
					    cheats_dontSubtractConsumables: `Ne pas retirer de consommables`,
 | 
				
			||||||
    cheats_unlockAllShipFeatures: `Débloquer tous les segments du vaisseau`,
 | 
					    cheats_unlockAllShipFeatures: `Débloquer tous les segments du vaisseau`,
 | 
				
			||||||
    cheats_unlockAllShipDecorations: `Débloquer toutes les décorations du vaisseau`,
 | 
					 | 
				
			||||||
    cheats_unlockAllFlavourItems: `Débloquer tous les <abbr title="Animations, Glyphes, Palettes, etc.">Flavor Items</abbr>`,
 | 
					 | 
				
			||||||
    cheats_unlockAllSkins: `Débloquer tous les skins`,
 | 
					    cheats_unlockAllSkins: `Débloquer tous les skins`,
 | 
				
			||||||
    cheats_unlockAllCapturaScenes: `Débloquer toutes les scènes captura`,
 | 
					    cheats_unlockAllCapturaScenes: `Débloquer toutes les scènes captura`,
 | 
				
			||||||
    cheats_universalPolarityEverywhere: `Polarités universelles partout`,
 | 
					    cheats_universalPolarityEverywhere: `Polarités universelles partout`,
 | 
				
			||||||
 | 
				
			|||||||
@ -64,10 +64,16 @@ dict = {
 | 
				
			|||||||
    code_completed: `Завершено`,
 | 
					    code_completed: `Завершено`,
 | 
				
			||||||
    code_active: `Активный`,
 | 
					    code_active: `Активный`,
 | 
				
			||||||
    code_pigment: `Пигмент`,
 | 
					    code_pigment: `Пигмент`,
 | 
				
			||||||
 | 
					    code_controller: `Курсор контроллера`,
 | 
				
			||||||
 | 
					    code_mouseLine: `Линейный курсор`,
 | 
				
			||||||
 | 
					    code_mouse: `Курсор`,
 | 
				
			||||||
 | 
					    code_itemColorPalette: `Цветовая палитра: |ITEM|`,
 | 
				
			||||||
    code_mature: `Подготовить к сражениям`,
 | 
					    code_mature: `Подготовить к сражениям`,
 | 
				
			||||||
    code_unmature: `Регрессия генетического старения`,
 | 
					    code_unmature: `Регрессия генетического старения`,
 | 
				
			||||||
    code_fund: `Профинансировать`,
 | 
					    code_fund: `Профинансировать`,
 | 
				
			||||||
    code_funded: `Профинансировано`,
 | 
					    code_funded: `Профинансировано`,
 | 
				
			||||||
 | 
					    code_replays: `Повторов`,
 | 
				
			||||||
 | 
					    code_stalker: `Сталкер`,
 | 
				
			||||||
    code_succChange: `Успешно изменено.`,
 | 
					    code_succChange: `Успешно изменено.`,
 | 
				
			||||||
    code_requiredInvigorationUpgrade: `Вы должны выбрать как атакующее, так и вспомогательное улучшение.`,
 | 
					    code_requiredInvigorationUpgrade: `Вы должны выбрать как атакующее, так и вспомогательное улучшение.`,
 | 
				
			||||||
    login_description: `Войдите, используя учетные данные OpenWF (те же, что и в игре при подключении к этому серверу).`,
 | 
					    login_description: `Войдите, используя учетные данные OpenWF (те же, что и в игре при подключении к этому серверу).`,
 | 
				
			||||||
@ -103,12 +109,16 @@ dict = {
 | 
				
			|||||||
    inventory_kubrowPets: `Звери`,
 | 
					    inventory_kubrowPets: `Звери`,
 | 
				
			||||||
    inventory_evolutionProgress: `Прогресс эволюции Инкарнонов`,
 | 
					    inventory_evolutionProgress: `Прогресс эволюции Инкарнонов`,
 | 
				
			||||||
    inventory_Boosters: `Бустеры`,
 | 
					    inventory_Boosters: `Бустеры`,
 | 
				
			||||||
 | 
					    inventory_flavourItems: `<abbr title="Наборы анимаций, глифы, палитры и т. д.">Уникальные предметы</abbr>`,
 | 
				
			||||||
 | 
					    inventory_shipDecorations: `Украшения корабля`,
 | 
				
			||||||
    inventory_bulkAddSuits: `Добавить отсутствующие Варфреймы`,
 | 
					    inventory_bulkAddSuits: `Добавить отсутствующие Варфреймы`,
 | 
				
			||||||
    inventory_bulkAddWeapons: `Добавить отсутствующее оружие`,
 | 
					    inventory_bulkAddWeapons: `Добавить отсутствующее оружие`,
 | 
				
			||||||
    inventory_bulkAddSpaceSuits: `Добавить отсутствующие Арчвинги`,
 | 
					    inventory_bulkAddSpaceSuits: `Добавить отсутствующие Арчвинги`,
 | 
				
			||||||
    inventory_bulkAddSpaceWeapons: `Добавить отсутствующее оружие Арчвингов`,
 | 
					    inventory_bulkAddSpaceWeapons: `Добавить отсутствующее оружие Арчвингов`,
 | 
				
			||||||
    inventory_bulkAddSentinels: `Добавить отсутствующих Стражей`,
 | 
					    inventory_bulkAddSentinels: `Добавить отсутствующих Стражей`,
 | 
				
			||||||
    inventory_bulkAddSentinelWeapons: `Добавить отсутствующее оружие Стражей`,
 | 
					    inventory_bulkAddSentinelWeapons: `Добавить отсутствующее оружие Стражей`,
 | 
				
			||||||
 | 
					    inventory_bulkAddFlavourItems: `Добавить отсутствующие Уникальные предметы`,
 | 
				
			||||||
 | 
					    inventory_bulkAddShipDecorations: `Добавить отсутствующие украшения корабля`,
 | 
				
			||||||
    inventory_bulkAddEvolutionProgress: `Добавить отсутствующий прогресс эволюции Инкарнонов`,
 | 
					    inventory_bulkAddEvolutionProgress: `Добавить отсутствующий прогресс эволюции Инкарнонов`,
 | 
				
			||||||
    inventory_bulkRankUpSuits: `Макс. ранг всех Варфреймов`,
 | 
					    inventory_bulkRankUpSuits: `Макс. ранг всех Варфреймов`,
 | 
				
			||||||
    inventory_bulkRankUpWeapons: `Макс. ранг всего оружия`,
 | 
					    inventory_bulkRankUpWeapons: `Макс. ранг всего оружия`,
 | 
				
			||||||
@ -198,8 +208,6 @@ dict = {
 | 
				
			|||||||
    cheats_dontSubtractVoidTraces: `Не вычитать количество Отголосков Бездны`,
 | 
					    cheats_dontSubtractVoidTraces: `Не вычитать количество Отголосков Бездны`,
 | 
				
			||||||
    cheats_dontSubtractConsumables: `Не вычитать количество расходников`,
 | 
					    cheats_dontSubtractConsumables: `Не вычитать количество расходников`,
 | 
				
			||||||
    cheats_unlockAllShipFeatures: `Разблокировать все функции корабля`,
 | 
					    cheats_unlockAllShipFeatures: `Разблокировать все функции корабля`,
 | 
				
			||||||
    cheats_unlockAllShipDecorations: `Разблокировать все украшения корабля`,
 | 
					 | 
				
			||||||
    cheats_unlockAllFlavourItems: `Разблокировать все <abbr title="Наборы анимаций, глифы, палитры и т. д.">уникальные предметы</abbr>`,
 | 
					 | 
				
			||||||
    cheats_unlockAllSkins: `Разблокировать все скины`,
 | 
					    cheats_unlockAllSkins: `Разблокировать все скины`,
 | 
				
			||||||
    cheats_unlockAllCapturaScenes: `Разблокировать все сцены Каптуры`,
 | 
					    cheats_unlockAllCapturaScenes: `Разблокировать все сцены Каптуры`,
 | 
				
			||||||
    cheats_universalPolarityEverywhere: `Универсальная полярность везде`,
 | 
					    cheats_universalPolarityEverywhere: `Универсальная полярность везде`,
 | 
				
			||||||
 | 
				
			|||||||
@ -64,10 +64,16 @@ dict = {
 | 
				
			|||||||
    code_completed: `Завершено`,
 | 
					    code_completed: `Завершено`,
 | 
				
			||||||
    code_active: `Активний`,
 | 
					    code_active: `Активний`,
 | 
				
			||||||
    code_pigment: `Барвник`,
 | 
					    code_pigment: `Барвник`,
 | 
				
			||||||
 | 
					    code_controller: `[UNTRANSLATED] Controller cursor`,
 | 
				
			||||||
 | 
					    code_mouseLine: `[UNTRANSLATED] Line cursor`,
 | 
				
			||||||
 | 
					    code_mouse: `[UNTRANSLATED] Cursor`,
 | 
				
			||||||
 | 
					    code_itemColorPalette: `Палітра кольорів «|ITEM|»`,
 | 
				
			||||||
    code_mature: `Виростити для бою`,
 | 
					    code_mature: `Виростити для бою`,
 | 
				
			||||||
    code_unmature: `Обернути старіння`,
 | 
					    code_unmature: `Обернути старіння`,
 | 
				
			||||||
    code_fund: `[UNTRANSLATED] Fund`,
 | 
					    code_fund: `[UNTRANSLATED] Fund`,
 | 
				
			||||||
    code_funded: `[UNTRANSLATED] Funded`,
 | 
					    code_funded: `[UNTRANSLATED] Funded`,
 | 
				
			||||||
 | 
					    code_replays: `[UNTRANSLATED] Replays`,
 | 
				
			||||||
 | 
					    code_stalker: `Сталкер`,
 | 
				
			||||||
    code_succChange: `Успішно змінено.`,
 | 
					    code_succChange: `Успішно змінено.`,
 | 
				
			||||||
    code_requiredInvigorationUpgrade: `Ви повинні вибрати як атакуюче, так і допоміжне вдосконалення.`,
 | 
					    code_requiredInvigorationUpgrade: `Ви повинні вибрати як атакуюче, так і допоміжне вдосконалення.`,
 | 
				
			||||||
    login_description: `Увійдіть, використовуючи облікові дані OpenWF (ті ж, що й у грі при підключенні до цього серверу).`,
 | 
					    login_description: `Увійдіть, використовуючи облікові дані OpenWF (ті ж, що й у грі при підключенні до цього серверу).`,
 | 
				
			||||||
@ -103,12 +109,16 @@ dict = {
 | 
				
			|||||||
    inventory_kubrowPets: `Тварини`,
 | 
					    inventory_kubrowPets: `Тварини`,
 | 
				
			||||||
    inventory_evolutionProgress: `Прогрес еволюції Інкарнонів`,
 | 
					    inventory_evolutionProgress: `Прогрес еволюції Інкарнонів`,
 | 
				
			||||||
    inventory_Boosters: `Посилення`,
 | 
					    inventory_Boosters: `Посилення`,
 | 
				
			||||||
 | 
					    inventory_flavourItems: `<abbr title="Набори анімацій, гліфи, палітри і т. д.">Унікальні предмети</abbr>`,
 | 
				
			||||||
 | 
					    inventory_shipDecorations: `Прикраси судна`,
 | 
				
			||||||
    inventory_bulkAddSuits: `Додати відсутні Ворфрейми`,
 | 
					    inventory_bulkAddSuits: `Додати відсутні Ворфрейми`,
 | 
				
			||||||
    inventory_bulkAddWeapons: `Додати відсутню зброю`,
 | 
					    inventory_bulkAddWeapons: `Додати відсутню зброю`,
 | 
				
			||||||
    inventory_bulkAddSpaceSuits: `Додати відсутні Арквінґи`,
 | 
					    inventory_bulkAddSpaceSuits: `Додати відсутні Арквінґи`,
 | 
				
			||||||
    inventory_bulkAddSpaceWeapons: `Додати відсутню зброю Арквінґів`,
 | 
					    inventory_bulkAddSpaceWeapons: `Додати відсутню зброю Арквінґів`,
 | 
				
			||||||
    inventory_bulkAddSentinels: `Додати відсутніх Вартових`,
 | 
					    inventory_bulkAddSentinels: `Додати відсутніх Вартових`,
 | 
				
			||||||
    inventory_bulkAddSentinelWeapons: `Додати відсутню зброю Вартових`,
 | 
					    inventory_bulkAddSentinelWeapons: `Додати відсутню зброю Вартових`,
 | 
				
			||||||
 | 
					    inventory_bulkAddFlavourItems: `[UNTRANSLATED] Add Missing Flavour Items`,
 | 
				
			||||||
 | 
					    inventory_bulkAddShipDecorations: `[UNTRANSLATED] Add Missing Ship Decorations`,
 | 
				
			||||||
    inventory_bulkAddEvolutionProgress: `Додати відсутній прогрес еволюції Інкарнонів`,
 | 
					    inventory_bulkAddEvolutionProgress: `Додати відсутній прогрес еволюції Інкарнонів`,
 | 
				
			||||||
    inventory_bulkRankUpSuits: `Макс. рівень всіх Ворфреймів`,
 | 
					    inventory_bulkRankUpSuits: `Макс. рівень всіх Ворфреймів`,
 | 
				
			||||||
    inventory_bulkRankUpWeapons: `Макс. рівень всієї зброї`,
 | 
					    inventory_bulkRankUpWeapons: `Макс. рівень всієї зброї`,
 | 
				
			||||||
@ -198,8 +208,6 @@ dict = {
 | 
				
			|||||||
    cheats_dontSubtractVoidTraces: `Не вираховувати кількість Відлуння`,
 | 
					    cheats_dontSubtractVoidTraces: `Не вираховувати кількість Відлуння`,
 | 
				
			||||||
    cheats_dontSubtractConsumables: `Не вираховувати кількість витратних матеріалів`,
 | 
					    cheats_dontSubtractConsumables: `Не вираховувати кількість витратних матеріалів`,
 | 
				
			||||||
    cheats_unlockAllShipFeatures: `Розблокувати всі функції судна`,
 | 
					    cheats_unlockAllShipFeatures: `Розблокувати всі функції судна`,
 | 
				
			||||||
    cheats_unlockAllShipDecorations: `Розблокувати всі прикраси судна`,
 | 
					 | 
				
			||||||
    cheats_unlockAllFlavourItems: `Розблокувати всі <abbr title="Набори анімацій, гліфи, палітри і т. д.">унікальні предмети</abbr>`,
 | 
					 | 
				
			||||||
    cheats_unlockAllSkins: `Розблокувати всі скіни`,
 | 
					    cheats_unlockAllSkins: `Розблокувати всі скіни`,
 | 
				
			||||||
    cheats_unlockAllCapturaScenes: `Розблокувати всі сцени Світлописця`,
 | 
					    cheats_unlockAllCapturaScenes: `Розблокувати всі сцени Світлописця`,
 | 
				
			||||||
    cheats_universalPolarityEverywhere: `Будь-яка полярність скрізь`,
 | 
					    cheats_universalPolarityEverywhere: `Будь-яка полярність скрізь`,
 | 
				
			||||||
 | 
				
			|||||||
@ -64,10 +64,16 @@ dict = {
 | 
				
			|||||||
    code_completed: `已完成`,
 | 
					    code_completed: `已完成`,
 | 
				
			||||||
    code_active: `正在执行`,
 | 
					    code_active: `正在执行`,
 | 
				
			||||||
    code_pigment: `颜料`,
 | 
					    code_pigment: `颜料`,
 | 
				
			||||||
 | 
					    code_controller: `[UNTRANSLATED] Controller cursor`,
 | 
				
			||||||
 | 
					    code_mouseLine: `[UNTRANSLATED] Line cursor`,
 | 
				
			||||||
 | 
					    code_mouse: `[UNTRANSLATED] Cursor`,
 | 
				
			||||||
 | 
					    code_itemColorPalette: `|ITEM| 调色盘`,
 | 
				
			||||||
    code_mature: `成长并战备`,
 | 
					    code_mature: `成长并战备`,
 | 
				
			||||||
    code_unmature: `逆转衰老基因`,
 | 
					    code_unmature: `逆转衰老基因`,
 | 
				
			||||||
    code_fund: `[UNTRANSLATED] Fund`,
 | 
					    code_fund: `[UNTRANSLATED] Fund`,
 | 
				
			||||||
    code_funded: `[UNTRANSLATED] Funded`,
 | 
					    code_funded: `[UNTRANSLATED] Funded`,
 | 
				
			||||||
 | 
					    code_replays: `[UNTRANSLATED] Replays`,
 | 
				
			||||||
 | 
					    code_stalker: `追猎者`,
 | 
				
			||||||
    code_succChange: `更改成功`,
 | 
					    code_succChange: `更改成功`,
 | 
				
			||||||
    code_requiredInvigorationUpgrade: `您必须同时选择一个进攻型和一个功能型活化属性.`,
 | 
					    code_requiredInvigorationUpgrade: `您必须同时选择一个进攻型和一个功能型活化属性.`,
 | 
				
			||||||
    login_description: `使用您的 OpenWF 账户凭证登录(与游戏内连接本服务器时使用的昵称相同)`,
 | 
					    login_description: `使用您的 OpenWF 账户凭证登录(与游戏内连接本服务器时使用的昵称相同)`,
 | 
				
			||||||
@ -103,12 +109,16 @@ dict = {
 | 
				
			|||||||
    inventory_kubrowPets: `动物同伴`,
 | 
					    inventory_kubrowPets: `动物同伴`,
 | 
				
			||||||
    inventory_evolutionProgress: `灵化之源进度`,
 | 
					    inventory_evolutionProgress: `灵化之源进度`,
 | 
				
			||||||
    inventory_Boosters: `加成器`,
 | 
					    inventory_Boosters: `加成器`,
 | 
				
			||||||
 | 
					    inventory_flavourItems: `<abbr title="动作表情、浮印、调色板等">装饰物品</abbr>`,
 | 
				
			||||||
 | 
					    inventory_shipDecorations: `飞船装饰`,
 | 
				
			||||||
    inventory_bulkAddSuits: `添加缺失战甲`,
 | 
					    inventory_bulkAddSuits: `添加缺失战甲`,
 | 
				
			||||||
    inventory_bulkAddWeapons: `添加缺失武器`,
 | 
					    inventory_bulkAddWeapons: `添加缺失武器`,
 | 
				
			||||||
    inventory_bulkAddSpaceSuits: `添加缺失载具`,
 | 
					    inventory_bulkAddSpaceSuits: `添加缺失载具`,
 | 
				
			||||||
    inventory_bulkAddSpaceWeapons: `添加缺失载具武器`,
 | 
					    inventory_bulkAddSpaceWeapons: `添加缺失载具武器`,
 | 
				
			||||||
    inventory_bulkAddSentinels: `添加缺失守护`,
 | 
					    inventory_bulkAddSentinels: `添加缺失守护`,
 | 
				
			||||||
    inventory_bulkAddSentinelWeapons: `添加缺失守护武器`,
 | 
					    inventory_bulkAddSentinelWeapons: `添加缺失守护武器`,
 | 
				
			||||||
 | 
					    inventory_bulkAddFlavourItems: `[UNTRANSLATED] Add Missing Flavour Items`,
 | 
				
			||||||
 | 
					    inventory_bulkAddShipDecorations: `[UNTRANSLATED] Add Missing Ship Decorations`,
 | 
				
			||||||
    inventory_bulkAddEvolutionProgress: `添加缺失的灵化之源进度`,
 | 
					    inventory_bulkAddEvolutionProgress: `添加缺失的灵化之源进度`,
 | 
				
			||||||
    inventory_bulkRankUpSuits: `所有战甲升满级`,
 | 
					    inventory_bulkRankUpSuits: `所有战甲升满级`,
 | 
				
			||||||
    inventory_bulkRankUpWeapons: `所有武器升满级`,
 | 
					    inventory_bulkRankUpWeapons: `所有武器升满级`,
 | 
				
			||||||
@ -198,8 +208,6 @@ dict = {
 | 
				
			|||||||
    cheats_dontSubtractVoidTraces: `虚空光体无消耗`,
 | 
					    cheats_dontSubtractVoidTraces: `虚空光体无消耗`,
 | 
				
			||||||
    cheats_dontSubtractConsumables: `消耗物品使用时无损耗`,
 | 
					    cheats_dontSubtractConsumables: `消耗物品使用时无损耗`,
 | 
				
			||||||
    cheats_unlockAllShipFeatures: `解锁所有飞船功能`,
 | 
					    cheats_unlockAllShipFeatures: `解锁所有飞船功能`,
 | 
				
			||||||
    cheats_unlockAllShipDecorations: `解锁所有飞船装饰`,
 | 
					 | 
				
			||||||
    cheats_unlockAllFlavourItems: `解锁所有<abbr title="动作表情、浮印、调色板等">装饰物品</abbr>`,
 | 
					 | 
				
			||||||
    cheats_unlockAllSkins: `解锁所有外观`,
 | 
					    cheats_unlockAllSkins: `解锁所有外观`,
 | 
				
			||||||
    cheats_unlockAllCapturaScenes: `解锁所有Captura场景`,
 | 
					    cheats_unlockAllCapturaScenes: `解锁所有Captura场景`,
 | 
				
			||||||
    cheats_universalPolarityEverywhere: `全局万用极性`,
 | 
					    cheats_universalPolarityEverywhere: `全局万用极性`,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user