From d5968daee172a5cbe5d3e35807b66e6e7a167783 Mon Sep 17 00:00:00 2001 From: dolorous Date: Wed, 23 Apr 2008 16:53:23 +0000 Subject: Add more minor cosmetic fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4549 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 2277fff151..864a4f798e 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -1291,7 +1291,7 @@ int player_res_cold(bool calc_unid) { if (you.hunger_state <= HS_NEAR_STARVING) rc += 2; - else if (you.hunger_state <= HS_HUNGRY) + else if (you.hunger_state < HS_SATIATED) rc++; } @@ -1473,7 +1473,7 @@ int player_res_poison(bool calc_unid, bool temp) int rp = 0; // only thirsty vampires are naturally poison resistant - if (you.species == SP_VAMPIRE && you.hunger_state <= HS_HUNGRY) + if (you.species == SP_VAMPIRE && you.hunger_state < HS_SATIATED) rp++; /* rings of poison resistance */ @@ -1550,8 +1550,8 @@ int player_spec_death() } else if (you.species == SP_VAMPIRE) { - // Vampires get bonus only when hungry - if (you.experience_level >= 13 && you.hunger_state <= HS_HUNGRY) + // Vampires get bonus only when thirsty + if (you.experience_level >= 13 && you.hunger_state < HS_SATIATED) sd++; } @@ -3086,7 +3086,7 @@ void level_change(bool skip_attribute_increase) { mprf( MSGCH_INTRINSIC_GAIN, "You feel %sin touch with the powers of death.", - (you.hunger_state <= HS_HUNGRY ? "" : "strangely ")); + (you.hunger_state < HS_SATIATED ? "" : "strangely ")); } break; case SP_NAGA: @@ -3508,7 +3508,7 @@ int check_stealth(void) stealth += (you.skills[SK_STEALTH] * 12); break; case SP_VAMPIRE: - // Hungry/bat-form vampires are (much) more stealthy + // Thirsty/bat-form vampires are (much) more stealthy if (you.hunger_state == HS_STARVING) stealth += (you.skills[SK_STEALTH] * 21); else if (you.attribute[ATTR_TRANSFORMATION] == TRAN_BAT @@ -3516,7 +3516,7 @@ int check_stealth(void) { stealth += (you.skills[SK_STEALTH] * 20); } - else if (you.hunger_state <= HS_HUNGRY) + else if (you.hunger_state < HS_SATIATED) stealth += (you.skills[SK_STEALTH] * 19); else stealth += (you.skills[SK_STEALTH] * 18); @@ -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_HUNGRY)) + && (you.species != SP_VAMPIRE || you.hunger_state < HS_SATIATED)) { return; } -- cgit v1.2.3-54-g00ecf