]> granicus.if.org Git - nethack/commit
shattering monster's weapon stack
authornethack.rankin <nethack.rankin>
Thu, 30 Mar 2006 05:52:28 +0000 (05:52 +0000)
committernethack.rankin <nethack.rankin>
Thu, 30 Mar 2006 05:52:28 +0000 (05:52 +0000)
commitf94b832fc9c2b475516db64a4ad167926cf19a14
treeb0e9dd0c0fb99d77d070b8c4a0da29825c40f662
parent08e92802018e33ce9235410c0a2c343e0ff801b5
shattering monster's weapon stack

     Something I encountered while playing slash'em a while back, but
relevant to nethack:  "Its orcish spears shatter from the force of your
blow!".  I was using a two-handed weapon (at skilled or expert level) to
fight an invisible monster which was wielding a stack of multiple spears
(slash'em gives them out in groups of 3 for monsters' starting inventory).
After killing it, I found 2 orcish spears along with an invisible corpse
of somebody-or-other the Kobold King.  The message suggested that the
whole spear stack had been destroyed (and the weapon shattering code in
hmon_hitmon() clearly expects that to be the case), but only one of them
had actually gotten used up.

     I can't recall whether "shatter" was actually given as singular or
plural at the time; nethack handles that aspect correctly.  Only object
destruction needed tweaking.
doc/fixes34.4
include/extern.h
src/mthrowu.c
src/uhitm.c