diff --git a/game.js b/game.js index 4a5fc92..e0088d5 100644 --- a/game.js +++ b/game.js @@ -1789,6 +1789,14 @@ class Game { const playerPoke = this._getActivePokemon(); const npcPoke = this.state.currentNPCPokemon || { name:'???', emoji:'❓', level:1 }; + const npcTrainer = document.getElementById('anim-npc-trainer'); + if (npcTrainer) { + const npcQ = this.state.questions[this.state.currentQ]; + setNPC(npcTrainer, NPC[npcQ?.npc] || '🧑'); + } + const playerTrainer = document.getElementById('anim-player-trainer'); + if (playerTrainer) playerTrainer.innerHTML = '
'; + document.getElementById('anim-player-pokemon-name').textContent = playerPoke.name.toUpperCase(); document.getElementById('anim-player-pokemon').textContent = playerPoke.emoji; document.getElementById('anim-npc-pokemon-name').textContent = npcPoke.name.toUpperCase(); diff --git a/index.html b/index.html index 66fe5db..829f430 100644 --- a/index.html +++ b/index.html @@ -215,6 +215,8 @@