feat: add potatoes, exilus, & arcanes everywhere cheats
This commit is contained in:
parent
6714cf9ac2
commit
6bd6e62167
@ -25,5 +25,8 @@
|
|||||||
"unlockAllSkins": true,
|
"unlockAllSkins": true,
|
||||||
"unlockAllCapturaScenes": true,
|
"unlockAllCapturaScenes": true,
|
||||||
"universalPolarityEverywhere": true,
|
"universalPolarityEverywhere": true,
|
||||||
|
"unlockDoubleCapacityPotatoesEverywhere": true,
|
||||||
|
"unlockExilusEverywhere": true,
|
||||||
|
"unlockArcanesEverywhere": true,
|
||||||
"spoofMasteryRank": -1
|
"spoofMasteryRank": -1
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ import { config } from "@/src/services/configService";
|
|||||||
import allDialogue from "@/static/fixed_responses/allDialogue.json";
|
import allDialogue from "@/static/fixed_responses/allDialogue.json";
|
||||||
import { ILoadoutDatabase } from "@/src/types/saveLoadoutTypes";
|
import { ILoadoutDatabase } from "@/src/types/saveLoadoutTypes";
|
||||||
import { IInventoryResponse, IShipInventory, equipmentKeys } from "@/src/types/inventoryTypes/inventoryTypes";
|
import { IInventoryResponse, IShipInventory, equipmentKeys } from "@/src/types/inventoryTypes/inventoryTypes";
|
||||||
import { IPolarity, ArtifactPolarity } from "@/src/types/inventoryTypes/commonInventoryTypes";
|
import { IPolarity, ArtifactPolarity, EquipmentFeatures } from "@/src/types/inventoryTypes/commonInventoryTypes";
|
||||||
import {
|
import {
|
||||||
ExportCustoms,
|
ExportCustoms,
|
||||||
ExportFlavour,
|
ExportFlavour,
|
||||||
@ -211,6 +211,39 @@ export const inventoryController: RequestHandler = async (request, response) =>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.unlockDoubleCapacityPotatoesEverywhere) {
|
||||||
|
for (const key of equipmentKeys) {
|
||||||
|
if (key in inventoryResponse) {
|
||||||
|
for (const equipment of inventoryResponse[key]) {
|
||||||
|
equipment.Features ??= 0;
|
||||||
|
equipment.Features |= EquipmentFeatures.DOUBLE_CAPACITY;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.unlockExilusEverywhere) {
|
||||||
|
for (const key of equipmentKeys) {
|
||||||
|
if (key in inventoryResponse) {
|
||||||
|
for (const equipment of inventoryResponse[key]) {
|
||||||
|
equipment.Features ??= 0;
|
||||||
|
equipment.Features |= EquipmentFeatures.UTILITY_SLOT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.unlockArcanesEverywhere) {
|
||||||
|
for (const key of equipmentKeys) {
|
||||||
|
if (key in inventoryResponse) {
|
||||||
|
for (const equipment of inventoryResponse[key]) {
|
||||||
|
equipment.Features ??= 0;
|
||||||
|
equipment.Features |= EquipmentFeatures.ARCANE_SLOT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Fix for #380
|
// Fix for #380
|
||||||
inventoryResponse.NextRefill = { $date: { $numberLong: "9999999999999" } };
|
inventoryResponse.NextRefill = { $date: { $numberLong: "9999999999999" } };
|
||||||
|
|
||||||
|
@ -51,6 +51,9 @@ interface IConfig {
|
|||||||
unlockAllSkins?: boolean;
|
unlockAllSkins?: boolean;
|
||||||
unlockAllCapturaScenes?: boolean;
|
unlockAllCapturaScenes?: boolean;
|
||||||
universalPolarityEverywhere?: boolean;
|
universalPolarityEverywhere?: boolean;
|
||||||
|
unlockDoubleCapacityPotatoesEverywhere?: boolean;
|
||||||
|
unlockExilusEverywhere?: boolean;
|
||||||
|
unlockArcanesEverywhere?: boolean;
|
||||||
spoofMasteryRank?: number;
|
spoofMasteryRank?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,6 +271,24 @@
|
|||||||
Universal Polarity Everywhere
|
Universal Polarity Everywhere
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input class="form-check-input" type="checkbox" id="unlockDoubleCapacityPotatoesEverywhere" />
|
||||||
|
<label class="form-check-label" for="unlockDoubleCapacityPotatoesEverywhere">
|
||||||
|
Potatoes Everywhere
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input class="form-check-input" type="checkbox" id="unlockExilusEverywhere" />
|
||||||
|
<label class="form-check-label" for="unlockExilusEverywhere">
|
||||||
|
Exilus Adapters Everywhere
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input class="form-check-input" type="checkbox" id="unlockArcanesEverywhere" />
|
||||||
|
<label class="form-check-label" for="unlockArcanesEverywhere">
|
||||||
|
Arcane Adapters Everywhere
|
||||||
|
</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