Hierarchy (view full)

Constructors

Properties

battleScore: number = 0
battleSeed: string = ...
battleSpec: BattleSpec
battleType: BattleType
double: boolean
enemyFaints: number = 0

The number of times a Pokemon on the enemy's side has fainted this battle

enemyFaintsHistory: FaintLogEntry[] = []
enemyLevels: undefined | number[]
enemyParty: EnemyPokemon[] = []
enemySwitchCounter: number = 0
escapeAttempts: number = 0
gameMode: GameMode
lastMove: Moves
lastUsedPokeball: null | PokeballType = null
moneyScattered: number = 0
mysteryEncounter?: default

If the current battle is a Mystery Encounter, this will always be defined

mysteryEncounterType?: MysteryEncounterType
playerFaints: number = 0

The number of times a Pokemon on the player's side has fainted this battle

playerFaintsHistory: FaintLogEntry[] = []
playerParticipantIds: Set<number> = ...
postBattleLoot: PokemonHeldItemModifier[] = []
seenEnemyPartyMemberIds: Set<number> = ...
started: boolean = false
trainer: null | default
turn: number = 0
turnCommands: TurnCommands
waveIndex: number

Methods

  • Parameters

    • value: number

    Returns number

  • Generates a random number using the current battle's seed. Calls Utils.randSeedInt

    Parameters

    • scene: default
    • range: number

      How large of a range of random numbers to choose from. If range <= 1, returns min

    • min: number = 0

      The minimum integer to pick, default 0

    Returns number

    A random integer between min and (min + range - 1)