crystal balls and '~'
<Someone> wrote: - You currently appear to be able to specify '~' and have it try to detect monsters (though it won't detect any long worms) Show the entire worm when specifying either '~' or 'w' now.
This commit is contained in:
10
src/detect.c
10
src/detect.c
@@ -597,9 +597,13 @@ int mclass; /* monster class, 0 for all */
|
||||
cls();
|
||||
for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) {
|
||||
if (DEADMONSTER(mtmp)) continue;
|
||||
if (!mclass || mtmp->data->mlet == mclass)
|
||||
if (mtmp->mx > 0)
|
||||
show_glyph(mtmp->mx,mtmp->my,mon_to_glyph(mtmp));
|
||||
if (!mclass || mtmp->data->mlet == mclass ||
|
||||
(mtmp->data == &mons[PM_LONG_WORM] && mclass == S_WORM_TAIL))
|
||||
if (mtmp->mx > 0) {
|
||||
show_glyph(mtmp->mx,mtmp->my,mon_to_glyph(mtmp));
|
||||
/* don't be stingy - display entire worm */
|
||||
if (mtmp->data == &mons[PM_LONG_WORM]) detect_wsegs(mtmp,0);
|
||||
}
|
||||
if (otmp && otmp->cursed &&
|
||||
(mtmp->msleeping || !mtmp->mcanmove)) {
|
||||
mtmp->msleeping = mtmp->mfrozen = 0;
|
||||
|
||||
Reference in New Issue
Block a user