Type Parameters

Hierarchy

Properties

actionStack: readonly ActionType[]
callingAction: ActionType
executor: E
hasSetCanUse: boolean
targetTile?: default
use: CU

Result of a successful canUse check.

Methods

  • The items passed to this method will be registered as items potentially to be damaged when the action completes.

    Parameters

    • Rest ...items: (undefined | default)[]

    Returns IActionHandlerApi<E, CU>

  • Returns the items registered for this action via addItems.

    Returns readonly default[]

  • Check if a creature on a tile and blocking the execution of the action

    Returns

    When checking before the action is being executed: true if a creature is on a tile and that creature is not hidden, false otherwise

    When checking when the action is being execute true if a creature is on a tile, false otherwise

    Parameters

    Returns boolean

  • Sets that the items added to this action by addItems were "used" (so they will be damaged afterward).

    Returns IActionHandlerApi<E, CU>

  • Sets whether the items added to this action by addItems were "used" (IE, whether they will be damaged).

    Parameters

    • Optional used: boolean

    Returns IActionHandlerApi<E, CU>

  • Sets the chance that this action will create a rune item in the player's inventory.

    Parameters

    • chance: number

    Returns IActionHandlerApi<E, CU>

  • Sets the chance that this action will create a rune item in the player's inventory.

    Parameters

    • alignment: undefined | ArrayOr<Deity>
    • chance: number

    Returns IActionHandlerApi<E, CU>

Generated using TypeDoc