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

abilities

const abilities: PluginFactory<[AbilitiesOptions], PluginMade<readonly [SystemDefinition<"input", false, Both, "approach">, SystemDefinition<"rules", true, Both, "cast">, SystemDefinition<"rules", false, Both, "keepRefusals">], Readonly<Record<never, never>>, { cycleTarget: PageActionDeclaration; slot1: PageActionDeclaration; slot2: PageActionDeclaration; slot3: PageActionDeclaration; slot4: PageActionDeclaration; slot5: PageActionDeclaration; }, never, { cast: CommandDeclaration<{ ability: OneOfCommandField<string>; target: EntityCommandField & object; }, Refusal, undefined, true, false, true, false>; }, Readonly<Record<never, never>>, Record<never, never>>>

The abilities: the cast, its approach and the targeting, and the cast command. Its handles are on the factory: abilities.commands.cast, and abilities.systems.cast for a game that anchors on the cast.