Ability

interface Ability

An ability an addon can register with Foundry.

Implement activate to define what happens when a player uses the ability.

Properties

Link copied to clipboard
open val actions: Set<Action>

Actions declared by this ability.

Link copied to clipboard

Number of seconds a player must wait after using this ability. Defaults to no cooldown.

Link copied to clipboard
abstract val id: String

Unique ID used to register, assign, and activate this ability.

Functions

Link copied to clipboard
abstract fun activate(context: AbilityContext)

Runs the ability for the player and ID in context.