fix github issue #1220 - shattering unseen weapon

Reported by NetSysFire:  if hero dealt a weapon-shattering melee
blow to an unseen target, the weapon was accurately described in
the accompanying message
|Its <formatted-weapon-description> is shattered from the force...!

If the hero can't see or sense the monster, report
|Its weapon is shattered from the force of your blow!

If the monster isn't seen but is sensed, then
|<Monster>'s weapon is shattered from the force of your blow!

Fixes #1220
This commit is contained in:
PatR
2024-03-26 13:29:29 -07:00
parent fddc966a3e
commit 18baf188ea
2 changed files with 20 additions and 4 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1402 $ $NHDT-Date: 1711034372 2024/03/21 15:19:32 $
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1407 $ $NHDT-Date: 1711484961 2024/03/26 20:29:21 $
General Fixes and Modified Features
-----------------------------------
@@ -1384,6 +1384,8 @@ using '#adjust c d' or '#adjust d c' after splitting slot c via '#adjust Nc d'
that caused this was intended to avoid collecting other compatible
stacks while still merging the two specified ones)
ring of aggravate monster increases the level difficulty
if hero shattered an unseen monster's weapon, the [also unseen] weapon was
described in the feedback
Fixes to 3.7.0-x General Problems Exposed Via git Repository