From e4c1104b772b1f093e1c8230dd5f1cb62253a7a3 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Sat, 7 Nov 2009 18:31:25 +0100 Subject: Remove extra hunger from rings of regeration when you're at full hp. Increase the hunger when the rings work to compensate. --- crawl-ref/source/player.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 9cf2e879fa..2316dc266d 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -1140,7 +1140,7 @@ int player_hunger_rate(void) if (you.species == SP_TROLL) hunger += 3; // in addition to the +3 for fast metabolism - if (you.duration[DUR_REGENERATION]) + if (you.duration[DUR_REGENERATION] && you.hp < you.hp_max) hunger += 4; // If Cheibriados has slowed your life processes, there's a @@ -1198,7 +1198,8 @@ int player_hunger_rate(void) } // rings - hunger += 2 * player_equip( EQ_RINGS, RING_REGENERATION ); + if (you.hp < you.hp_max) + hunger += 3 * player_equip( EQ_RINGS, RING_REGENERATION ); hunger += 4 * player_equip( EQ_RINGS, RING_HUNGER ); hunger -= 2 * player_equip( EQ_RINGS, RING_SUSTENANCE ); @@ -1215,7 +1216,7 @@ int player_hunger_rate(void) } // troll leather armour - if (you.species != SP_TROLL) + if (you.species != SP_TROLL && you.hp < you.hp_max) hunger += player_equip( EQ_BODY_ARMOUR, ARM_TROLL_LEATHER_ARMOUR ); // randarts -- cgit v1.2.3-54-g00ecf