summaryrefslogtreecommitdiff
path: root/universe/src
diff options
context:
space:
mode:
Diffstat (limited to 'universe/src')
-rw-r--r--universe/src/TurretType.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/universe/src/TurretType.cpp b/universe/src/TurretType.cpp
index b6e006d..78887d7 100644
--- a/universe/src/TurretType.cpp
+++ b/universe/src/TurretType.cpp
@@ -28,5 +28,12 @@ TurretType::effective_range() const
}
+double
+TurretType::damage_per_second() const
+{
+ return (base_damage * rounds) / (rounds * rate_of_fire + reload);
+}
+
+
} // namespace universe
} // namespace kurator