Type Parameters

Hierarchy

Properties

actionStack: readonly ActionType[]
callingAction: ActionType
description: IActionDescription<ActionArguments, E, any, CU, any[]>
executor: E
hasSetCanUse: boolean
targetTile?: default

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 IActionExampleApi<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 the chance that this action will create a rune item in the player's inventory.

    Parameters

    • chance: number

    Returns IActionExampleApi<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 IActionExampleApi<E, CU>

Generated using TypeDoc