RESET OVERRIDES.TS!!

This commit is contained in:
Felix Staud 2024-07-14 21:31:43 -07:00
parent 7b55811b84
commit 9208fd226b
2 changed files with 7 additions and 16 deletions

View File

@ -43,21 +43,12 @@ export const LostAtSeaEncounter: MysteryEncounter = MysteryEncounterBuilder.with
]) ])
.withIntroDialogue([{ text: `${namepsace}:intro` }]) .withIntroDialogue([{ text: `${namepsace}:intro` }])
.withOnInit((scene: BattleScene) => { .withOnInit((scene: BattleScene) => {
// const allowedPokemon = scene.getParty().filter((p) => p.isAllowedInBattle());
const { mysteryEncounter } = scene.currentBattle; const { mysteryEncounter } = scene.currentBattle;
mysteryEncounter.setDialogueToken("damagePercentage", String(DAMAGE_PERCENTAGE)); mysteryEncounter.setDialogueToken("damagePercentage", String(DAMAGE_PERCENTAGE));
mysteryEncounter.setDialogueToken("option1RequiredMove", Moves[OPTION_1_REQUIRED_MOVE]); mysteryEncounter.setDialogueToken("option1RequiredMove", Moves[OPTION_1_REQUIRED_MOVE]);
mysteryEncounter.setDialogueToken("option2RequiredMove", Moves[OPTION_2_REQUIRED_MOVE]); mysteryEncounter.setDialogueToken("option2RequiredMove", Moves[OPTION_2_REQUIRED_MOVE]);
// check for water pokemon
// surfablePkm = findPokemonThatCanLearnMove(allowedPokemon, Type.WATER);
// mysteryEncounter.setDialogueToken("waterPkm", surfablePkm?.name ?? "");
// check for flying pokemon
// flyingPkm = findPokemonThatCanLearnMove(allowedPokemon, Type.FLYING);
// mysteryEncounter.setDialogueToken("flyingPkm", flyingPkm?.name ?? "");
return true; return true;
}) })
.withTitle(`${namepsace}:title`) .withTitle(`${namepsace}:title`)
@ -82,7 +73,7 @@ export const LostAtSeaEncounter: MysteryEncounter = MysteryEncounterBuilder.with
}, },
], ],
}) })
.withOptionPhase(async (scene: BattleScene) => handleGuidingOptionPhase(scene, surfablePkm)) .withOptionPhase(async (scene: BattleScene) => handlePokemongGuidingYouPhase(scene, surfablePkm))
.build() .build()
) )
.withOption( .withOption(
@ -104,7 +95,7 @@ export const LostAtSeaEncounter: MysteryEncounter = MysteryEncounterBuilder.with
}, },
], ],
}) })
.withOptionPhase(async (scene: BattleScene) => handleGuidingOptionPhase(scene, flyingPkm)) .withOptionPhase(async (scene: BattleScene) => handlePokemongGuidingYouPhase(scene, flyingPkm))
.build() .build()
) )
.withSimpleOption( .withSimpleOption(
@ -141,7 +132,7 @@ export const LostAtSeaEncounter: MysteryEncounter = MysteryEncounterBuilder.with
* @param scene Battle scene * @param scene Battle scene
* @param guidePokemon pokemon choosen as a guide * @param guidePokemon pokemon choosen as a guide
*/ */
function handleGuidingOptionPhase(scene: BattleScene, guidePokemon: PlayerPokemon) { function handlePokemongGuidingYouPhase(scene: BattleScene, guidePokemon: PlayerPokemon) {
/** Base EXP value for guiding pokemon. Currently Lapras base-value */ /** Base EXP value for guiding pokemon. Currently Lapras base-value */
const baseExpValue: number = 187; const baseExpValue: number = 187;

View File

@ -34,8 +34,8 @@ export const SEED_OVERRIDE: string = "";
export const WEATHER_OVERRIDE: WeatherType = WeatherType.NONE; export const WEATHER_OVERRIDE: WeatherType = WeatherType.NONE;
export const DOUBLE_BATTLE_OVERRIDE: boolean = false; export const DOUBLE_BATTLE_OVERRIDE: boolean = false;
export const SINGLE_BATTLE_OVERRIDE: boolean = false; export const SINGLE_BATTLE_OVERRIDE: boolean = false;
export const STARTING_WAVE_OVERRIDE: integer = 15; export const STARTING_WAVE_OVERRIDE: integer = 0;
export const STARTING_BIOME_OVERRIDE: Biome = Biome.SEA; export const STARTING_BIOME_OVERRIDE: Biome = Biome.TOWN;
export const ARENA_TINT_OVERRIDE: TimeOfDay = null; export const ARENA_TINT_OVERRIDE: TimeOfDay = null;
// Multiplies XP gained by this value including 0. Set to null to ignore the override // Multiplies XP gained by this value including 0. Set to null to ignore the override
export const XP_MULTIPLIER_OVERRIDE: number = null; export const XP_MULTIPLIER_OVERRIDE: number = null;
@ -117,9 +117,9 @@ export const EGG_GACHA_PULL_COUNT_OVERRIDE: number = 0;
*/ */
// 1 to 256, set to null to ignore // 1 to 256, set to null to ignore
export const MYSTERY_ENCOUNTER_RATE_OVERRIDE: number = 100000; export const MYSTERY_ENCOUNTER_RATE_OVERRIDE: number = null;
export const MYSTERY_ENCOUNTER_TIER_OVERRIDE: MysteryEncounterTier = null; export const MYSTERY_ENCOUNTER_TIER_OVERRIDE: MysteryEncounterTier = null;
export const MYSTERY_ENCOUNTER_OVERRIDE: MysteryEncounterType = MysteryEncounterType.LOST_AT_SEA; export const MYSTERY_ENCOUNTER_OVERRIDE: MysteryEncounterType = null;
/** /**
* MODIFIER / ITEM OVERRIDES * MODIFIER / ITEM OVERRIDES