]> granicus.if.org Git - nethack/commit
more monster key use
authornethack.rankin <nethack.rankin>
Thu, 20 Oct 2005 03:58:46 +0000 (03:58 +0000)
committernethack.rankin <nethack.rankin>
Thu, 20 Oct 2005 03:58:46 +0000 (03:58 +0000)
commit74f08dcb224c063dfc71d2e501e6c5ac30fe3714
tree442d25b458ead03f7e3b4b1aa8ad93d722cd6098
parent213e3e4d00f49a332855fdde50c97e81f93a8f00
more monster key use

     Let monsters use lock picks and credit cards in addition to keys for
opening doors.  And the earlier code to have pets hang on to a key didn't
work as intended.  It worked fine if the key was the only object carried,
but the monsters' item dropping code didn't give any special handling to
keys so they'd be dropped too if the pet carried another droppable item.
This eliminates second set of checks for handling some items specially--
dropping now uses the same routine as is used when pet movement decides
whether there's anything to drop.

     Also, a couple more door message tweaks.  "You see a door open" seems
strange when you watch your pet do the opening.  Previously fixed for the
"unlock and open" case, this does the same for opening already unlocked
doors and for giants smashing down doors--it now gives a more specific
message when you see a monster perform the action.

     Possible change in play balance:  pets capable of picking up the
rogue's Master Key of Thievery or tourist's Platinum Yendorian Express
Card will keep one of them.  So a player might accidentally lose one by
leaving it on the floor in a pet's path, or more significantly, the Card
will yield a means of giving magic resistance to a monster who can't wear
a cloak or dragon scales.  It's neutral and the most interesting high-end
pets are lawful (hence won't pick it up), so that probably won't have much
impact.
include/extern.h
src/dogmove.c
src/monmove.c
src/steal.c