If true
, sets the shiny overrides to disable shinies at the start of each test.
Protected
Readonly
gameIf true
, will set the IV overrides for player and enemy pokemon to 31
at the start of each test.
If true
, will set the Nature overrides for player and enemy pokemon to a neutral nature at the start of each test.
If true
, removes the starting items from enemies at the start of each test.
Override the battle style (e.g., single or double).
The battle style to set
this
Override the battle type (e.g., WILD, or Trainer) for non-scripted battles.
The battle type to set
this
Override confusion to always or never activate
true
to force activation, false
to force no activation, null
to disable the override
this
Force random critical hit rolls to always or never suceed.
true
to guarantee crits on eligible moves, false
to force rolls to fail, null
to disable override
this
Override each wave to not have standard trainer battles
this
Override the enemy pokemon to be a random fusion
this
Override the player pokemon to be a random fusion
this
Gives the player access to an Unlockable.
The Unlockable(s) to enable.
this
Override the enemy pokemon fusion species
The fusion species to set
this
Forces the status of the enemy pokemon passive ability
Forces the passive to be active if true
, inactive if false
this
Override the enemy Pokemon to have the given amount of health segments
The number of segments to give
0
(default): the health segments will be handled like in the game based on wave, level and species1
: the Pokemon will not be a boss2
+: the Pokemon will be a boss with the given number of health segmentsthis
Override the enemy (pokemon) held items
the items to hold
this
Overrides the IVs of the enemy pokemon
If set to a number, all IVs are set to the same value. Must be between 0
and 31
!
If set to an array, that array is applied to the pokemon's IV field as-is.
All values must be between 0
and 31
, and the array must be of exactly length 6
!
If set to null
, the override is disabled.
this
Override the level of enemy pokemon
The level to set
this
Overrides the nature of the enemy's pokemon
The nature to set, or null
to disable the override.
this
Override the enemy pokemon's initial status-effect
.
The status-effect
to set
this
Forces the status of the player pokemon passive ability
Forces the passive to be active if true
, inactive if false
this
Override the items rolled at the end of a battle
The items to be rolled
this
Override the wave level cap
The level cap value to set; 0 uses normal level caps and negative values disable it completely
this
Private
logOverride the encounter that spawns for the scene
The MysteryEncounterType
of the encounter
this
Override the encounter chance for a mystery encounter.
The encounter chance in %
this
Override the encounter chance for a mystery encounter.
The MysteryEncounterTier
to encounter
this
Overrides the nature of the player's pokemon
The nature to set, or null
to disable the override.
this
Overrides the IVs of the player pokemon
If set to a number, all IVs are set to the same value. Must be between 0
and 31
!
If set to an array, that array is applied to the pokemon's IV field as-is.
All values must be between 0
and 31
, and the array must be of exactly length 6
!
If set to null
, the override is disabled.
this
Override the trainer chosen when a random trainer is selected.
Does not force the battle to be a trainer battle.
this
Override the seed
The seed to set
this
Override player shininess
true
or false
to force the player's pokemon to be shiny or not shiny,
null
to disable the override and re-enable RNG shinies.
this
Override player shiny variant
The player's shiny variant.
this
Override the player pokemon's fusion species
The fusion species to set
this
Override the starting biome
⚠️ Any event listeners that are attached to NewArenaEvent
may need to be handled down the line
The biome to set
Override the player pokemon's starting held items
The items to hold
this
Override the player pokemon's starting level
The level to set
this
Override the player's starting modifiers
The modifiers to set
this
Override the starting wave index
The wave to set. Classic: 1
-200
this
Override statuses (Paralysis and Freeze) to always or never activate
true
to force activation, false
to force no activation, null
to disable the override
this
Override the player pokemon's initial status-effect
,
The status-effect
to set
this
Override the XP Multiplier
The XP multiplier to set
this
Helper to handle overrides in tests