diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 18:35:17 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 18:35:17 +0000 |
commit | c8900f370bd9fa411032c36ed33679f0543f9e34 (patch) | |
tree | b39a0c7de47e81cf04e3d3b51c61487047c2cba5 /crawl-ref/source/libgui.cc | |
parent | 22cf9f4f68bfcf14d426dd8d3cd4d66e69c3b097 (diff) | |
download | crawl-ref-c8900f370bd9fa411032c36ed33679f0543f9e34.tar.gz crawl-ref-c8900f370bd9fa411032c36ed33679f0543f9e34.zip |
Add miscellaneous undead-related fixes. When changing species to
vampire in wizard mode, set you.is_undead to the proper value; check for
you.is_undead's being US_UNDEAD when determining if a species can eat,
instead of checking for the mummy species directly; and display the "if
you weren't so full, you could turn into a bat" message for vampires
that gain the ability when at least full, instead of only when satiated,
since it won't work in the former case.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4476 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libgui.cc')
-rw-r--r-- | crawl-ref/source/libgui.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc index 762820e5d1..5e8895d515 100644 --- a/crawl-ref/source/libgui.cc +++ b/crawl-ref/source/libgui.cc @@ -1353,8 +1353,8 @@ static int _handle_mouse_motion(int mouse_x, int mouse_y, bool init) desc += EOL "[Shift-R-Click] Drink blood (e)"; } else if (item.base_type == OBJ_FOOD - && you.species != SP_VAMPIRE - && you.species != SP_MUMMY) + && you.is_undead != US_UNDEAD + && you.species != SP_VAMPIRE) { desc += EOL "[Shift-R-Click] Eat (e)"; } |