diff options
author | Aki <please@ignore.pl> | 2023-01-27 22:37:21 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-01-27 22:37:21 +0100 |
commit | 161f92d0cf6982e605a7ec1be6eb19dc60951c45 (patch) | |
tree | 213afac48f03f006ade9aa67fc33fc28a4460228 /universe/src | |
parent | 25c604f1f2e50ea2cbabf3c5f9147dd57fd9dd44 (diff) | |
download | kurator-161f92d0cf6982e605a7ec1be6eb19dc60951c45.zip kurator-161f92d0cf6982e605a7ec1be6eb19dc60951c45.tar.gz kurator-161f92d0cf6982e605a7ec1be6eb19dc60951c45.tar.bz2 |
Added damage per second to weapons tooltips
Diffstat (limited to 'universe/src')
-rw-r--r-- | universe/src/TurretType.cpp | 7 |
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 |