diff options
author | Aki <please@ignore.pl> | 2023-01-08 00:59:29 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-01-08 00:59:29 +0100 |
commit | 85e4741a6b39e436befacaf9778619696c9c5a33 (patch) | |
tree | 02c2f2c4b4d49711daac92a2aa772d3e2daea25b /sim/src/HitPoints.cpp | |
parent | 30865a57fb3f52607c14b9d210a256b3be3ddcb8 (diff) | |
download | kurator-85e4741a6b39e436befacaf9778619696c9c5a33.zip kurator-85e4741a6b39e436befacaf9778619696c9c5a33.tar.gz kurator-85e4741a6b39e436befacaf9778619696c9c5a33.tar.bz2 |
Renamed health to structure points where applicable
Diffstat (limited to 'sim/src/HitPoints.cpp')
-rw-r--r-- | sim/src/HitPoints.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |