From a7cf1b9a69b32a88047c3e9fb93bc02a9ca5840d Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 18 Nov 2009 12:34:35 -0600 Subject: Clean up rotting resistance checks, as they're effectively boolean. --- 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 be27606499..0900f1bae6 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6441,8 +6441,8 @@ int player::res_poison() const int player::res_rotting() const { - if (this->is_undead - && (this->is_undead != US_SEMI_UNDEAD || this->hunger_state < HS_SATIATED)) + if (is_undead + && (is_undead != US_SEMI_UNDEAD || hunger_state < HS_SATIATED)) { return (1); } @@ -6683,7 +6683,7 @@ bool player::rot(actor *who, int amount, int immediate, bool quiet) if (amount <= 0) return (false); - if (this->res_rotting()) + if (res_rotting()) { mpr("You feel terrible."); return (false); @@ -6802,7 +6802,7 @@ bool player::sicken(int amount) { ASSERT(!crawl_state.arena); - if (this->res_rotting() || amount <= 0) + if (res_rotting() || amount <= 0) return (false); mpr( "You feel ill." ); -- cgit v1.2.3-54-g00ecf