From e6cc066b99c74af0ab0002aa48e1e950035b7511 Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 25 Apr 2008 14:33:36 +0000 Subject: Fix specific references to vampires versus generic references to semi-undead. The latter are now only used for determining the following: whether the player can mutate, whether the player can rot, and how much the player resists Dispel Undead. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4621 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 3d213aa444..74ca17a0fa 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -5132,7 +5132,7 @@ bool rot_player( int amount ) return false; if (you.is_undead - && (you.species != SP_VAMPIRE || you.hunger_state < HS_SATIATED)) + && (you.is_undead != US_SEMI_UNDEAD || you.hunger_state < HS_SATIATED)) { mpr( "You feel terrible." ); return false; @@ -6131,8 +6131,8 @@ int player_mutation_level(mutation_type mut) if (mutation_is_fully_active(mut)) return (mlevel); - // For now, dynamic mutation only apply to vampires. - ASSERT(you.species == SP_VAMPIRE); + // For now, dynamic mutations only apply to semi-undead. + ASSERT(you.is_undead == US_SEMI_UNDEAD); // Assumption: stat mutations are physical, and thus always fully active. switch (you.hunger_state) @@ -6311,7 +6311,7 @@ void player::drain_stat(int stat, int amount, actor* attacker) void player::rot(actor *who, int rotlevel, int immed_rot) { if (you.is_undead - && (you.species != SP_VAMPIRE || you.hunger_state < HS_SATIATED)) + && (you.is_undead != US_SEMI_UNDEAD || you.hunger_state < HS_SATIATED)) { return; } -- cgit v1.2.3-54-g00ecf