Type Parameters

Hierarchy

Implemented by

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 IActionConfirmerApi<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

  • Prompts the user about something

    Type Parameters

    Parameters

    Returns Promise<boolean>

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

    Parameters

    • chance: number

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

Generated using TypeDoc