diff --git a/src/modules/game/game.ts b/src/modules/game/game.ts index 495a904..31eb125 100644 --- a/src/modules/game/game.ts +++ b/src/modules/game/game.ts @@ -113,7 +113,7 @@ const onStatus = (_text: string, roomId: string, sender: string) => {
  • Race: ${race.name}
  • Location: ${location.name}
  • Level: ${level.level} - ${level.experienceInLevel}/${level.experienceToNextLevel} exp
  • -
  • Health: ${entity.health}/${getMaxHealth(entity)} (${getHealthPercentage(entity)}%)
  • +
  • Health: ${entity.health.toFixed(0)}/${getMaxHealth(entity)} (${getHealthPercentage(entity).toFixed(0)}%)
  • Vitality: ${entity.vitality}
  • Strength: ${entity.strength}
  • Endurance: ${entity.endurance}
  • @@ -143,7 +143,7 @@ const onInventory = (text: string, roomId: string, sender: string) => { const totalStats = getTotalStats(item); const mapDamage = (stat: IStat): string => { - return `
  • Damage type: ${stat.damageType}
  • Damage: ${stat.damage}
  • `; + return `
  • Damage type: ${stat.damageType}
  • Damage: ${stat.damage.toFixed(0)}
  • `; }; const mapAbility = (stat: IStat): string => { @@ -160,8 +160,8 @@ const onInventory = (text: string, roomId: string, sender: string) => {
  • Value: ${item.value}
  • Type: ${item.type}
  • Rarity: ${item.rarity}
  • -
  • Total damage: ${totalStats.damage}
  • -
  • Total defence: ${totalStats.defense}
  • +
  • Total damage: ${totalStats.damage.toFixed(0)}
  • +
  • Total defence: ${totalStats.defense.toFixed(0)}
  • Damage: