B04007 unknown corpse type revealed by hider
"It was hidden under a green mold corpse! It bites!" Never seen corpse from a never seen monster can be revealed by the hider. -problem is that the corpse of the monster is always created with dknown set to 1 when make_corpse() finishes, even in the case where you never knew what it was while alive.
This commit is contained in:
@@ -254,6 +254,14 @@ register struct monst *mtmp;
|
||||
if (mtmp->mnamelth)
|
||||
obj = oname(obj, NAME(mtmp));
|
||||
|
||||
/* Avoid "It was hidden under a green mold corpse!"
|
||||
* during Blind combat. An unseen monster referred to as "it"
|
||||
* could be killed and leave a corpse. If a hider then hid
|
||||
* underneath it, you could be told the corpse type of a
|
||||
* monster that you never knew was there without this.
|
||||
*/
|
||||
if (Blind && !sensemon(mtmp)) obj->dknown = 0;
|
||||
|
||||
#ifdef INVISIBLE_OBJECTS
|
||||
/* Invisible monster ==> invisible corpse */
|
||||
obj->oinvis = mtmp->minvis;
|
||||
|
||||
Reference in New Issue
Block a user