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