Skip to content

Commit

Permalink
Revert debug changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeTappert committed Jul 15, 2024
1 parent f8e029f commit bd640bf
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/battle-scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,6 @@ export default class BattleScene extends SceneBase {
newBattleType = battleConfig.battleType;
this.executeWithSeedOffset(() => newTrainer = battleConfig.getTrainer(this), (battleConfig.seedOffsetWaveIndex || newWaveIndex) << 8);
if (newTrainer) {
console.log("Fixed battle", newWaveIndex, newBattleType, newTrainer);
this.field.add(newTrainer);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/battle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export interface FixedBattleConfigs {
*/
export const classicFixedBattles: FixedBattleConfigs = {
[5]: new FixedBattleConfig().setBattleType(BattleType.TRAINER)
.setGetTrainerFunc(scene => new Trainer(scene, TrainerType.BRYONY , TrainerVariant.DEFAULT)),
.setGetTrainerFunc(scene => new Trainer(scene, TrainerType.YOUNGSTER, Utils.randSeedInt(2) ? TrainerVariant.FEMALE : TrainerVariant.DEFAULT)),
[8]: new FixedBattleConfig().setBattleType(BattleType.TRAINER)
.setGetTrainerFunc(scene => new Trainer(scene, TrainerType.RIVAL, scene.gameData.gender === PlayerGender.MALE ? TrainerVariant.FEMALE : TrainerVariant.DEFAULT)),
[25]: new FixedBattleConfig().setBattleType(BattleType.TRAINER)
Expand Down
1 change: 0 additions & 1 deletion src/data/trainer-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ export class TrainerConfig {
// Get the derived type for the double trainer since the sprite key is based on the derived type
ret = TrainerType[this.getDerivedType(this.trainerTypeDouble)].toString().toLowerCase();
}
console.log(ret);
return ret;
}

Expand Down
2 changes: 0 additions & 2 deletions src/loading-scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ export class LoadingScene extends SceneBase {
this.loadAtlas("trainer_f_back_pb", "trainer");

Utils.getEnumValues(TrainerType).map(tt => {
console.log("Loading trainer", tt);
const config = trainerConfigs[tt];
console.log("Loading trainer", config);
this.loadAtlas(config.getSpriteKey(), "trainer");
if (config.doubleOnly || config.hasDouble) {
this.loadAtlas(config.getSpriteKey(true), "trainer");
Expand Down
4 changes: 2 additions & 2 deletions src/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const SEED_OVERRIDE: string = "";
export const WEATHER_OVERRIDE: WeatherType = WeatherType.NONE;
export const DOUBLE_BATTLE_OVERRIDE: boolean = false;
export const SINGLE_BATTLE_OVERRIDE: boolean = false;
export const STARTING_WAVE_OVERRIDE: integer = 5;
export const STARTING_WAVE_OVERRIDE: integer = 0;
export const STARTING_BIOME_OVERRIDE: Biome = Biome.TOWN;
export const ARENA_TINT_OVERRIDE: TimeOfDay = null;
// Multiplies XP gained by this value including 0. Set to null to ignore the override
Expand Down Expand Up @@ -69,7 +69,7 @@ export const POKEBALL_OVERRIDE: { active: boolean, pokeballs: PokeballCounts } =
export const STARTER_FORM_OVERRIDES: Partial<Record<Species, number>> = {};

// default 5 or 20 for Daily
export const STARTING_LEVEL_OVERRIDE: integer = 100;
export const STARTING_LEVEL_OVERRIDE: integer = 0;
/**
* SPECIES OVERRIDE
* will only apply to the first starter in your party or each enemy pokemon
Expand Down

0 comments on commit bd640bf

Please sign in to comment.