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

Function disturb_grave

src/engrave.c:1706–1721  ·  view source on GitHub ↗

called when kicking or engraving on a grave's headstone */

Source from the content-addressed store, hash-verified

1704
1705/* called when kicking or engraving on a grave's headstone */
1706void
1707disturb_grave(coordxy x, coordxy y)
1708{
1709 struct rm *lev = &levl[x][y];
1710
1711 if (!IS_GRAVE(lev->typ)) {
1712 impossible("Disturbing grave that isn't a grave? (%d)", lev->typ);
1713 } else if (lev->disturbed) {
1714 impossible("Disturbing already disturbed grave?");
1715 } else {
1716 You("disturb the undead!");
1717 lev->disturbed = 1;
1718 (void) makemon(&mons[PM_GHOUL], x, y, NO_MM_FLAGS);
1719 exercise(A_WIS, FALSE);
1720 }
1721}
1722
1723void
1724see_engraving(struct engr *ep)

Callers 2

doengraveFunction · 0.85
kick_nondoorFunction · 0.85

Calls 4

YouFunction · 0.85
makemonFunction · 0.85
exerciseFunction · 0.85
impossibleFunction · 0.70

Tested by

no test coverage detected