github issue #934 - hearing unseem mon read scroll

Issue reported by Melon2007:  when non-deaf hero heard an unseen
monster read a scroll, the monster's type was identified accurately
(unless distorted by hallucination).  That was intentional but it
doesn't seem plausible for the hero's hearing to be that acute.
Change it to report the monster type accurately if not hallucinating
and monster is the same species as the hero (as the current form if
hero is poly'd), otherwise report it as "someone" when it's humanoid,
otherwise as "something".

Also, if the monster is heard at a spot that would be visible if
hero could see, draw a "remembered, unseen monster" glyph there.

Fixes #934
This commit is contained in:
PatR
2022-11-28 01:44:19 -08:00
parent 73f69a99cb
commit 223818ff41
3 changed files with 39 additions and 33 deletions

View File

@@ -2132,7 +2132,7 @@ ansimpleoname(struct obj* obj)
int otyp = obj->otyp;
/* prefix with "the" if a unique item, or a fake one imitating same,
has been formatted with its actual name (we let typename() handle
has been formatted with its actual name (we let minimal_xname() handle
any `known' and `dknown' checking necessary) */
if (otyp == FAKE_AMULET_OF_YENDOR)
otyp = AMULET_OF_YENDOR;