summaryrefslogtreecommitdiff
path: root/sim/include
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-02-04 02:33:18 +0100
committerAki <please@ignore.pl>2023-02-04 02:33:18 +0100
commit9a456b0e0d2f5505ced3751a0bbfc10c2dd1d233 (patch)
treea04ee380db847328e20361fffae461a8a4467a69 /sim/include
parentfb1d3eda51cd9d89083130cf9932c7bde758756c (diff)
downloadkurator-9a456b0e0d2f5505ced3751a0bbfc10c2dd1d233.zip
kurator-9a456b0e0d2f5505ced3751a0bbfc10c2dd1d233.tar.gz
kurator-9a456b0e0d2f5505ced3751a0bbfc10c2dd1d233.tar.bz2
Ship types JSON now support base_*_resists entries
Diffstat (limited to 'sim/include')
-rw-r--r--sim/include/kurator/sim/HitPoints.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sim/include/kurator/sim/HitPoints.h b/sim/include/kurator/sim/HitPoints.h
index 0004999..7cd82f3 100644
--- a/sim/include/kurator/sim/HitPoints.h
+++ b/sim/include/kurator/sim/HitPoints.h
@@ -1,5 +1,7 @@
#pragma once
+#include <kurator/universe/ShipType.h>
+
namespace kurator
{
@@ -9,12 +11,12 @@ namespace sim
struct HitPoints
{
- HitPoints(double base_shield, double base_armour, double base_structure);
+ HitPoints(const universe::ShipType& def);
struct Layer
{
double points;
- double resists = 0.7;
+ double resists = 0.3;
double consume(double& damage);
};