summaryrefslogtreecommitdiff
path: root/src/game.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.hpp')
-rw-r--r--src/game.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/game.hpp b/src/game.hpp
index 03db8a45..b4894fd6 100644
--- a/src/game.hpp
+++ b/src/game.hpp
@@ -2,6 +2,8 @@
#include "game_fwd.hpp"
#include "grid.hpp"
+#include "h-basic.h"
+#include "player_defs.hpp"
#include "wilderness_map.hpp"
/**
@@ -9,11 +11,18 @@
*/
struct Game {
- /*
+ /**
* Wilderness map
*/
grid<wilderness_map> wilderness;
+ /**
+ * Player's un-adjusted HP at every level.
+ * Stored to avoid shenanigans with draininging levels
+ * and restoring them back, &c.
+ */
+ std::array<s16b, PY_MAX_LEVEL> player_hp { };
+
};
/**