feat: add completeAllQuests to config (#268)

This commit is contained in:
Sainan 2024-06-02 17:36:04 +02:00 committed by GitHub
parent 2a1a4e77b5
commit defaf61b79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 51 additions and 37 deletions

View File

@ -14,6 +14,7 @@
"unlockAllScans": true, "unlockAllScans": true,
"unlockAllMissions": true, "unlockAllMissions": true,
"unlockAllQuests": true, "unlockAllQuests": true,
"completeAllQuests": false,
"infiniteResources": true, "infiniteResources": true,
"unlockallShipFeatures": true, "unlockallShipFeatures": true,
"unlockAllShipDecorations": true, "unlockAllShipDecorations": true,

View File

@ -50,7 +50,19 @@ const inventoryController: RequestHandler = async (request: Request, response: R
inventoryResponse.NodeIntrosCompleted.push("TeshinHardModeUnlocked"); inventoryResponse.NodeIntrosCompleted.push("TeshinHardModeUnlocked");
} }
if (config.unlockAllQuests) inventoryResponse.QuestKeys = allQuestKeys; if (config.unlockAllQuests) {
for (const questKey of allQuestKeys) {
if (!inventoryResponse.QuestKeys.find(quest => quest.ItemType == questKey)) {
inventoryResponse.QuestKeys.push({ ItemType: questKey });
}
}
}
if (config.completeAllQuests) {
for (const quest of inventoryResponse.QuestKeys) {
quest.Completed = true;
}
}
if (config.unlockAllShipDecorations) inventoryResponse.ShipDecorations = allShipDecorations; if (config.unlockAllShipDecorations) inventoryResponse.ShipDecorations = allShipDecorations;
if (config.unlockAllFlavourItems) inventoryResponse.FlavourItems = allFlavourItems satisfies IFlavourItem[]; if (config.unlockAllFlavourItems) inventoryResponse.FlavourItems = allFlavourItems satisfies IFlavourItem[];

View File

@ -12,6 +12,7 @@ interface IConfig {
unlockAllScans?: boolean; unlockAllScans?: boolean;
unlockAllMissions?: boolean; unlockAllMissions?: boolean;
unlockAllQuests?: boolean; unlockAllQuests?: boolean;
completeAllQuests?: boolean;
infiniteResources?: boolean; infiniteResources?: boolean;
unlockallShipFeatures?: boolean; unlockallShipFeatures?: boolean;
unlockAllShipDecorations?: boolean; unlockAllShipDecorations?: boolean;

View File

@ -1,38 +1,38 @@
[ [
{ "ItemType": "/Lotus/Types/Keys/VorsPrize/VorsPrizeQuestKeyChain" }, "/Lotus/Types/Keys/VorsPrize/VorsPrizeQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/GlassQuest/GlassQuestKeyChain" }, "/Lotus/Types/Keys/GlassQuest/GlassQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/SolarisQuest/SolarisQuestKeyChain" }, "/Lotus/Types/Keys/SolarisQuest/SolarisQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/InfestedIntroQuest/InfestedIntroQuestKeyChain" }, "/Lotus/Types/Keys/InfestedIntroQuest/InfestedIntroQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/KubrowQuest/KubrowQuestKeyChain" }, "/Lotus/Types/Keys/KubrowQuest/KubrowQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/ArchwingQuest/ArchwingQuestKeyChain" }, "/Lotus/Types/Keys/ArchwingQuest/ArchwingQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/GetClemQuest/GetClemQuestKeyChain" }, "/Lotus/Types/Keys/GetClemQuest/GetClemQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/SpyQuestKeyChain/SpyQuestKeyChain" }, "/Lotus/Types/Keys/SpyQuestKeyChain/SpyQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/DragonQuest/DragonQuestKeyChain" }, "/Lotus/Types/Keys/DragonQuest/DragonQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/LimboQuest/LimboQuestKeyChain" }, "/Lotus/Types/Keys/LimboQuest/LimboQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/SentientQuest/SentientQuestKeyChain" }, "/Lotus/Types/Keys/SentientQuest/SentientQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/OrokinMoonQuest/OrokinMoonQuestKeyChain" }, "/Lotus/Types/Keys/OrokinMoonQuest/OrokinMoonQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/MirageQuest/MirageQuestKeyChain" }, "/Lotus/Types/Keys/MirageQuest/MirageQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/WarWithinQuest/WarWithinQuestKeyChain" }, "/Lotus/Types/Keys/WarWithinQuest/WarWithinQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/InfestedAladVQuest/InfestedAladVQuestKeyChain" }, "/Lotus/Types/Keys/InfestedAladVQuest/InfestedAladVQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/GolemQuest/GolemQuestKeyChainItem" }, "/Lotus/Types/Keys/GolemQuest/GolemQuestKeyChainItem",
{ "ItemType": "/Lotus/Types/Keys/BardQuest/BardQuestKeyChain" }, "/Lotus/Types/Keys/BardQuest/BardQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/FairyQuest/FairyQuestKeyChain" }, "/Lotus/Types/Keys/FairyQuest/FairyQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/IndexQuest/IndexQuestKeyChain" }, "/Lotus/Types/Keys/IndexQuest/IndexQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/PriestFrameQuest/PriestQuestKeyChain" }, "/Lotus/Types/Keys/PriestFrameQuest/PriestQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/ApostasyQuest/ApostasyKeyChain" }, "/Lotus/Types/Keys/ApostasyQuest/ApostasyKeyChain",
{ "ItemType": "/Lotus/Types/Keys/SacrificeQuest/SacrificeQuestKeyChain" }, "/Lotus/Types/Keys/SacrificeQuest/SacrificeQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/ChimeraQuest/ChimeraKeyChain" }, "/Lotus/Types/Keys/ChimeraQuest/ChimeraKeyChain",
{ "ItemType": "/Lotus/Types/Keys/MummyQuest/MummyQuestKeyChain" }, "/Lotus/Types/Keys/MummyQuest/MummyQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/RailJackBuildQuest/RailjackBuildQuestKeyChain" }, "/Lotus/Types/Keys/RailJackBuildQuest/RailjackBuildQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/NewWarIntroQuest/NewWarIntroKeyChain" }, "/Lotus/Types/Keys/NewWarIntroQuest/NewWarIntroKeyChain",
{ "ItemType": "/Lotus/Types/Keys/ProteaQuest/ProteaQuestKeyChain" }, "/Lotus/Types/Keys/ProteaQuest/ProteaQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/RevenantQuest/RevenantQuestKeyChain" }, "/Lotus/Types/Keys/RevenantQuest/RevenantQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/InfestedMicroplanetQuest/InfestedMicroplanetQuestKeyChain" }, "/Lotus/Types/Keys/InfestedMicroplanetQuest/InfestedMicroplanetQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/WraithQuest/WraithQuestKeyChain" }, "/Lotus/Types/Keys/WraithQuest/WraithQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/YareliQuest/YareliQuestKeyChain" }, "/Lotus/Types/Keys/YareliQuest/YareliQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/NewWarQuest/NewWarQuestKeyChain" }, "/Lotus/Types/Keys/NewWarQuest/NewWarQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/ZarimanQuest/ZarimanQuestKeyChain" }, "/Lotus/Types/Keys/ZarimanQuest/ZarimanQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/KahlQuest/KahlQuestKeyChain" }, "/Lotus/Types/Keys/KahlQuest/KahlQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/DuviriQuest/DuviriQuestKeyChain" }, "/Lotus/Types/Keys/DuviriQuest/DuviriQuestKeyChain",
{ "ItemType": "/Lotus/Types/Keys/EntratiLab/EntratiQuestKeyChain" } "/Lotus/Types/Keys/EntratiLab/EntratiQuestKeyChain"
] ]