diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-22 09:34:37 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-22 09:34:37 +0000 |
commit | 5eeb46e53790c89bed3c90527f765c40d25bf737 (patch) | |
tree | c74fd8510d63faf85547bd44543beca91b359d27 /crawl-ref/source/player.cc | |
parent | 6f33d4ae99cf5fe3eb0e5be1ec213ac642c6e2ff (diff) | |
download | crawl-ref-5eeb46e53790c89bed3c90527f765c40d25bf737.tar.gz crawl-ref-5eeb46e53790c89bed3c90527f765c40d25bf737.zip |
Non-vampires were getting the vampire hungriness stealth bonus, fixed
(dolorous, 1756994)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1908 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 7458104d64..187ec76140 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -2945,19 +2945,21 @@ int check_stealth(void) case SP_MINOTAUR: stealth += (you.skills[SK_STEALTH] * 12); break; - case SP_GNOME: - case SP_HALFLING: - case SP_KOBOLD: - case SP_SPRIGGAN: - case SP_NAGA: // not small but very good at stealth case SP_VAMPIRE: if (you.attribute[ATTR_TRANSFORMATION] == TRAN_BAT || you.hunger_state <= HS_HUNGRY) { - // Hungry vampires are more stealthy + // Hungry/batty vampires are more stealthy stealth += (you.skills[SK_STEALTH] * 19); - break; } + else + stealth += (you.skills[SK_STEALTH * 18]); + break; + case SP_GNOME: + case SP_HALFLING: + case SP_KOBOLD: + case SP_SPRIGGAN: + case SP_NAGA: // not small but very good at stealth stealth += (you.skills[SK_STEALTH] * 18); break; default: |