fix #K3440/github issue #586 - losing object info

when an unseen monster picks up an item that the hero knows some
things about.  That's intentional, but vision is turned off while
engulfed so throwing or dropping something while swallowed always
treated it as being handled by an unseen monster.

If hero is swallowed or held by a monster or poly'd and holding a
monster, behave as it the monster can 'seen' by touch when items are
added to its inventory.

Closes #586
This commit is contained in:
PatR
2021-09-07 17:50:50 -07:00
parent 56dfa5a749
commit dc3f1447c7
2 changed files with 6 additions and 2 deletions

View File

@@ -800,6 +800,8 @@ if hero died while wearing gold dragon scales/mail and left bones, they would
still be emitting light witout being worn when bones got loaded
if an invisible monster put on or took off armor while out of hero's sight
spurious message "Suddenly you cannot see it" would be given
an item thrown or dropped while swallowed was treated as being picked up by an
unseen monster so object fields {known, dknown, bknown} got cleared
curses: 'msg_window' option wasn't functional for curses unless the binary
also included tty support