summaryrefslogtreecommitdiff
path: root/kurator
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-27 22:37:21 +0100
committerAki <please@ignore.pl>2023-01-27 22:37:21 +0100
commit161f92d0cf6982e605a7ec1be6eb19dc60951c45 (patch)
tree213afac48f03f006ade9aa67fc33fc28a4460228 /kurator
parent25c604f1f2e50ea2cbabf3c5f9147dd57fd9dd44 (diff)
downloadkurator-161f92d0cf6982e605a7ec1be6eb19dc60951c45.zip
kurator-161f92d0cf6982e605a7ec1be6eb19dc60951c45.tar.gz
kurator-161f92d0cf6982e605a7ec1be6eb19dc60951c45.tar.bz2
Added damage per second to weapons tooltips
Diffstat (limited to 'kurator')
-rw-r--r--kurator/src/ScenarioEditor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kurator/src/ScenarioEditor.cpp b/kurator/src/ScenarioEditor.cpp
index b573d54..b9d3ada 100644
--- a/kurator/src/ScenarioEditor.cpp
+++ b/kurator/src/ScenarioEditor.cpp
@@ -154,7 +154,8 @@ loadout_editor(std::shared_ptr<universe::Repository> repo, campaign::Loadout& lo
}
if (ImGui::IsItemHovered()) {
ImGui::BeginTooltip();
- ImGui::Text("Damage: %.0f", type.base_damage);
+ ImGui::Text("Base Damage: %.0f", type.base_damage);
+ ImGui::Text("DPS: %.1f", type.damage_per_second());
ImGui::Text("RoF: %.1fs", type.rate_of_fire);
ImGui::Text("Reload: %.1fs", type.reload);
ImGui::Text("Rounds: %d", type.rounds);