[Sprite] Set pokemon animation framerate to 10 where assigned

This commit is contained in:
pom-eranian 2024-11-14 20:29:58 -05:00
parent 073f85c8cb
commit 69369b3b52
3 changed files with 4 additions and 4 deletions

View File

@ -499,11 +499,11 @@ export abstract class PokemonSpeciesForm {
scene.anims.create({
key: this.getSpriteKey(female, formIndex, shiny, variant),
frames: frameNames,
frameRate: 12,
frameRate: 10,
repeat: -1
});
} else {
scene.anims.get(spriteKey).frameRate = 12;
scene.anims.get(spriteKey).frameRate = 10;
}
let spritePath = this.getSpriteAtlasPath(female, formIndex, shiny, variant).replace("variant/", "").replace(/_[1-3]$/, "");
const useExpSprite = scene.experimentalSprites && scene.hasExpSprite(spriteKey);

View File

@ -212,7 +212,7 @@ export default class MysteryEncounterIntroVisuals extends Phaser.GameObjects.Con
this.scene.anims.create({
key: config.spriteKey,
frames: frameNames,
frameRate: 12,
frameRate: 10,
repeat: -1
});
}

View File

@ -3603,7 +3603,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
}
this.status = null;
if (lastStatus === StatusEffect.SLEEP) {
this.setFrameRate(12);
this.setFrameRate(10);
if (this.getTag(BattlerTagType.NIGHTMARE)) {
this.lapseTag(BattlerTagType.NIGHTMARE);
}