返回提交历史
Modified
src/controllers/api/inventoryController.ts
+1
-16
Modified
src/services/configService.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
chore: remove unlockAllSkins cheat (#3151)
Closes #2361 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3151 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
3b4bc54f
代码差异
2 个文件
+2
-17
@@ -11,7 +11,6 @@ import { equipmentKeys, loadoutKeysLegacy } from "../../types/inventoryTypes/inv
11
11
import type { IPolarity } from "../../types/inventoryTypes/commonInventoryTypes.ts";
12
12
import { ArtifactPolarity } from "../../types/inventoryTypes/commonInventoryTypes.ts";
13
13
import type { ICountedItem } from "warframe-public-export-plus";
14
import { ExportCustoms } from "warframe-public-export-plus";
15
14
import { applyCheatsToInfestedFoundry, handleSubsumeCompletion } from "../../services/infestedFoundryService.ts";
16
15
import {
17
16
addEmailItem,
@@ -24,7 +23,7 @@ import {
24
23
getCalendarProgress
25
24
} from "../../services/inventoryService.ts";
26
25
import { logger } from "../../utils/logger.ts";
27
import { addString, catBreadHash } from "../../helpers/stringHelpers.ts";
26
import { addString } from "../../helpers/stringHelpers.ts";
28
27
import { Types } from "mongoose";
29
28
import { getNemesisManifest } from "../../helpers/nemesisHelpers.ts";
30
29
import { getPersonalRooms } from "../../services/personalRoomsService.ts";
@@ -358,20 +357,6 @@ export const getInventoryResponse = async (
358
357
});
359
358
}
360
359
361
if (config.unlockAllSkins) {
362
const ownedWeaponSkins = new Set<string>(inventoryResponse.WeaponSkins.map(x => x.ItemType));
363
for (const [uniqueName, meta] of Object.entries(ExportCustoms)) {
364
if (!meta.alwaysAvailable && !ownedWeaponSkins.has(uniqueName)) {
365
inventoryResponse.WeaponSkins.push({
366
ItemId: {
367
$oid: "ca70ca70ca70ca70" + catBreadHash(uniqueName).toString(16).padStart(8, "0")
368
},
369
ItemType: uniqueName
370
});
371
}
372
}
373
}
374
375
360
if (inventory.spoofMasteryRank && inventory.spoofMasteryRank >= 0) {
376
361
inventoryResponse.PlayerLevel = inventory.spoofMasteryRank;
377
362
if (!xpBasedLevelCapDisabled) {
@@ -23,7 +23,6 @@ export interface IConfig {
23
23
administratorNames?: string[];
24
24
autoCreateAccount?: boolean;
25
25
skipTutorial?: boolean;
26
unlockAllSkins?: boolean;
27
26
fullyStockedVendors?: boolean;
28
27
skipClanKeyCrafting?: boolean;
29
28
unfaithfulBugFixes?: {
@@ -157,6 +156,7 @@ export const configRemovedOptionsKeys = [
157
156
"noDojoResearchCosts",
158
157
"noDojoResearchTime",
159
158
"fastClanAscension",
159
"unlockAllSkins",
160
160
"unlockAllFlavourItems",
161
161
"unlockAllShipDecorations",
162
162
"unlockAllDecoRecipes",