Add new base classes and update name of ARMORED_EQUIPMENT

This commit is contained in:
Dev 2023-12-29 15:48:25 +00:00
parent 47074e6aaa
commit 8c546bd1a8
3 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,7 @@ export enum BaseClasses
WEAPON = "5422acb9af1c889c16000029", WEAPON = "5422acb9af1c889c16000029",
UBGL = "55818b014bdc2ddc698b456b", UBGL = "55818b014bdc2ddc698b456b",
ARMOR = "5448e54d4bdc2dcc718b4568", ARMOR = "5448e54d4bdc2dcc718b4568",
ARMOREDEQUIPMENT = "57bef4c42459772e8d35a53b", ARMORED_EQUIPMENT = "57bef4c42459772e8d35a53b",
REPAIR_KITS = "616eb7aea207f41933308f46", REPAIR_KITS = "616eb7aea207f41933308f46",
HEADWEAR = "5a341c4086f77401f2541505", HEADWEAR = "5a341c4086f77401f2541505",
FACECOVER = "5a341c4686f77469e155819e", FACECOVER = "5a341c4686f77469e155819e",
@ -101,4 +101,8 @@ export enum BaseClasses
HEADPHONES = "5645bcb74bdc2ded0b8b4578", HEADPHONES = "5645bcb74bdc2ded0b8b4578",
RANDOM_LOOT_CONTAINER = "62f109593b54472778797866", RANDOM_LOOT_CONTAINER = "62f109593b54472778797866",
STACKABLE_ITEM = "5661632d4bdc2d903d8b456b", STACKABLE_ITEM = "5661632d4bdc2d903d8b456b",
BUILT_IN_INSERTS = "65649eb40bf0ed77b8044453",
ARMOR_PLATE = "644120aa86ffbe10ee032b6f",
CULTIST_AMULET= "64b69b0c8f3be32ed22682f8",
RADIO_TRANSMITTER = "62e9103049c018f425059f38"
} }

View File

@ -201,7 +201,7 @@ export class BotEquipmentModPoolService
protected generateGearPool(): void protected generateGearPool(): void
{ {
const gear = Object.values(this.databaseServer.getTables().templates.items).filter((x) => 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"); this.generatePool(gear, "gear");

View File

@ -681,7 +681,7 @@ export class FenceService
(itemDetails._parent === BaseClasses.ARMOR (itemDetails._parent === BaseClasses.ARMOR
|| itemDetails._parent === BaseClasses.HEADWEAR || itemDetails._parent === BaseClasses.HEADWEAR
|| itemDetails._parent === BaseClasses.VEST || itemDetails._parent === BaseClasses.VEST
|| itemDetails._parent === BaseClasses.ARMOREDEQUIPMENT || itemDetails._parent === BaseClasses.ARMORED_EQUIPMENT
|| itemDetails._parent === BaseClasses.FACECOVER) && itemDetails._props.MaxDurability > 0 || itemDetails._parent === BaseClasses.FACECOVER) && itemDetails._props.MaxDurability > 0
) )
{ {