From 909d79f4150b4194c509e47b56b989f444241174 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 14 Nov 2023 17:34:44 +0000 Subject: [PATCH] Remove unnecessary `removeMapAccessKey()` method, now handled in client --- project/src/helpers/InRaidHelper.ts | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/project/src/helpers/InRaidHelper.ts b/project/src/helpers/InRaidHelper.ts index c2d7a707..5609cca2 100644 --- a/project/src/helpers/InRaidHelper.ts +++ b/project/src/helpers/InRaidHelper.ts @@ -186,9 +186,6 @@ export class InRaidHelper profileData.Info.Experience += profileData.Stats.Eft.TotalSessionExperience; profileData.Stats.Eft.TotalSessionExperience = 0; - // Remove the Lab card - this.removeMapAccessKey(saveProgressRequest, sessionID); - this.setPlayerInRaidLocationStatusToNone(sessionID); if (!saveProgressRequest.isPlayerScav) @@ -312,32 +309,6 @@ export class InRaidHelper } } - /** - * Some maps have one-time-use keys (e.g. Labs - * Remove the relevant key from an inventory based on the post-raid request data passed in - * @param offraidData post-raid data - * @param sessionID Session id - */ - protected removeMapAccessKey(offraidData: ISaveProgressRequestData, sessionID: string): void - { - const locationName = this.saveServer.getProfile(sessionID).inraid.location.toLowerCase(); - const mapKey = this.databaseServer.getTables().locations[locationName].base.AccessKeys[0]; - - if (!mapKey) - { - return; - } - - for (const item of offraidData.profile.Inventory.items) - { - if (item._tpl === mapKey && item.slotId.toLowerCase() !== "hideout") - { - this.inventoryHelper.removeItem(offraidData.profile, item._id, sessionID); - break; - } - } - } - /** * Set the SPT inraid location Profile property to 'none' * @param sessionID Session id