Skip to content

Commit

Permalink
[Sprite] Set pokemon animation framerate to 10 where assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
pom-eranian committed Nov 15, 2024
1 parent 073f85c commit 69369b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/data/pokemon-species.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/field/mystery-encounter-intro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/field/pokemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 69369b3

Please sign in to comment.