Fix multiple typos
This commit is contained in:
parent
c801dba0b7
commit
a1d6596f8d
@ -196,7 +196,6 @@ export class BotEquipmentModGenerator
|
|||||||
// Get pool of mods that fit weapon
|
// Get pool of mods that fit weapon
|
||||||
const compatibleModsPool = modPool[parentTemplate._id];
|
const compatibleModsPool = modPool[parentTemplate._id];
|
||||||
|
|
||||||
// biome-ignore lint/complexity/useSimplifiedLogicExpression: <explanation>
|
|
||||||
if (
|
if (
|
||||||
!((parentTemplate._props.Slots.length || parentTemplate._props.Cartridges?.length)
|
!((parentTemplate._props.Slots.length || parentTemplate._props.Cartridges?.length)
|
||||||
|| parentTemplate._props.Chambers?.length)
|
|| parentTemplate._props.Chambers?.length)
|
||||||
|
@ -785,7 +785,7 @@ export class LocationGenerator
|
|||||||
}
|
}
|
||||||
else if (this.itemHelper.isOfBaseclass(chosenTpl, BaseClasses.AMMO_BOX))
|
else if (this.itemHelper.isOfBaseclass(chosenTpl, BaseClasses.AMMO_BOX))
|
||||||
{
|
{
|
||||||
// Fill with cartrdiges
|
// Fill with cartridges
|
||||||
const ammoBoxTemplate = this.itemHelper.getItem(chosenTpl)[1];
|
const ammoBoxTemplate = this.itemHelper.getItem(chosenTpl)[1];
|
||||||
const ammoBoxItem: Item[] = [{ _id: this.objectId.generate(), _tpl: chosenTpl }];
|
const ammoBoxItem: Item[] = [{ _id: this.objectId.generate(), _tpl: chosenTpl }];
|
||||||
this.itemHelper.addCartridgesToAmmoBox(ammoBoxItem, ammoBoxTemplate);
|
this.itemHelper.addCartridgesToAmmoBox(ammoBoxItem, ammoBoxTemplate);
|
||||||
|
@ -1023,7 +1023,7 @@ class ItemHelper
|
|||||||
minSizePercent = 0.25,
|
minSizePercent = 0.25,
|
||||||
): void
|
): void
|
||||||
{
|
{
|
||||||
// Get cartrdge properties and max allowed stack size
|
// Get cartridge properties and max allowed stack size
|
||||||
const cartridgeDetails = this.getItem(cartridgeTpl);
|
const cartridgeDetails = this.getItem(cartridgeTpl);
|
||||||
const cartridgeMaxStackSize = cartridgeDetails[1]._props.StackMaxSize;
|
const cartridgeMaxStackSize = cartridgeDetails[1]._props.StackMaxSize;
|
||||||
|
|
||||||
@ -1081,7 +1081,7 @@ class ItemHelper
|
|||||||
* Chose a randomly weighted cartridge that fits
|
* Chose a randomly weighted cartridge that fits
|
||||||
* @param caliber Desired caliber
|
* @param caliber Desired caliber
|
||||||
* @param staticAmmoDist Cartridges and thier weights
|
* @param staticAmmoDist Cartridges and thier weights
|
||||||
* @returns Tpl of cartrdige
|
* @returns Tpl of cartridge
|
||||||
*/
|
*/
|
||||||
protected drawAmmoTpl(caliber: string, staticAmmoDist: Record<string, IStaticAmmoDetails[]>): string
|
protected drawAmmoTpl(caliber: string, staticAmmoDist: Record<string, IStaticAmmoDetails[]>): string
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user