mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 09:02:47 +02:00
Apply Biome
This commit is contained in:
parent
95025f315a
commit
8679f82367
@ -23,7 +23,7 @@ import type Pokemon from "#app/field/pokemon";
|
|||||||
import { CLASSIC_MODE_MYSTERY_ENCOUNTER_WAVES } from "#app/constants";
|
import { CLASSIC_MODE_MYSTERY_ENCOUNTER_WAVES } from "#app/constants";
|
||||||
import { isPokemonValidForEncounterOptionSelection } from "#app/data/mystery-encounters/utils/encounter-pokemon-utils";
|
import { isPokemonValidForEncounterOptionSelection } from "#app/data/mystery-encounters/utils/encounter-pokemon-utils";
|
||||||
import { MoneyMultiplierModifier } from "#app/modifier/modifier";
|
import { MoneyMultiplierModifier } from "#app/modifier/modifier";
|
||||||
import * as Utils from "#app/utils";
|
import { NumberHolder } from "#app/utils/common";
|
||||||
|
|
||||||
/** the i18n namespace for the encounter */
|
/** the i18n namespace for the encounter */
|
||||||
const namespace = "mysteryEncounters/partTimer";
|
const namespace = "mysteryEncounters/partTimer";
|
||||||
@ -276,12 +276,12 @@ export const PartTimerEncounter: MysteryEncounter = MysteryEncounterBuilder.with
|
|||||||
// Bring visuals back in
|
// Bring visuals back in
|
||||||
await transitionMysteryEncounterIntroVisuals(false, false);
|
await transitionMysteryEncounterIntroVisuals(false, false);
|
||||||
|
|
||||||
// Give money and do dialogue
|
// Give money and do dialogue
|
||||||
await showEncounterDialogue(`${namespace}:job_complete_good`, `${namespace}:speaker`);
|
await showEncounterDialogue(`${namespace}:job_complete_good`, `${namespace}:speaker`);
|
||||||
|
|
||||||
const formattedMoneyAmount = applyMoneyMultipliers(2.5);
|
const formattedMoneyAmount = applyMoneyMultipliers(2.5);
|
||||||
await showEncounterText(i18next.t("mysteryEncounterMessages:receive_money", { amount: formattedMoneyAmount }));
|
await showEncounterText(i18next.t("mysteryEncounterMessages:receive_money", { amount: formattedMoneyAmount }));
|
||||||
await showEncounterText(`${namespace}:pokemon_tired`);
|
await showEncounterText(`${namespace}:pokemon_tired`);
|
||||||
|
|
||||||
setEncounterRewards({ fillRemaining: true });
|
setEncounterRewards({ fillRemaining: true });
|
||||||
leaveEncounterWithoutBattle();
|
leaveEncounterWithoutBattle();
|
||||||
@ -346,7 +346,7 @@ function doSalesSfx() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function applyMoneyMultipliers(moneyMultiplier) {
|
function applyMoneyMultipliers(moneyMultiplier) {
|
||||||
const moneyChange = new Utils.IntegerHolder(globalScene.getWaveMoneyAmount(moneyMultiplier));
|
const moneyChange = new NumberHolder(globalScene.getWaveMoneyAmount(moneyMultiplier));
|
||||||
globalScene.applyModifiers(MoneyMultiplierModifier, true, moneyChange);
|
globalScene.applyModifiers(MoneyMultiplierModifier, true, moneyChange);
|
||||||
updatePlayerMoney(moneyChange.value, true, false);
|
updatePlayerMoney(moneyChange.value, true, false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user