diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-22 16:37:33 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-22 16:37:33 +0200 |
commit | dbcd0118863ff3e7c5bee45041ccdb757eb2f366 (patch) | |
tree | dc08c8641d1f886b579360f3c63a919545ed23fb /resources/js/main.js | |
parent | c0354b250f84d578b609a7f25d71dee7fc24e9ca (diff) |
areas and town/shop setup
Diffstat (limited to 'resources/js/main.js')
-rw-r--r-- | resources/js/main.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/resources/js/main.js b/resources/js/main.js index 4fd9c62..24eafec 100644 --- a/resources/js/main.js +++ b/resources/js/main.js @@ -18,12 +18,9 @@ Game.setActivePlayerMonster(Memory.state.player.monsters[0]); Memory.state.activeBall = Memory.state.player.inventory[0]; // tuxeball - Memory.state.rivalMonster = await fetchMonster(possibleStarterMonsters[Math.round(Math.random() * (possibleStarterMonsters.length - 1))]); + Memory.state.rivalMonster = possibleStarterMonsters[Math.round(Math.random() * (possibleStarterMonsters.length - 1))]; - const area = await fetchArea('paper-town'); - await Game.jumpToArea(area); - await Game.encounterTrainer(); - UI.drawStatus(); + await Game.goToArea('paper-town'); UI.drawActiveMonster(); UI.drawActiveTechniques(); |