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

Function nohandglow

src/uhitm.c:6314–6337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6312}
6313
6314staticfn void
6315nohandglow(struct monst *mon)
6316{
6317 char *hands;
6318 boolean altfeedback;
6319
6320 if (!u.umconf || mon->mconf)
6321 return;
6322
6323 hands = makeplural(body_part(HAND));
6324 altfeedback = (Blind || Invisible); /* Invisible == Invis && !See_invis */
6325 if (u.umconf == 1) {
6326 if (altfeedback)
6327 Your("%s stop tingling.", hands);
6328 else
6329 Your("%s stop glowing %s.", hands, hcolor(NH_RED));
6330 } else {
6331 if (altfeedback)
6332 pline_The("tingling in your %s lessens.", hands);
6333 else
6334 Your("%s no longer glow so brightly %s.", hands, hcolor(NH_RED));
6335 }
6336 u.umconf--;
6337}
6338
6339/* returns 1 if light flash has noticeable effect on 'mtmp', 0 otherwise */
6340int

Callers 1

hmon_hitmonFunction · 0.85

Calls 5

makepluralFunction · 0.85
body_partFunction · 0.85
YourFunction · 0.85
hcolorFunction · 0.85
pline_TheFunction · 0.85

Tested by

no test coverage detected