From 8c546bd1a8e35276b3c579ed29e27bbd9d5a1ca5 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 29 Dec 2023 15:48:25 +0000 Subject: [PATCH] Add new base classes and update name of `ARMORED_EQUIPMENT` --- project/src/models/enums/BaseClasses.ts | 6 +++++- project/src/services/BotEquipmentModPoolService.ts | 2 +- project/src/services/FenceService.ts | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/project/src/models/enums/BaseClasses.ts b/project/src/models/enums/BaseClasses.ts index 1ff75232..a588fd1d 100644 --- a/project/src/models/enums/BaseClasses.ts +++ b/project/src/models/enums/BaseClasses.ts @@ -3,7 +3,7 @@ export enum BaseClasses WEAPON = "5422acb9af1c889c16000029", UBGL = "55818b014bdc2ddc698b456b", ARMOR = "5448e54d4bdc2dcc718b4568", - ARMOREDEQUIPMENT = "57bef4c42459772e8d35a53b", + ARMORED_EQUIPMENT = "57bef4c42459772e8d35a53b", REPAIR_KITS = "616eb7aea207f41933308f46", HEADWEAR = "5a341c4086f77401f2541505", FACECOVER = "5a341c4686f77469e155819e", @@ -101,4 +101,8 @@ export enum BaseClasses HEADPHONES = "5645bcb74bdc2ded0b8b4578", RANDOM_LOOT_CONTAINER = "62f109593b54472778797866", STACKABLE_ITEM = "5661632d4bdc2d903d8b456b", + BUILT_IN_INSERTS = "65649eb40bf0ed77b8044453", + ARMOR_PLATE = "644120aa86ffbe10ee032b6f", + CULTIST_AMULET= "64b69b0c8f3be32ed22682f8", + RADIO_TRANSMITTER = "62e9103049c018f425059f38" } diff --git a/project/src/services/BotEquipmentModPoolService.ts b/project/src/services/BotEquipmentModPoolService.ts index 4b16d48e..c042c873 100644 --- a/project/src/services/BotEquipmentModPoolService.ts +++ b/project/src/services/BotEquipmentModPoolService.ts @@ -201,7 +201,7 @@ export class BotEquipmentModPoolService protected generateGearPool(): void { const gear = Object.values(this.databaseServer.getTables().templates.items).filter((x) => - x._type === "Item" && this.itemHelper.isOfBaseclasses(x._id, [BaseClasses.ARMOREDEQUIPMENT, BaseClasses.VEST]) + x._type === "Item" && this.itemHelper.isOfBaseclasses(x._id, [BaseClasses.ARMORED_EQUIPMENT, BaseClasses.VEST]) ); this.generatePool(gear, "gear"); diff --git a/project/src/services/FenceService.ts b/project/src/services/FenceService.ts index 61969ac9..42635fe2 100644 --- a/project/src/services/FenceService.ts +++ b/project/src/services/FenceService.ts @@ -681,7 +681,7 @@ export class FenceService (itemDetails._parent === BaseClasses.ARMOR || itemDetails._parent === BaseClasses.HEADWEAR || itemDetails._parent === BaseClasses.VEST - || itemDetails._parent === BaseClasses.ARMOREDEQUIPMENT + || itemDetails._parent === BaseClasses.ARMORED_EQUIPMENT || itemDetails._parent === BaseClasses.FACECOVER) && itemDetails._props.MaxDurability > 0 ) {