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

Function make_confused

src/potion.c:88–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void
89make_confused(long xtime, boolean talk)
90{
91 long old = HConfusion;
92
93 if (Unaware)
94 talk = FALSE;
95
96 if (!xtime && old) {
97 if (talk)
98 You_feel("less %s now.", Hallucination ? "trippy" : "confused");
99 }
100 if ((xtime && !old) || (!xtime && old))
101 disp.botl = TRUE;
102
103 set_itimeout(&HConfusion, xtime);
104}
105
106void
107make_stunned(long xtime, boolean talk)

Callers 15

throne_sit_effectFunction · 0.85
peffect_boozeFunction · 0.85
peffect_confusionFunction · 0.85
potionbreatheFunction · 0.85
use_crystal_ballFunction · 0.85
mhitm_ad_confFunction · 0.85
mcast_confuse_youFunction · 0.85
level_tele_trapFunction · 0.85
Mb_hitFunction · 0.85
vomiting_dialogueFunction · 0.85
nh_timeoutFunction · 0.85
fix_worst_troubleFunction · 0.85

Calls 2

You_feelFunction · 0.85
set_itimeoutFunction · 0.85

Tested by

no test coverage detected