From fdd6d1a4e9191daf6c136cc1570bc69a6a9e264c Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 8 Jan 2023 01:05:29 +0100 Subject: Added naive resists --- sim/include/kurator/sim/HitPoints.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sim/include') diff --git a/sim/include/kurator/sim/HitPoints.h b/sim/include/kurator/sim/HitPoints.h index d63620d..b9a8523 100644 --- a/sim/include/kurator/sim/HitPoints.h +++ b/sim/include/kurator/sim/HitPoints.h @@ -10,7 +10,8 @@ namespace sim struct HitPoints { double structure; - void deal(double damage); + double structure_resists = 0.7; + double deal(double damage); bool is_alive() const; double total() const; }; -- cgit v1.1