Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-09-23 22:58:02 +0000
committerStijn Buys <ingar@osirion.org>2013-09-23 22:58:02 +0000
commit11b9c77a453c946bfa4963d8339bc748c9251f83 (patch)
treefeee860d3f2076776ccfedd3152cd413cfc16e50
parent562d8408a75dffbf92bc59ea1d153fb39eaa626f (diff)
Show projecile statistics in turret info.
-rw-r--r--src/game/base/weapon.cc11
1 files 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("");