summaryrefslogtreecommitdiff
path: root/src/player_type.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commit4f1abfbf1a70f4dcc4e360a68b71b27e867d561d (patch)
treeab35f6ec61730c74b7e16cc055cd4dc3954710d6 /src/player_type.hpp
parentd9d9d8c5e96eadbefb2c8506a387fc282c2fe8b5 (diff)
Split "inscription known" game state from inscription definitions
Diffstat (limited to 'src/player_type.hpp')
-rw-r--r--src/player_type.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/player_type.hpp b/src/player_type.hpp
index 8f3c06dc..20fa81a4 100644
--- a/src/player_type.hpp
+++ b/src/player_type.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "corrupt.hpp"
+#include "defines.h"
#include "h-basic.h"
#include "help_info.hpp"
#include "inventory.hpp"
@@ -381,6 +382,9 @@ struct player_type
/* Acquired abilities; indexes into ab_info[] */
std::vector<u16b> abilities;
+ /* Known inscriptions; true if known, false otherwise. */
+ std::array<bool, MAX_INSCRIPTIONS> inscriptions;
+
/* Skills */
s16b skill_points = 0;
s16b skill_last_level = 0; /* Prevents gaining skills by losing level and regaining them */