extracted from monster_detection() so can be shared by do_vicinity_map() */
| 119 | |
| 120 | /* extracted from monster_detection() so can be shared by do_vicinity_map() */ |
| 121 | staticfn void |
| 122 | map_monst(struct monst *mtmp, boolean showtail) |
| 123 | { |
| 124 | int glyph = (monsym(mtmp->data) == ' ') |
| 125 | ? detected_mon_to_glyph(mtmp, newsym_rn2) |
| 126 | : mtmp->mtame |
| 127 | ? pet_to_glyph(mtmp, newsym_rn2) |
| 128 | : mon_to_glyph(mtmp, newsym_rn2); |
| 129 | |
| 130 | show_glyph(mtmp->mx, mtmp->my, glyph); |
| 131 | |
| 132 | if (showtail && mtmp->data == &mons[PM_LONG_WORM]) |
| 133 | detect_wsegs(mtmp, 0); |
| 134 | } |
| 135 | |
| 136 | /* this is checking whether a trap symbol represents a trapped chest, |
| 137 | not whether a trapped chest is actually present */ |
no test coverage detected