From a1d6596f8de9da7a6a8e043648810c8ab2d3f966 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 29 Nov 2023 11:36:20 +0000 Subject: [PATCH] Fix multiple typos --- project/src/generators/BotEquipmentModGenerator.ts | 1 - project/src/generators/LocationGenerator.ts | 2 +- project/src/helpers/ItemHelper.ts | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/project/src/generators/BotEquipmentModGenerator.ts b/project/src/generators/BotEquipmentModGenerator.ts index d0c6785e..6b901eb3 100644 --- a/project/src/generators/BotEquipmentModGenerator.ts +++ b/project/src/generators/BotEquipmentModGenerator.ts @@ -196,7 +196,6 @@ export class BotEquipmentModGenerator // Get pool of mods that fit weapon const compatibleModsPool = modPool[parentTemplate._id]; - // biome-ignore lint/complexity/useSimplifiedLogicExpression: if ( !((parentTemplate._props.Slots.length || parentTemplate._props.Cartridges?.length) || parentTemplate._props.Chambers?.length) diff --git a/project/src/generators/LocationGenerator.ts b/project/src/generators/LocationGenerator.ts index fd007758..09b384c7 100644 --- a/project/src/generators/LocationGenerator.ts +++ b/project/src/generators/LocationGenerator.ts @@ -785,7 +785,7 @@ export class LocationGenerator } else if (this.itemHelper.isOfBaseclass(chosenTpl, BaseClasses.AMMO_BOX)) { - // Fill with cartrdiges + // Fill with cartridges const ammoBoxTemplate = this.itemHelper.getItem(chosenTpl)[1]; const ammoBoxItem: Item[] = [{ _id: this.objectId.generate(), _tpl: chosenTpl }]; this.itemHelper.addCartridgesToAmmoBox(ammoBoxItem, ammoBoxTemplate); diff --git a/project/src/helpers/ItemHelper.ts b/project/src/helpers/ItemHelper.ts index a85e758c..f9ceebaf 100644 --- a/project/src/helpers/ItemHelper.ts +++ b/project/src/helpers/ItemHelper.ts @@ -1023,7 +1023,7 @@ class ItemHelper minSizePercent = 0.25, ): void { - // Get cartrdge properties and max allowed stack size + // Get cartridge properties and max allowed stack size const cartridgeDetails = this.getItem(cartridgeTpl); const cartridgeMaxStackSize = cartridgeDetails[1]._props.StackMaxSize; @@ -1081,7 +1081,7 @@ class ItemHelper * Chose a randomly weighted cartridge that fits * @param caliber Desired caliber * @param staticAmmoDist Cartridges and thier weights - * @returns Tpl of cartrdige + * @returns Tpl of cartridge */ protected drawAmmoTpl(caliber: string, staticAmmoDist: Record): string {