summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-18 10:50:12 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-18 10:50:12 +0000
commita7c16941b77fcdcc841c3edbcd0514c16ac4c2e5 (patch)
treee3fddfcf268b8dba46eb242b328b051cf3578faf /crawl-ref/source/player.cc
parent70eeeeec718a95bee1845c48545577551b2abbb7 (diff)
downloadcrawl-ref-a7c16941b77fcdcc841c3edbcd0514c16ac4c2e5.tar.gz
crawl-ref-a7c16941b77fcdcc841c3edbcd0514c16ac4c2e5.zip
Fix tiles compile (in a hacky way, since I don't know what the mp/hp
bar change was really about). Modify mutations screen for Vampires to allow a toggle to a second page that lists all those resistances and stuff depending on their blood level. The screen (designed by David) is really neat, but the underlying could stand to be improved, and it might be too large, as well. Also restrict Sublimation of Blood to Vampires that are at least Full, and it also makes them a bit more thirsty (since they presumably lose blood when using it). Dispel Undead only does half damage to Vampires at Alive, and 66% damage at Full or Very Full. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4325 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index c06ff1a2d9..35aae6c6e9 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3514,10 +3514,12 @@ int check_stealth(void)
if (you.hunger_state <= HS_STARVING)
stealth += (you.skills[SK_STEALTH] * 21);
else if (you.attribute[ATTR_TRANSFORMATION] == TRAN_BAT
- || you.hunger_state <= HS_HUNGRY)
+ || you.hunger_state <= HS_NEAR_STARVING)
{
stealth += (you.skills[SK_STEALTH] * 20);
}
+ else if (you.hunger_state <= HS_HUNGRY)
+ stealth += (you.skills[SK_STEALTH] * 19);
else
stealth += (you.skills[SK_STEALTH] * 18);
break;