Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

HeldWeaponsTrait

const HeldWeaponsTrait: Trait<() => string[]>

The weapons a character holds now, by the names registerWeapon gives them: the room refuses a shot from any other under its held rule, and the engine’s Weapon fires none. A character without it holds every registered weapon, so a game that never sets it arms everyone with all of them; an empty list holds none. A game writes the whole list as she buys, drops or swaps a weapon: character.set(HeldWeaponsTrait, ["shotgun"]).