summaryrefslogtreecommitdiff
path: root/src/player_race_mod.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
commitdaf23851092099647a3830aa1c0cf12962f55b8e (patch)
tree15e236b093913f2f7e686af82d883f7419ee9e37 /src/player_race_mod.hpp
parentcc857c940cfe1bfe8d78674dbce53e5b71acaf41 (diff)
Move 'player_*' shared fields to new 'player_shared' struct
Diffstat (limited to 'src/player_race_mod.hpp')
-rw-r--r--src/player_race_mod.hpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/player_race_mod.hpp b/src/player_race_mod.hpp
index 60558d24..8eb984b7 100644
--- a/src/player_race_mod.hpp
+++ b/src/player_race_mod.hpp
@@ -8,6 +8,7 @@
#include "player_level_flag.hpp"
#include "player_race_ability_type.hpp"
#include "player_race_flag_set.hpp"
+#include "player_shared.hpp"
#include "skill_modifiers.hpp"
#include "skills_defs.hpp"
@@ -22,13 +23,10 @@ struct player_race_mod
bool_ place = FALSE; /* TRUE = race race modifier, FALSE = Race modifier race */
- s16b r_adj[6] { }; /* (+) Racial stat bonuses */
-
char luck = '\0'; /* Luck */
s16b mana = 0; /* Mana % */
- char r_mhp = 0; /* (+) Race mod hit-dice modifier */
- s16b r_exp = 0; /* (+) Race mod experience factor */
+ player_shared ps;
char infra = '\0'; /* (+) Infra-vision range */
@@ -37,8 +35,6 @@ struct player_race_mod
u32b pclass[2] { }; /* Classes allowed */
u32b mclass[2] { }; /* Classes restricted */
- s16b powers[4] { }; /* Powers of the subrace */
-
char body_parts[BODY_MAX] { }; /* To help to decide what to use when body changing */
player_race_flag_set flags;
@@ -54,4 +50,3 @@ struct player_race_mod
std::vector<player_race_ability_type> abilities; /* Abilities to be gained by level; ignores prereqs */
};
-