MCPcopy Index your code
hub / github.com/NetHack/NetHack / make_slimed

Function make_slimed

src/potion.c:194–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void
195make_slimed(long xtime, const char *msg)
196{
197 long old = Slimed;
198
199#if 0 /* tell player even if hero is unconscious */
200 if (Unaware)
201 msg = 0;
202#endif
203 set_itimeout(&Slimed, xtime);
204 if ((xtime != 0L) ^ (old != 0L)) {
205 disp.botl = TRUE;
206 if (msg)
207 pline("%s", msg);
208 }
209 if (!Slimed) {
210 dealloc_killer(find_delayed_killer(SLIMED));
211 /* fake appearance is set late in turn-to-slime countdown */
212 if (U_AP_TYPE == M_AP_MONSTER
213 && gy.youmonst.mappearance == PM_GREEN_SLIME) {
214 gy.youmonst.m_ap_type = M_AP_NOTHING;
215 gy.youmonst.mappearance = 0;
216 }
217 }
218}
219
220/* start or stop petrification */
221void

Callers 13

Amulet_onFunction · 0.85
mhitm_ad_drinFunction · 0.85
mhitm_ad_slimFunction · 0.85
gulpumFunction · 0.85
invoke_healingFunction · 0.85
stoned_dialogueFunction · 0.85
burn_away_slimeFunction · 0.85
fix_worst_troubleFunction · 0.85
wiz_intrinsicFunction · 0.85
newmanFunction · 0.85
polymonFunction · 0.85
cprefxFunction · 0.85

Calls 4

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

Tested by

no test coverage detected