Skip to main content
Deno 2 is finally here 🎉️
Learn more
class ExternalInventoryMagGen
implements IInventoryMagGen
import { ExternalInventoryMagGen } from "https://deno.land/x/sptaki@1.2.0/generators/weapongen/implementations/mod.ts";

Constructors

new
ExternalInventoryMagGen(
logger: ILogger,
itemHelper: ItemHelper,
localisationService: LocalisationService,
botWeaponGeneratorHelper: BotWeaponGeneratorHelper,
botGeneratorHelper: BotGeneratorHelper,
randomUtil: RandomUtil,
)

Properties

protected
botGeneratorHelper: BotGeneratorHelper
protected
botWeaponGeneratorHelper: BotWeaponGeneratorHelper
protected
itemHelper: ItemHelper
protected
localisationService: LocalisationService
protected
logger: ILogger
protected
randomUtil: RandomUtil

Methods

protected
getRandomExternalMagazineForInternalMagazineGun(weaponTpl: string, magazineBlacklist: string[]): ITemplateItem

Get a random compatible external magazine for a weapon, exclude internal magazines from possible pool

canHandleInventoryMagGen(inventoryMagGen: InventoryMagGen): boolean
getPriority(): number
process(inventoryMagGen: InventoryMagGen): void