diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-18 16:07:39 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-18 16:07:39 +0200 |
commit | d3e65b98ca932aef1e05e33d74eaf62be520cdd4 (patch) | |
tree | 3645410b3c4c857d1a602f6b6abda71b106aae64 /resources/js/game.js | |
parent | aa44f67ab57673528e96a4a075fbd8cd0354bd68 (diff) |
inventory and items
Diffstat (limited to 'resources/js/game.js')
-rw-r--r-- | resources/js/game.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/resources/js/game.js b/resources/js/game.js index 140f9d5..e383677 100644 --- a/resources/js/game.js +++ b/resources/js/game.js @@ -462,6 +462,7 @@ UI.elements.menuCatch.addEventListener('click', Game.catchMonster); state.enemy.monster = await fetchMonster(possibleStarterMonsters[Math.round(Math.random() * (possibleStarterMonsters.length - 1))]); state.partyMonsters = [ + await fetchMonster('dollfin'), await fetchMonster(possibleStarterMonsters[Math.round(Math.random() * (possibleStarterMonsters.length - 1))]), await fetchMonster('corvix'), await fetchMonster('lunight'), @@ -477,6 +478,22 @@ UI.elements.menuCatch.addEventListener('click', Game.catchMonster); state.activeMonster = state.partyMonsters[0]; state.activeTechnique = state.activeMonster.activeTechniques[0]; + state.inventory = [ + new InventoryItem(await fetchItem('tuxeball')), + new InventoryItem(await fetchItem('ancient_egg')), + new InventoryItem(await fetchItem('sweet_sand')), + new InventoryItem(await fetchItem('tectonic_drill')), + new InventoryItem(await fetchItem('surfboard')), + new InventoryItem(await fetchItem('sledgehammer')), + new InventoryItem(await fetchItem('raise_melee')), + new InventoryItem(await fetchItem('raise_speed')), + new InventoryItem(await fetchItem('mm_fire')), + new InventoryItem(await fetchItem('mm_water')), + new InventoryItem(await fetchItem('cureall')), + new InventoryItem(await fetchItem('potion')), + new InventoryItem(await fetchItem('super_potion')), + ]; + UI.drawEnemyMonster(); UI.drawActiveMonster(); UI.drawActiveTechniques(); |