fixes entry and a display effect related to is_hider wishing

This commit is contained in:
nhmall
2019-06-08 22:40:51 -04:00
parent 15fa1f0ac7
commit ea9a385d67
2 changed files with 15 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ thrown or kicked light source (lit lamp, candle, oil) should emit light as it
unlike watching a monster trying to swap out a cursed weapon for some other
weapon and failing, watching it wield a cursed weapon didn't report
that weapon becoming welded to the monster's hand/claw/whatever
debug mode wishing for hidden monsters that pass is_hider test
Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository

View File

@@ -2579,7 +2579,20 @@ struct _create_particular_data *d;
if (d->sleeping)
mtmp->msleeping = 1;
if (d->hidden && is_hider(mtmp->data)) {
mtmp->mundetected = 1;
if (wizard && cansee(mtmp->mx, mtmp->my)) {
int i, glyph[2];
glyph[0] = glyph_at(mtmp->mx, mtmp->my);
mtmp->mundetected = 1;
newsym(mtmp->mx, mtmp->my);
glyph[1] = glyph_at(mtmp->mx, mtmp->my);
if (!canseemon(mtmp) && !sensemon(mtmp))
for (i = 0; i < 15; i++) {
show_glyph(mtmp->mx, mtmp->my, glyph[i % 2]);
flush_screen(1);
delay_output();
}
}
newsym(mtmp->mx, mtmp->my);
}
madeany = TRUE;