]> granicus.if.org Git - nethack/commit
B01003 - blindfold vs dust vortex
authorcohrs <cohrs>
Wed, 26 Mar 2003 05:10:22 +0000 (05:10 +0000)
committercohrs <cohrs>
Wed, 26 Mar 2003 05:10:22 +0000 (05:10 +0000)
commit345ffcfaece818e14c10079c6d7cebc8a4cddbf6
treea5303d86aa34eb4b75e13782bcd40c9498c6f6c3
parent39befe07fdee40784e2fcaad5e3422562638a628
B01003 - blindfold vs dust vortex
This started out as a change to address the strange sequence of messages if
you remove a blindfold while engulfed in a dust vortex.  That is addressed
by a new function that can be called in such situations.  Calls to this
function were added in all the cases where the can_blnd() engulfing
conditions end as a result of player action.  There are some other cases
that end ucreamed or usleep, but they happen between turns and shouldn't
need extra handling.

While I was at it, I noticed that a unicorn horn or prayer would cure
blindness even while engulfed in a dust vortex.  This is useless, because
you immediately get blind again the next turn.  So, I added checks to avoid
doing this.  Finally, it didn't make sense for eating a carrot to cure your
blindness in these situations either, only for it to return immediately.
doc/fixes35.0
include/extern.h
src/apply.c
src/do.c
src/do_wear.c
src/eat.c
src/mhitu.c
src/pray.c