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

Function mon_set_minvis

src/worn.c:473–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471} /* check_wornmask_slots() */
472
473void
474mon_set_minvis(
475 struct monst *mon,
476 boolean cursed_potion)
477{
478 mon->perminvis = !cursed_potion ? 1 : 0;
479 if (!mon->invis_blkd) {
480 mon->minvis = mon->perminvis;
481 newsym(mon->mx, mon->my); /* make it disappear */
482 if (mon->wormno)
483 see_wsegs(mon); /* and any tail too */
484 }
485}
486
487void
488mon_adjust_speed(

Callers 6

potionhitFunction · 0.85
mcast_disappearFunction · 0.85
mon_givitFunction · 0.85
makemonFunction · 0.85
bhitmFunction · 0.85
use_miscFunction · 0.85

Calls 2

newsymFunction · 0.85
see_wsegsFunction · 0.85

Tested by

no test coverage detected