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

Check if the specific item type on the weapon has reached the set limit

Parameters

modTpl: string

log mod tpl if over type limit

currentCount: { count: number; }

current number of this item on gun

maxLimit: number

mod limit allowed

botRole: string

role of bot we're checking weapon of

Returns

boolean

true if limit reached