Skip to main content
The Deno 2 Release Candidate is here
Learn more
method BotWeaponModLimitService.prototype.weaponModHasReachedLimit
import { BotWeaponModLimitService } from "https://deno.land/x/sptaki@1.2.0/services/BotWeaponModLimitService.d.ts";

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

Parameters

botRole: string

role the bot has e.g. assault

modTemplate: ITemplateItem

mods template data

modLimits: BotModLimits

limits set for weapon being generated for this bot

modsParent: ITemplateItem

The parent of the mod to be checked

weapon: Item[]

Returns

boolean

true if over item limit