latest ME bug fixes

This commit is contained in:
ImperialSympathizer 2024-09-05 15:58:19 -04:00
parent b032a3d6a5
commit a48fe1f7a4
4 changed files with 7 additions and 6 deletions

View File

@ -3009,6 +3009,7 @@ export default class BattleScene extends SceneBase {
// If absolutely no encounters are available, spawn 0th encounter
if (availableEncounters.length === 0) {
console.log("No Mystery Encounters found, falling back to Mysterious Challengers.");
return allMysteryEncounters[MysteryEncounterType.MYSTERIOUS_CHALLENGERS];
}
encounter = availableEncounters[Utils.randSeedInt(availableEncounters.length)];

View File

@ -90,7 +90,7 @@ export const MysteriousChestEncounter: MysteryEncounter =
const encounter = scene.currentBattle.mysteryEncounter!;
const roll = encounter.misc.roll;
if (roll > 60) {
// Choose between 2 COMMON / 2 GREAT tier items (40%)
// Choose between 2 COMMON / 2 GREAT tier items (30%)
setEncounterRewards(scene, {
guaranteedModifierTiers: [
ModifierTier.COMMON,
@ -115,7 +115,7 @@ export const MysteriousChestEncounter: MysteryEncounter =
queueEncounterMessage(scene, `${namespace}.option.1.good`);
leaveEncounterWithoutBattle(scene);
} else if (roll > 36) {
// Choose between 2 ROGUE tier items (4%)
// Choose between 2 ROGUE tier items (10%)
setEncounterRewards(scene, {
guaranteedModifierTiers: [ModifierTier.ROGUE, ModifierTier.ROGUE],
});
@ -123,7 +123,7 @@ export const MysteriousChestEncounter: MysteryEncounter =
queueEncounterMessage(scene, `${namespace}.option.1.great`);
leaveEncounterWithoutBattle(scene);
} else if (roll > 35) {
// Choose 1 MASTER tier item (1%)
// Choose 1 MASTER tier item (5%)
setEncounterRewards(scene, {
guaranteedModifierTiers: [ModifierTier.MASTER],
});

View File

@ -13,7 +13,7 @@
"2": {
"label": "Learn Its Dance",
"tooltip": "(+) Teach a Pokémon Revelation Dance",
"selected": "You watch the Oricorio closely as it performs its dance...$@s{level_up_fanfare}Your {{selectedPokemon}} wants to learn Revelation Dance!"
"selected": "You watch the Oricorio closely as it performs its dance...$@s{level_up_fanfare}Your {{selectedPokemon}} learned from the Oricorio!"
},
"3": {
"label": "Show It a Dance",

View File

@ -141,9 +141,9 @@ class DefaultOverrides {
// -------------------------
/** 1 to 256, set to null to ignore */
readonly MYSTERY_ENCOUNTER_RATE_OVERRIDE: number | null = 256;
readonly MYSTERY_ENCOUNTER_RATE_OVERRIDE: number | null = null;
readonly MYSTERY_ENCOUNTER_TIER_OVERRIDE: MysteryEncounterTier | null = null;
readonly MYSTERY_ENCOUNTER_OVERRIDE: MysteryEncounterType | null = MysteryEncounterType.CLOWNING_AROUND;
readonly MYSTERY_ENCOUNTER_OVERRIDE: MysteryEncounterType | null = null;
// -------------------------
// MODIFIER / ITEM OVERRIDES