| 651 | } |
| 652 | |
| 653 | int |
| 654 | warning_of(struct monst *mon) |
| 655 | { |
| 656 | int wl = 0, tmp = 0; |
| 657 | |
| 658 | if (mon_warning(mon)) { |
| 659 | tmp = (int) (mon->m_lev / 4); /* match display.h */ |
| 660 | wl = (tmp > WARNCOUNT - 1) ? WARNCOUNT - 1 : tmp; |
| 661 | } |
| 662 | return wl; |
| 663 | } |
| 664 | |
| 665 | /* used by newsym() to decide whether to show a monster or a visible gas |
| 666 | cloud region when both are at the same spot; caller deals with region */ |
no test coverage detected