mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
[Sprite] Set pokemon animation framerate to 10 where assigned
This commit is contained in:
parent
073f85c8cb
commit
69369b3b52
@ -499,11 +499,11 @@ export abstract class PokemonSpeciesForm {
|
|||||||
scene.anims.create({
|
scene.anims.create({
|
||||||
key: this.getSpriteKey(female, formIndex, shiny, variant),
|
key: this.getSpriteKey(female, formIndex, shiny, variant),
|
||||||
frames: frameNames,
|
frames: frameNames,
|
||||||
frameRate: 12,
|
frameRate: 10,
|
||||||
repeat: -1
|
repeat: -1
|
||||||
});
|
});
|
||||||
} else {
|
} 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]$/, "");
|
let spritePath = this.getSpriteAtlasPath(female, formIndex, shiny, variant).replace("variant/", "").replace(/_[1-3]$/, "");
|
||||||
const useExpSprite = scene.experimentalSprites && scene.hasExpSprite(spriteKey);
|
const useExpSprite = scene.experimentalSprites && scene.hasExpSprite(spriteKey);
|
||||||
|
@ -212,7 +212,7 @@ export default class MysteryEncounterIntroVisuals extends Phaser.GameObjects.Con
|
|||||||
this.scene.anims.create({
|
this.scene.anims.create({
|
||||||
key: config.spriteKey,
|
key: config.spriteKey,
|
||||||
frames: frameNames,
|
frames: frameNames,
|
||||||
frameRate: 12,
|
frameRate: 10,
|
||||||
repeat: -1
|
repeat: -1
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -3603,7 +3603,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
}
|
}
|
||||||
this.status = null;
|
this.status = null;
|
||||||
if (lastStatus === StatusEffect.SLEEP) {
|
if (lastStatus === StatusEffect.SLEEP) {
|
||||||
this.setFrameRate(12);
|
this.setFrameRate(10);
|
||||||
if (this.getTag(BattlerTagType.NIGHTMARE)) {
|
if (this.getTag(BattlerTagType.NIGHTMARE)) {
|
||||||
this.lapseTag(BattlerTagType.NIGHTMARE);
|
this.lapseTag(BattlerTagType.NIGHTMARE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user