mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-14 20:32:17 +02:00
add: enable pokemon cries to settings helper
make sure to disable it in all tests by default
This commit is contained in:
parent
c7cc935f26
commit
a044a08f0f
@ -147,6 +147,8 @@ export default class GameManager {
|
||||
this.scene.enableTutorials = false;
|
||||
this.scene.gameData.gender = PlayerGender.MALE; // set initial player gender
|
||||
this.scene.battleStyle = this.settings.battleStyle;
|
||||
|
||||
this.settings.enablePokemonCries(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -38,7 +38,17 @@ export class SettingsHelper extends GameManagerHelper {
|
||||
this.log(`Gender set to: ${PlayerGender[gender]} (=${gender})` );
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle Pokemon cries (during battle only)
|
||||
* @param enable true to enable, false to disable
|
||||
*/
|
||||
enablePokemonCries(enable: boolean) {
|
||||
this.game.scene.enablePokemonCries = enable;
|
||||
this.log(`Pokemon Cries have been ${enable? "enabled" : "disabled"}!` );
|
||||
}
|
||||
|
||||
private log(...params: any[]) {
|
||||
console.log("Settings:", ...params);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user