After the turn ends, try to create an extra item

Hierarchy (view full)

Constructors

Properties

itemType: "EATEN_BERRIES" | "HELD_BERRIES"

Extend itemType to add more options

procChance: ((pokemon) => number)

Chance to create an item

Type declaration

    • (pokemon): number
    • Parameters

      Returns number

showAbility: boolean

Methods

  • Create a new berry chosen randomly from the berries the pokemon ate this battle

    Parameters

    • pokemon: default

      The pokemon with this ability

    Returns boolean

    whether a new berry was created