From 85e4741a6b39e436befacaf9778619696c9c5a33 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 8 Jan 2023 00:59:29 +0100 Subject: Renamed health to structure points where applicable --- sim/src/HitPoints.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sim/src/HitPoints.cpp') diff --git a/sim/src/HitPoints.cpp b/sim/src/HitPoints.cpp index 28cf7f7..bcb7e97 100644 --- a/sim/src/HitPoints.cpp +++ b/sim/src/HitPoints.cpp @@ -10,21 +10,21 @@ namespace sim void HitPoints::deal(double damage) { - health -= damage; + structure -= damage; } bool HitPoints::is_alive() const { - return health > 0.0; + return structure > 0.0; } double HitPoints::total() const { - return health; + return structure; } -- cgit v1.1