diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-24 14:42:12 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-24 14:42:12 +0200 |
commit | bde5dc98ad96546b59e91f5a6e552bf80cbf48e4 (patch) | |
tree | 37196f5b5065c61ac038ae43d6f2392e29e39371 /resources/js/game.js | |
parent | 7b1c251fcb085dc37de439ea1137373f1905d82e (diff) |
translations and error handling
Diffstat (limited to 'resources/js/game.js')
-rw-r--r-- | resources/js/game.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/js/game.js b/resources/js/game.js index 663e6b0..0ba5a8d 100644 --- a/resources/js/game.js +++ b/resources/js/game.js @@ -954,7 +954,7 @@ const Game = { }; // Game click bindings -UI.elements.nextTrainer.addEventListener('click', Game.encounterTrainer); -UI.elements.battleOpponent.addEventListener('click', Game.battleClick); -UI.elements.techniques.addEventListener('click', Game.techniqueClick); -UI.elements.menuCatch.addEventListener('click', Game.catchMonster); +UI.elements.nextTrainer.addEventListener('click', UI.createEventListener(Game.encounterTrainer)); +UI.elements.battleOpponent.addEventListener('click', UI.createEventListener(Game.battleClick)); +UI.elements.techniques.addEventListener('click', UI.createEventListener(Game.techniqueClick)); +UI.elements.menuCatch.addEventListener('click', UI.createEventListener(Game.catchMonster)); |