import { BotHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/BotHelper.d.ts";
Constructors
Properties
Methods
Get a randomized PMC side based on bot config value 'isUsec'
Add a bot to the ENEMY_BOT_TYPES array, do not add itself if its on the enemy list
Add a bot to the FRIENDLY_BOT_TYPES array
Add a bot to the REVENGE_BOT_TYPES array
Get randomization settings for bot from config/bot.json
Get a template object for the specified botRole from bots.types db
Get the corresponding side when sptBear or sptUsec is passed in
Choose between sptBear and sptUsec at random based on the % defined in pmcConfig.isUsec
Is the passed in bot role a PMC (usec/bear/pmc)
Randomize the chance the PMC will attack their own side Look up value in bot.json/chanceSameSideIsHostilePercent
Choose if a bot should become a PMC by checking if bot type is allowed to become a Pmc in botConfig.convertFromChances and doing a random int check