MCPcopy Create free account
hub / github.com/NetHack/NetHack / altarmask_at

Function altarmask_at

src/pray.c:2489–2504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2487}
2488
2489int
2490altarmask_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
2506const char *
2507a_gname(void)

Callers 4

dig_checkFunction · 0.85
do_earthquakeFunction · 0.85
count_feat_lastseentypFunction · 0.85
lookatFunction · 0.85

Calls 1

isokFunction · 0.85

Tested by

no test coverage detected