summaryrefslogtreecommitdiff
path: root/src/monster2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-06-22 07:42:43 +0200
committerBardur Arantsson <bardur@scientician.net>2016-06-22 07:42:43 +0200
commit3941b7834f0a038ed544e6ee96b9920d43db4c32 (patch)
tree4c0cb0d2a37105eb40b88608c9c9e18fc0d1dd5b /src/monster2.cc
parent3966bfb2f6836d13c1a93bfab1e9fa61ec4fff35 (diff)
Rework PR{1,2}_* flags to flag_set<>
Since there's no need for two tiers we also reduce the flag set to 1 tier. (Breaks savefile compatbility.)
Diffstat (limited to 'src/monster2.cc')
-rw-r--r--src/monster2.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/monster2.cc b/src/monster2.cc
index e5957770..7c05f9f6 100644
--- a/src/monster2.cc
+++ b/src/monster2.cc
@@ -31,6 +31,7 @@
#include "object_kind.hpp"
#include "object_type.hpp"
#include "options.hpp"
+#include "player_race_flag.hpp"
#include "player_type.hpp"
#include "randart.hpp"
#include "spells1.hpp"
@@ -1470,7 +1471,7 @@ static void sanity_blast(monster_type * m_ptr, bool_ necro)
}
/* Undead characters are 50% likely to be unaffected */
- if ((race_flags1_p(PR1_UNDEAD)) || (p_ptr->mimic_form == resolve_mimic_name("Vampire")))
+ if ((race_flags_p(PR_UNDEAD)) || (p_ptr->mimic_form == resolve_mimic_name("Vampire")))
{
if (randint(100) < (25 + (p_ptr->lev))) return;
}