Type Alias FindActionSourceConstraints

FindActionSourceConstraints: {
    allowedAction?: ((action: ActionSource) => boolean);
    maximumCost?: (() => number);
    noFamiliar?: (() => boolean);
    noPreparation?: (() => boolean);
    noRequirements?: (() => boolean);
    requireFamiliar?: (() => boolean);
    requireUnlimited?: (() => boolean);
}

Type declaration

  • OptionalallowedAction?: ((action: ActionSource) => boolean)

    Function allowing for custom logic if an action should be allowed. If undefined, allow all actions to be considered by other constraints.

      • (action): boolean
      • Parameters

        Returns boolean

        True if the action should be allowed.

  • OptionalmaximumCost?: (() => number)

    Function returning maximum cost of allowed actions. If undefined, allow only actions that cost nothing.

      • (): number
      • Returns number

  • OptionalnoFamiliar?: (() => boolean)

    Function returning whether to disallow actions requiring familiar change.

      • (): boolean
      • Returns boolean

  • OptionalnoPreparation?: (() => boolean)

    Function returning whether to disallow actions requiring preparation.

      • (): boolean
      • Returns boolean

  • OptionalnoRequirements?: (() => boolean)

    Function returning whether to disallow actions requiring equipment change.

      • (): boolean
      • Returns boolean

  • OptionalrequireFamiliar?: (() => boolean)

    Function returning true if we only accept familiar-based actions.

      • (): boolean
      • Returns boolean

  • OptionalrequireUnlimited?: (() => boolean)

    Function returning true if we only accept sources that are unlimited.

      • (): boolean
      • Returns boolean