feat: noDailyStandingLimits cheat
This commit is contained in:
		
							parent
							
								
									42bcab790e
								
							
						
					
					
						commit
						bbca21467b
					
				@ -28,5 +28,6 @@
 | 
			
		||||
  "unlockDoubleCapacityPotatoesEverywhere": true,
 | 
			
		||||
  "unlockExilusEverywhere": true,
 | 
			
		||||
  "unlockArcanesEverywhere": true,
 | 
			
		||||
  "noDailyStandingLimits": true,
 | 
			
		||||
  "spoofMasteryRank": -1
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -234,6 +234,12 @@ export const inventoryController: RequestHandler = async (request, response) =>
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (config.noDailyStandingLimits) {
 | 
			
		||||
        for (const key of allDailyAffiliationKeys) {
 | 
			
		||||
            inventoryResponse[key] = 999_999;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Fix for #380
 | 
			
		||||
    inventoryResponse.NextRefill = { $date: { $numberLong: "9999999999999" } };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,7 @@ import { addMiscItems, getInventory, getStandingLimit, updateStandingLimit } fro
 | 
			
		||||
import { IMiscItem } from "@/src/types/inventoryTypes/inventoryTypes";
 | 
			
		||||
import { IOid } from "@/src/types/commonTypes";
 | 
			
		||||
import { ExportSyndicates, ISyndicate } from "warframe-public-export-plus";
 | 
			
		||||
import { config } from "@/src/services/configService";
 | 
			
		||||
 | 
			
		||||
export const syndicateStandingBonusController: RequestHandler = async (req, res) => {
 | 
			
		||||
    const accountId = await getAccountIdForRequest(req);
 | 
			
		||||
@ -36,13 +37,15 @@ export const syndicateStandingBonusController: RequestHandler = async (req, res)
 | 
			
		||||
    if (syndicate.Standing + gainedStanding > max) {
 | 
			
		||||
        gainedStanding = max - syndicate.Standing;
 | 
			
		||||
    }
 | 
			
		||||
    if (gainedStanding > getStandingLimit(inventory, syndicateMeta.dailyLimitBin)) {
 | 
			
		||||
    if (!config.noDailyStandingLimits && gainedStanding > getStandingLimit(inventory, syndicateMeta.dailyLimitBin)) {
 | 
			
		||||
        gainedStanding = getStandingLimit(inventory, syndicateMeta.dailyLimitBin);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    syndicate.Standing += gainedStanding;
 | 
			
		||||
 | 
			
		||||
    updateStandingLimit(inventory, syndicateMeta.dailyLimitBin, gainedStanding);
 | 
			
		||||
    if (!config.noDailyStandingLimits) {
 | 
			
		||||
        updateStandingLimit(inventory, syndicateMeta.dailyLimitBin, gainedStanding);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    await inventory.save();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -54,6 +54,7 @@ interface IConfig {
 | 
			
		||||
    unlockDoubleCapacityPotatoesEverywhere?: boolean;
 | 
			
		||||
    unlockExilusEverywhere?: boolean;
 | 
			
		||||
    unlockArcanesEverywhere?: boolean;
 | 
			
		||||
    noDailyStandingLimits?: boolean;
 | 
			
		||||
    spoofMasteryRank?: number;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -298,6 +298,12 @@
 | 
			
		||||
                                            Arcane Adapters Everywhere
 | 
			
		||||
                                        </label>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                    <div class="form-check">
 | 
			
		||||
                                        <input class="form-check-input" type="checkbox" id="noDailyStandingLimits" />
 | 
			
		||||
                                        <label class="form-check-label" for="noDailyStandingLimits">
 | 
			
		||||
                                            No Daily Standing Limits
 | 
			
		||||
                                        </label>
 | 
			
		||||
                                    </div>
 | 
			
		||||
                                    <div class="form-group mt-2">
 | 
			
		||||
                                        <label class="form-label" for="spoofMasteryRank">
 | 
			
		||||
                                            Spoofed Mastery Rank (-1 to disable)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user