import { BotWeaponModLimitService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";
Constructors
Properties
protected
botConfig: IBotConfigprotected
configServer: ConfigServerprotected
itemHelper: ItemHelperprotected
logger: ILoggerMethods
protected
weaponModLimitReached(modTpl: string,
currentCount: { count: number; },
maxLimit: number,
botRole: string,
Check if the specific item type on the weapon has reached the set limit
getWeaponModLimits(botRole: string): BotModLimits
Initalise mod limits to be used when generating a weapon
weaponModHasReachedLimit(): boolean
botRole: string,
modTemplate: ITemplateItem,
modLimits: BotModLimits,
modsParent: ITemplateItem,
weapon: Item[],
Check if weapon mod item is on limited list + has surpassed the limit set for it Exception: Always allow ncstar backup mount Exception: Always allow scopes with a scope for a parent Exception: Always disallow mounts that hold only scopes once scope limit reached Exception: Always disallow mounts that hold only flashlights once flashlight limit reached