const item = equipment.get(target);
item.currentAp -= monster.strength;
if(item.currentAp < 0) {
- roundData.roundDetails.push(`Your ${item.name} was destroyed so they hit your directly for ${monster.strength} damage!`);
+ roundData.roundDetails.push(`Your ${item.name} amour was destroyed`);
+ roundData.roundDetails.push(`The ${monster.name} hit your HP for ${item.currentAp * -1} damage!`);
player.hp += item.currentAp;
item.currentAp = 0;
await deleteInventoryItem(player.id, item.item_id);
player.hp = 0;
roundData.winner = 'monster';
+ roundData.roundDetails.push(`You were killed by the ${monster.name}`);
+
await clearFight(player.id);
await updatePlayer(player);