| 2487 | } |
| 2488 | |
| 2489 | int |
| 2490 | altarmask_at(coordxy x, coordxy y) |
| 2491 | { |
| 2492 | int res = 0; |
| 2493 | |
| 2494 | if (isok(x, y)) { |
| 2495 | struct monst *mon = m_at(x, y); |
| 2496 | |
| 2497 | if (mon && M_AP_TYPE(mon) == M_AP_FURNITURE |
| 2498 | && mon->mappearance == S_altar) |
| 2499 | res = has_mcorpsenm(mon) ? MCORPSENM(mon) : 0; |
| 2500 | else if (IS_ALTAR(levl[x][y].typ)) |
| 2501 | res = levl[x][y].altarmask; |
| 2502 | } |
| 2503 | return res; |
| 2504 | } |
| 2505 | |
| 2506 | const char * |
| 2507 | a_gname(void) |
no test coverage detected