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

Function rider_corpse_revival

src/pickup.c:302–313  ·  view source on GitHub ↗

attempting to manipulate a Rider's corpse triggers its revival */

Source from the content-addressed store, hash-verified

300
301/* attempting to manipulate a Rider's corpse triggers its revival */
302boolean
303rider_corpse_revival(struct obj *obj, boolean remotely)
304{
305 if (!obj || obj->otyp != CORPSE || !is_rider(&mons[obj->corpsenm]))
306 return FALSE;
307
308 pline("At your %s, the corpse suddenly moves...",
309 remotely ? "attempted acquisition" : "touch");
310 (void) revive_corpse(obj);
311 exercise(A_WIS, FALSE);
312 return TRUE;
313}
314
315/* wand of probing zapped down; perhaps hero is levitating while blind */
316void

Callers 2

offer_corpseFunction · 0.85
pickup_objectFunction · 0.85

Calls 3

revive_corpseFunction · 0.85
exerciseFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected