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

Function make_stoned

src/potion.c:221–240  ·  view source on GitHub ↗

start or stop petrification */

Source from the content-addressed store, hash-verified

219
220/* start or stop petrification */
221void
222make_stoned(long xtime, const char *msg, int killedby, const char *killername)
223{
224 long old = Stoned;
225
226#if 0 /* tell player even if hero is unconscious */
227 if (Unaware)
228 msg = 0;
229#endif
230 set_itimeout(&Stoned, xtime);
231 if ((xtime != 0L) ^ (old != 0L)) {
232 disp.botl = TRUE;
233 if (msg)
234 pline("%s", msg);
235 }
236 if (!Stoned)
237 dealloc_killer(find_delayed_killer(STONED));
238 else if (!old)
239 delayed_killer(STONED, killedby, killername);
240}
241
242void
243make_vomiting(long xtime, boolean talk)

Callers 10

do_stone_uFunction · 0.85
slime_dialogueFunction · 0.85
fix_worst_troubleFunction · 0.85
wiz_intrinsicFunction · 0.85
newmanFunction · 0.85
polymonFunction · 0.85
eat_brainsFunction · 0.85
fix_petrificationFunction · 0.85
fpostfxFunction · 0.85
mthrowu.cFile · 0.85

Calls 5

set_itimeoutFunction · 0.85
dealloc_killerFunction · 0.85
find_delayed_killerFunction · 0.85
delayed_killerFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected