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

Randomize the HpResource for bots e.g (245/400 resources)

Parameters

maxResource: number

Max resource value of medical items

randomizationValues: IRandomisedResourceValues

Value provided from config

Returns

number

Randomized value from maxHpResource