From 11b9c77a453c946bfa4963d8339bc748c9251f83 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 23 Sep 2013 22:58:02 +0000 Subject: Show projecile statistics in turret info. --- src/game/base/weapon.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/game/base/weapon.cc b/src/game/base/weapon.cc index 5e94784..416b4c3 100644 --- a/src/game/base/weapon.cc +++ b/src/game/base/weapon.cc @@ -312,10 +312,11 @@ void Weapon::generate_info() str << "volume: ^B" << volume() << " ^Ncubic meter"; add_line(str.str()); str.str(""); + + add_line(""); - if (subtype() == Cannon) { - add_line(""); - add_line("^BProjectiles:^N"); + if ((subtype() == Cannon) || (subtype() == Turret)) { + str << "damage: ^B" << damage() << "^N"; add_line(str.str()); str.str(""); @@ -324,11 +325,11 @@ void Weapon::generate_info() add_line(str.str()); str.str(""); - str << "speed: ^B" << floor(projectile_speed()) * 100.0f << " ^Nm/sec"; + str << "speed: ^B" << floor(projectile_speed()) * 100.0f << " ^Nmeter/sec"; add_line(str.str()); str.str(""); - str << "interval: ^B" << projectile_interval() << " ^Nms"; + str << "fire rate: ^B" << "1/" << projectile_interval() << " ^Nmilliseconds"; add_line(str.str()); str.str(""); -- cgit v1.2.3