diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-25 14:33:36 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-25 14:33:36 +0000 |
commit | e6cc066b99c74af0ab0002aa48e1e950035b7511 (patch) | |
tree | 8b80d66f33a395232ea353e87f6891f1f4d5e67c /crawl-ref/source/player.cc | |
parent | 3c1801de248398a54a01daa2d107c4bd2d00a2b1 (diff) | |
download | crawl-ref-e6cc066b99c74af0ab0002aa48e1e950035b7511.tar.gz crawl-ref-e6cc066b99c74af0ab0002aa48e1e950035b7511.zip |
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
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |