diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-28 18:57:20 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-28 18:57:20 +0000 |
commit | b578218b05ae153f3425278bedbb8efca48e259e (patch) | |
tree | a8af5dd35615281510b5b2d695f54160e9b4048c /crawl-ref/source/newgame.cc | |
parent | 8b8f4a7e0af566887a0f5e09b5ac90cf0e45fb1b (diff) | |
download | crawl-ref-b578218b05ae153f3425278bedbb8efca48e259e.tar.gz crawl-ref-b578218b05ae153f3425278bedbb8efca48e259e.zip |
Add various undead-related fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4754 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r-- | crawl-ref/source/newgame.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index 1bab685ef9..07880814c4 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -1090,7 +1090,7 @@ static bool _species_is_undead( const species_type speci ) return (speci == SP_MUMMY || speci == SP_GHOUL || speci == SP_VAMPIRE); } -static undead_state_type _get_undead_state(const species_type sp) +undead_state_type get_undead_state(const species_type sp) { switch(sp) { @@ -1208,7 +1208,7 @@ game_start: _species_stat_init( you.species ); // must be down here {dlb} - you.is_undead = _get_undead_state(you.species); + you.is_undead = get_undead_state(you.species); // before we get into the inventory init, set light radius based // on species vision. currently, all species see out to 8 squares. @@ -2737,8 +2737,9 @@ static void _give_random_potion( int slot ) you.inv[ slot ].plus = 0; you.inv[ slot ].plus2 = 0; + // no Berserk for undead other than vampires int temp_rand = 8; - if (you.is_undead) // no Berserk for undeads + if (you.is_undead && you.species != SP_VAMPIRE) temp_rand--; switch (random2(temp_rand)) |