Skip to main content
The Deno 2 Release Candidate is here
Learn more
method BotGeneratorHelper.prototype.getBotEquipmentSettingFromConfig
Re-export
import { BotGeneratorHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Get the chance for the weapon attachment or helmet equipment to be set as activated

Parameters

botRole: string

role of bot with weapon/helmet

setting: keyof EquipmentFilters

the setting of the weapon attachment/helmet equipment to be activated

defaultValue: number

default value for the chance of activation if the botrole or bot equipment role is null

Returns

number

Percent chance to be active