]> granicus.if.org Git - nethack/commit
fix the "big abuse" reported a few days ago
authornethack.rankin <nethack.rankin>
Sat, 6 Dec 2003 14:08:51 +0000 (14:08 +0000)
committernethack.rankin <nethack.rankin>
Sat, 6 Dec 2003 14:08:51 +0000 (14:08 +0000)
commit2e28abcd5aca6f13bc1d3b6e9ec956d824d8ddfd
tree134ae5fc44cb34efa0fe23c8c826c3bf3a4c4b47
parent3b2b16ea9d87c71b5b5775810b4aed62153cf0bd
fix the "big abuse" reported a few days ago

     It was possible to get a shopkeeper to carry the Amulet from the
bottom of the dungeon up to the location of his shop, thereby bypassing
the usual labor of lugging it up yourself.  [Drop the Amulet somewhere;
rob a shop so that the Kops are summoned and the shk comes after you;
when shk is next you, level teleport to the Amulet (probably two hops,
one to the Valley and another deeper into Gehennom); walk to the vicinity
of the Amulet; shk will eventually pick it up (shopkeepers like to pick
up magic items); now, pay him for the stolen goods--he'll be pacified
and migrate back to his shop, taking his inventory with him; lastly,
return to his shop and relieve him of his burder.]  This patch makes
shopkeepers drop the Amulet or invocation tools if/when they set set to
migrate to their normal location.

     Also fix another long standing risk that a monster that is sent
away (nurse when healing, Kops when you pacify a shopkeeper) might be
carrying the Amulet or one of the invocation tools and make the game
unwinnable.  I doubt that that's ever actually happened but I think it'd
be possible if a monster that likes magic items ever got polymorphed
into a Kop.  Such dismissed monsters will now drop the same stuff as
the shk above prior to leaving the game.
doc/fixes34.3
include/extern.h
src/mon.c
src/shk.c
src/steal.c