If true, sets the shiny overrides to disable shinies at the start of each test.
Protected ReadonlygameIf 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 BattleStyle to set, or null to disable the override
this
Override the battle type for non-scripted battles.
The BattleType 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
Override 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 waves to not have standard trainer battles
this
Use battleType instead
Override whether enemy Pokemon will be fused with random Pokemon.
this
Override whether starter Pokemon will be fused with random Pokemon.
this
Gives the player access to an Unlockable.
The Unlockable(s) to enable.
this
Override the initial fusion species used when generating new enemy Pokemon in Spliced Endless-like modes.
this
Does nothing if Overrides.ENEMY_FUSION_OVERRIDE is not enabled
Override the enabled status of the passive abilities of all enemy Pokemon.
Whether passives should be enabled/disabled, or null to disable the override
this
This override should not be used - setting a custom passive ability via passiveAbility
will forcibly enable passives without relying on individual species having specific passives.
If a granular per-Pokemon override is required, consider using FieldHelper.mockAbility
Override enemy Pokemon to have the given amount of boss health segments.
The number of segments to give, as follows:
0: Boss segments will be computed normally based on wave and enemy level1: 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
Override the initial IVs of all enemy Pokemon.
The IVs to set, either as a single number or a 6-length array.
If set to null, the override is disabled.
this
Override the level of enemy pokemon
The level to set
this
Override the movesets of all enemy Pokemon.
this
New tests should prefer using MoveHelper.forceEnemyMove
in most cases, though a global override can still be convenient to
"disable" enemies globally.
Override enemy Pokemon to either always or never be Shiny.
Whether to forcibly enable (true) or disable (false) Shininess,
or null to disable the override altogether
this
Override enemy Pokemon to either always or never be Shiny.
this
Override the initial status condition of all enemy Pokemon.
The StatusEffect to set
this
Override the enabled status of the passive abilities of all player Pokemon.
Whether passives should be enabled/disabled, or null to disable the override
this
This override should not be used - setting a custom passive ability via passiveAbility
will forcibly enable passives without relying on individual species having specific passives.
If a granular per-Pokemon override is required, consider using FieldHelper.mockAbility
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, or a negative number to disable level caps altogether.
0 disables the override.
this
PrivatelogLog a message to the console with coloration.
The parameters to log
Override the movesets of all player Pokemon.
this
While kept for legacy reasons, new tests should prefer using
MoveHelper.use in nearly all cases.
Override 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
Override the initial IVs of all player Pokemon.
The IVs to set, either as a single number or a 6-length array.
If set to null, the override is disabled.
this
Override the trainer type & variant when a random trainer is generated.
An object dictating the type & variant of trainer to spawn,
or null to disable the override
this
Override the seed
The seed to set
this
Override player Pokemon to either always or never be Shiny.
Whether to forcibly enable (true) or disable (false) Shininess,
or null to disable the override altogether
this
Override player Pokemon to either always or never be Shiny.
this
Override the initial fusion species used when generating new starter Pokemon in Spliced Endless-like modes.
this
Does nothing if Overrides.STARTER_FUSION_OVERRIDE is not enabled
Override the initial species used when creating new starter Pokemon.
this
This override is deprecated and heavily discouraged in automated test files;
a similar effect can be used by passing an array of SpeciesIds to
startBattle
Override the starting biome.
⚠️ Any event listeners that are attached to NewArenaEvent may need to be handled down the line
The biome to set
this
Override the player pokemon's starting held items
The items to hold
this
Override the starting level of newly generated player Pokemon.
The starting level to set
this
Override the player's starting modifiers
The modifiers to set
this
Override the starting TerrainType that will be set on entering a new biome.
The TerrainType to set.
this
Override the starting wave index.
The wave to set, or null to disable the override
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 initial status condition of all player Pokemon.
The StatusEffect to set
this
Override the arena's current weather.
The WeatherType to set
this
Override the XP Multiplier
The XP multiplier to set
this
Helper to handle overrides in tests