Mercurial > mm7
diff Player.h @ 1357:06926081358f
Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
author | Grumpy7 |
---|---|
date | Sat, 13 Jul 2013 16:15:35 +0200 |
parents | af2fc30d765f |
children | b3ac17fd12de |
line wrap: on
line diff
--- a/Player.h Sat Jul 13 16:05:24 2013 +0200 +++ b/Player.h Sat Jul 13 16:15:35 2013 +0200 @@ -620,6 +620,15 @@ inline void SetPertified(bool state) {pConditions[Condition_Pertified] = state;} inline void SetEradicated(bool state) {pConditions[Condition_Eradicated] = state;} inline void SetZombie(bool state) {pConditions[Condition_Zombie] = state;} + + inline bool IsRaceHuman() {return GetRace() == CHARACTER_RACE_HUMAN;} + inline bool IsRaceDwarf() {return GetRace() == CHARACTER_RACE_DWARF;} + inline bool IsRaceElf() {return GetRace() == CHARACTER_RACE_ELF;} + inline bool IsRaceGoblin() {return GetRace() == CHARACTER_RACE_GOBLIN;} + + inline bool IsMale() { return GetSexByVoice() == SEX_MALE;} + inline bool IsFemale() { return !IsMale();} + __int64 pConditions[20]; unsigned __int64 uExperience; char pName[16];