Compare commits

..

1 Commits

Author SHA1 Message Date
Bertie690
e712df255f
Merge 9cec9fc715 into cb3ae4ab87 2025-08-11 17:44:44 -05:00
2 changed files with 14 additions and 30 deletions

View File

@ -1865,43 +1865,27 @@ export const trainerConfigs: TrainerConfigs = {
.setPartyMemberFunc( .setPartyMemberFunc(
0, 0,
getRandomPartyMemberFunc([ getRandomPartyMemberFunc([
SpeciesId.METAPOD,
SpeciesId.LEDYBA,
SpeciesId.CLEFFA,
SpeciesId.WOOPER,
SpeciesId.TEDDIURSA,
SpeciesId.REMORAID,
SpeciesId.HOUNDOUR,
SpeciesId.SILCOON,
SpeciesId.PLUSLE, SpeciesId.PLUSLE,
SpeciesId.VOLBEAT, SpeciesId.VOLBEAT,
SpeciesId.SPINDA, SpeciesId.PACHIRISU,
SpeciesId.BONSLY, SpeciesId.SILCOON,
SpeciesId.METAPOD,
SpeciesId.IGGLYBUFF,
SpeciesId.PETILIL, SpeciesId.PETILIL,
SpeciesId.SPRITZEE, SpeciesId.EEVEE,
SpeciesId.MILCERY,
SpeciesId.PICHU,
]), ]),
) )
.setPartyMemberFunc( .setPartyMemberFunc(
1, 1,
getRandomPartyMemberFunc( getRandomPartyMemberFunc(
[ [
SpeciesId.KAKUNA,
SpeciesId.SPINARAK,
SpeciesId.IGGLYBUFF,
SpeciesId.PALDEA_WOOPER,
SpeciesId.PHANPY,
SpeciesId.MANTYKE,
SpeciesId.ELECTRIKE,
SpeciesId.CASCOON,
SpeciesId.MINUN, SpeciesId.MINUN,
SpeciesId.ILLUMISE, SpeciesId.ILLUMISE,
SpeciesId.SPINDA, SpeciesId.EMOLGA,
SpeciesId.MIME_JR, SpeciesId.CASCOON,
SpeciesId.KAKUNA,
SpeciesId.CLEFFA,
SpeciesId.COTTONEE, SpeciesId.COTTONEE,
SpeciesId.SWIRLIX,
SpeciesId.FIDOUGH,
SpeciesId.EEVEE, SpeciesId.EEVEE,
], ],
TrainerSlot.TRAINER_PARTNER, TrainerSlot.TRAINER_PARTNER,

View File

@ -17,9 +17,9 @@ export class TurnStartPhase extends FieldPhase {
public readonly phaseName = "TurnStartPhase"; public readonly phaseName = "TurnStartPhase";
/** /**
* Helper method to retrieve the current speed order of the combattants. * This orders the active Pokemon on the field by speed into an BattlerIndex array and returns that array.
* It also checks for Trick Room and reverses the array if it is present. * It also checks for Trick Room and reverses the array if it is present.
* @returns The {@linkcode BattlerIndex}es of all on-field Pokemon, sorted in speed order. * @returns An array of {@linkcode BattlerIndex}es containing all on-field Pokemon sorted in speed order.
*/ */
getSpeedOrder(): BattlerIndex[] { getSpeedOrder(): BattlerIndex[] {
const playerField = globalScene.getPlayerField().filter(p => p.isActive()); const playerField = globalScene.getPlayerField().filter(p => p.isActive());
@ -53,9 +53,9 @@ export class TurnStartPhase extends FieldPhase {
} }
/** /**
* This takes the result of {@linkcode getSpeedOrder} and applies priority / bypass speed attributes to it. * This takes the result of getSpeedOrder and applies priority / bypass speed attributes to it.
* This also considers the priority levels of various commands and changes the result of `getSpeedOrder` based on such. * This also considers the priority levels of various commands and changes the result of `getSpeedOrder` based on such.
* @returns The `BattlerIndex`es of all on-field Pokemon sorted in action order. * @returns An array of {@linkcode BattlerIndex}es containing all on-field Pokemon sorted in action order.
*/ */
getCommandOrder(): BattlerIndex[] { getCommandOrder(): BattlerIndex[] {
let moveOrder = this.getSpeedOrder(); let moveOrder = this.getSpeedOrder();
@ -164,7 +164,7 @@ export class TurnStartPhase extends FieldPhase {
// TODO: Remove `turnData.order` - // TODO: Remove `turnData.order` -
// it is used exclusively for Fusion Flare/Bolt // it is used exclusively for Fusion Flare/Bolt
// and uses a really jank (and incorrect) implementation // and uses a really jank implementation
if (turnCommand.command === Command.FIGHT) { if (turnCommand.command === Command.FIGHT) {
pokemon.turnData.order = index; pokemon.turnData.order = index;
} }