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

Function make_stunned

src/potion.c:106–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void
107make_stunned(long xtime, boolean talk)
108{
109 long old = HStun;
110
111 if (Unaware)
112 talk = FALSE;
113
114 if (!xtime && old) {
115 if (talk)
116 You_feel("%s now.",
117 Hallucination ? "less wobbly" : "a bit steadier");
118 }
119 if (xtime && !old) {
120 if (talk) {
121 if (u.usteed)
122 You("wobble in the saddle.");
123 else
124 You("%s...", stagger(gy.youmonst.data, "stagger"));
125 }
126 }
127 if ((!xtime && old) || (xtime && !old))
128 disp.botl = TRUE;
129
130 set_itimeout(&HStun, xtime);
131}
132
133/* Sick is overloaded with both fatal illness and food poisoning (via
134 u.usick_type bit mask), but delayed killer can only support one or

Callers 15

mhitm_ad_stunFunction · 0.85
mhitm_knockbackFunction · 0.85
passiveFunction · 0.85
mcast_stun_youFunction · 0.85
domagicportalFunction · 0.85
Mb_hitFunction · 0.85
vomiting_dialogueFunction · 0.85
nh_timeoutFunction · 0.85
fix_worst_troubleFunction · 0.85
wiz_intrinsicFunction · 0.85
cpostfxFunction · 0.85
doeatFunction · 0.85

Calls 4

You_feelFunction · 0.85
YouFunction · 0.85
staggerFunction · 0.85
set_itimeoutFunction · 0.85

Tested by

no test coverage detected