summaryrefslogtreecommitdiff
path: root/sim/include
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-08 01:05:29 +0100
committerAki <please@ignore.pl>2023-01-08 01:05:29 +0100
commitfdd6d1a4e9191daf6c136cc1570bc69a6a9e264c (patch)
treebf8a5f005a4cf47a18b90bd20b7316aa35536d2e /sim/include
parent85e4741a6b39e436befacaf9778619696c9c5a33 (diff)
downloadkurator-fdd6d1a4e9191daf6c136cc1570bc69a6a9e264c.zip
kurator-fdd6d1a4e9191daf6c136cc1570bc69a6a9e264c.tar.gz
kurator-fdd6d1a4e9191daf6c136cc1570bc69a6a9e264c.tar.bz2
Added naive resists
Diffstat (limited to 'sim/include')
-rw-r--r--sim/include/kurator/sim/HitPoints.h3
1 files changed, 2 insertions, 1 deletions
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;
};