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

Function choke_dialogue

src/timeout.c:294–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292};
293
294staticfn void
295choke_dialogue(void)
296{
297 long i = (Strangled & TIMEOUT);
298
299 if (i > 0 && i <= SIZE(choke_texts)) {
300 if (Breathless || !rn2(50)) {
301 urgent_pline(choke_texts2[SIZE(choke_texts2) - i],
302 body_part(NECK));
303 } else {
304 const char *str = choke_texts[SIZE(choke_texts) - i];
305
306 if (strchr(str, '%'))
307 urgent_pline(str, hcolor(NH_BLUE));
308 else
309 urgent_pline("%s", str);
310 stop_occupation();
311 }
312 }
313 exercise(A_STR, FALSE);
314}
315
316static NEARDATA const char *const sickness_texts[] = {
317 "Your illness feels worse.",

Callers 1

nh_timeoutFunction · 0.85

Calls 6

rn2Function · 0.85
urgent_plineFunction · 0.85
body_partFunction · 0.85
hcolorFunction · 0.85
stop_occupationFunction · 0.85
exerciseFunction · 0.85

Tested by

no test coverage detected