mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-29 11:42:21 +02:00
Playing correct cry
This commit is contained in:
parent
918fa7ea65
commit
3e6b804b5e
@ -4,7 +4,6 @@ import type { Variant } from "#app/data/variant";
|
|||||||
import { getVariantTint, getVariantIcon } from "#app/data/variant";
|
import { getVariantTint, getVariantIcon } from "#app/data/variant";
|
||||||
import { argbFromRgba } from "@material/material-color-utilities";
|
import { argbFromRgba } from "@material/material-color-utilities";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import type { AnySound } from "#app/battle-scene";
|
|
||||||
import { starterColors } from "#app/battle-scene";
|
import { starterColors } from "#app/battle-scene";
|
||||||
import { allAbilities } from "#app/data/ability";
|
import { allAbilities } from "#app/data/ability";
|
||||||
import { speciesEggMoves } from "#app/data/balance/egg-moves";
|
import { speciesEggMoves } from "#app/data/balance/egg-moves";
|
||||||
@ -578,9 +577,8 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
this.setSpecies(this.lastSpecies);
|
this.setSpecies(this.lastSpecies);
|
||||||
this.updateInstructions();
|
this.updateInstructions();
|
||||||
|
|
||||||
const key = this.lastSpecies.getCryKey(this.lastFormIndex);
|
const crier = (this.lastSpecies.forms && this.lastSpecies.forms.length > 0) ? this.lastSpecies.forms[this.lastFormIndex] : this.lastSpecies;
|
||||||
const rate = 0.85;
|
crier.cry();
|
||||||
globalScene.playSound(key, { rate: rate }) as AnySound;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user