Also apply infiniteResources on inventoryController response #144

Merged
Sainan merged 1 commits from inventory-infiniteResources into main 2024-05-02 14:37:51 -07:00
Showing only changes of commit 534e7f7fac - Show all commits

View File

@ -34,6 +34,13 @@ const inventoryController: RequestHandler = async (request: Request, response: R
const inventoryResponse = toInventoryResponse(inventoryJSON);
if (config.infiniteResources) {
inventoryResponse.RegularCredits = 999999999;
inventoryResponse.TradesRemaining = 999999999;
inventoryResponse.PremiumCreditsFree = 999999999;
inventoryResponse.PremiumCredits = 999999999;
}
if (config.unlockAllMissions) inventoryResponse.Missions = allMissions;
if (config.unlockAllQuests) inventoryResponse.QuestKeys = allQuestKeys;