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

Adds properties to an item e.g. Repairable / HasHinge / Foldable / MaxDurability

Parameters

itemTemplate: ITemplateItem

Item extra properties are being generated for

optional
botRole: string

Used by weapons to randomize the durability values. Null for non-equipped items

Returns

{ upd?: Upd; }

Item Upd object with extra properties