pokemon-rogue-battle
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    accuracy: number
    attrs: MoveAttr[] = []
    chance: number

    The chance of a move's secondary effects activating

    effect: string
    generation: number
    id: Moves
    moveTarget: MoveTarget
    name: string
    power: number
    pp: number
    priority: number

    Accessors

    Methods

    • Adds a new MoveAttr to the move (appends to the attr array) if the MoveAttr also comes with a condition, also adds that to the conditions array: MoveCondition Almost identical to attr, except you are passing in a MoveAttr object, instead of a constructor and it's arguments

      Parameters

      Returns this

      the called object Move

    • Adds a new MoveAttr to the move (appends to the attr array) if the MoveAttr also comes with a condition, also adds that to the conditions array: MoveCondition

      Type Parameters

      Parameters

      • AttrType: T

        MoveAttr the constructor of a MoveAttr class

      • ...args: ConstructorParameters<T>

        the args needed to instantiate a the given class

      Returns this

      the called object Move