feat: infiniteEndo & infiniteRegalAya #741
@ -17,6 +17,8 @@
 | 
			
		||||
  "completeAllQuests": true,
 | 
			
		||||
  "infiniteCredits": true,
 | 
			
		||||
  "infinitePlatinum": true,
 | 
			
		||||
  "infiniteEndo": true,
 | 
			
		||||
  "infiniteRegalAya": true,
 | 
			
		||||
  "unlockAllShipFeatures": true,
 | 
			
		||||
  "unlockAllShipDecorations": true,
 | 
			
		||||
  "unlockAllFlavourItems": true,
 | 
			
		||||
 | 
			
		||||
@ -74,6 +74,12 @@ export const inventoryController: RequestHandler = async (request, response) =>
 | 
			
		||||
        inventoryResponse.PremiumCreditsFree = 999999999;
 | 
			
		||||
        inventoryResponse.PremiumCredits = 999999999;
 | 
			
		||||
    }
 | 
			
		||||
    if (config.infiniteEndo) {
 | 
			
		||||
        inventoryResponse.FusionPoints = 999999999;
 | 
			
		||||
    }
 | 
			
		||||
    if (config.infiniteRegalAya) {
 | 
			
		||||
        inventoryResponse.PrimeTokens = 999999999;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (config.skipAllDialogue) {
 | 
			
		||||
        inventoryResponse.TauntHistory = [
 | 
			
		||||
 | 
			
		||||
@ -43,6 +43,8 @@ interface IConfig {
 | 
			
		||||
    completeAllQuests?: boolean;
 | 
			
		||||
    infiniteCredits?: boolean;
 | 
			
		||||
    infinitePlatinum?: boolean;
 | 
			
		||||
    infiniteEndo?: boolean;
 | 
			
		||||
    infiniteRegalAya?: boolean;
 | 
			
		||||
    unlockAllShipFeatures?: boolean;
 | 
			
		||||
    unlockAllShipDecorations?: boolean;
 | 
			
		||||
    unlockAllFlavourItems?: boolean;
 | 
			
		||||
 | 
			
		||||
@ -908,8 +908,12 @@ export const upgradeMod = async (artifactsData: IArtifactsRequest, accountId: st
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!config.infiniteCredits) {
 | 
			
		||||
            inventory.RegularCredits -= Cost;
 | 
			
		||||
        }
 | 
			
		||||
        if (!config.infiniteEndo) {
 | 
			
		||||
            inventory.FusionPoints -= FusionPointCost;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        const changedInventory = await inventory.save();
 | 
			
		||||
        const itemId = changedInventory.toJSON().Upgrades[itemIndex]?.ItemId?.$oid;
 | 
			
		||||
 | 
			
		||||
@ -24,6 +24,7 @@ import {
 | 
			
		||||
    ExportVendors,
 | 
			
		||||
    TRarity
 | 
			
		||||
} from "warframe-public-export-plus";
 | 
			
		||||
import { config } from "./configService";
 | 
			
		||||
 | 
			
		||||
export const getStoreItemCategory = (storeItem: string): string => {
 | 
			
		||||
    const storeItemString = getSubstringFromKeyword(storeItem, "StoreItems/");
 | 
			
		||||
@ -152,7 +153,7 @@ export const handlePurchase = async (
 | 
			
		||||
 | 
			
		||||
                    purchaseResponse.InventoryChanges.MiscItems ??= [];
 | 
			
		||||
                    (purchaseResponse.InventoryChanges.MiscItems as IMiscItem[]).push(invItem);
 | 
			
		||||
                } else {
 | 
			
		||||
                } else if (!config.infiniteRegalAya) {
 | 
			
		||||
                    inventory.PrimeTokens -= offer.PrimePrice! * purchaseRequest.PurchaseParams.Quantity;
 | 
			
		||||
                }
 | 
			
		||||
                await inventory.save();
 | 
			
		||||
 | 
			
		||||
@ -235,6 +235,14 @@
 | 
			
		||||
                                        <input class="form-check-input" type="checkbox" id="infinitePlatinum" />
 | 
			
		||||
                                        <label class="form-check-label" for="infinitePlatinum">Infinite Platinum</label>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                    <div class="form-check">
 | 
			
		||||
                                        <input class="form-check-input" type="checkbox" id="infiniteEndo" />
 | 
			
		||||
                                        <label class="form-check-label" for="infiniteEndo">Infinite Endo</label>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                    <div class="form-check">
 | 
			
		||||
                                        <input class="form-check-input" type="checkbox" id="infiniteRegalAya" />
 | 
			
		||||
                                        <label class="form-check-label" for="infiniteRegalAya">Infinite Regal Aya</label>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                    <div class="form-check">
 | 
			
		||||
                                        <input class="form-check-input" type="checkbox" id="unlockAllShipFeatures" />
 | 
			
		||||
                                        <label class="form-check-label" for="unlockAllShipFeatures">Unlock All Ship Features</label>
 | 
			
		||||
 | 
			
		||||
@ -804,6 +804,8 @@ const uiConfigs = [
 | 
			
		||||
    "completeAllQuests",
 | 
			
		||||
    "infiniteCredits",
 | 
			
		||||
    "infinitePlatinum",
 | 
			
		||||
    "infiniteEndo",
 | 
			
		||||
    "infiniteRegalAya",
 | 
			
		||||
    "unlockAllShipFeatures",
 | 
			
		||||
    "unlockAllShipDecorations",
 | 
			
		||||
    "unlockAllFlavourItems",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user