mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-13 05:15:17 +00:00
Add BW crit throw sound (#5131)
This commit is contained in:
parent
ee6115f49d
commit
c3641a370f
BIN
public/audio/se/crit_throw.wav
Normal file
BIN
public/audio/se/crit_throw.wav
Normal file
Binary file not shown.
@ -319,6 +319,7 @@ export class LoadingScene extends SceneBase {
|
|||||||
this.loadSe("pb_move");
|
this.loadSe("pb_move");
|
||||||
this.loadSe("pb_catch");
|
this.loadSe("pb_catch");
|
||||||
this.loadSe("pb_lock");
|
this.loadSe("pb_lock");
|
||||||
|
this.loadSe("crit_throw");
|
||||||
|
|
||||||
this.loadSe("pb_tray_enter");
|
this.loadSe("pb_tray_enter");
|
||||||
this.loadSe("pb_tray_ball");
|
this.loadSe("pb_tray_ball");
|
||||||
|
@ -64,7 +64,7 @@ export class AttemptCapturePhase extends PokemonPhase {
|
|||||||
this.pokeball.setOrigin(0.5, 0.625);
|
this.pokeball.setOrigin(0.5, 0.625);
|
||||||
globalScene.field.add(this.pokeball);
|
globalScene.field.add(this.pokeball);
|
||||||
|
|
||||||
globalScene.playSound("se/pb_throw", isCritical ? { rate: 0.2 } : undefined); // Crit catch throws are higher pitched
|
globalScene.playSound(isCritical ? "se/crit_throw" : "se/pb_throw");
|
||||||
globalScene.time.delayedCall(300, () => {
|
globalScene.time.delayedCall(300, () => {
|
||||||
globalScene.field.moveBelow(this.pokeball as Phaser.GameObjects.GameObject, pokemon);
|
globalScene.field.moveBelow(this.pokeball as Phaser.GameObjects.GameObject, pokemon);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user