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

Function you_aggravate

src/muse.c:2630–2651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2628RESTORE_WARNINGS
2629
2630staticfn void
2631you_aggravate(struct monst *mtmp)
2632{
2633 pline("For some reason, %s presence is known to you.",
2634 s_suffix(noit_mon_nam(mtmp)));
2635 cls();
2636#ifdef CLIPPING
2637 cliparound(mtmp->mx, mtmp->my);
2638#endif
2639 show_glyph(mtmp->mx, mtmp->my, mon_to_glyph(mtmp, rn2_on_display_rng));
2640 display_self();
2641 You_feel("aggravated at %s.", noit_mon_nam(mtmp));
2642 display_nhwindow(WIN_MAP, TRUE);
2643 docrt();
2644 if (unconscious()) {
2645 gm.multi = -1;
2646 gn.nomovemsg = "Aggravated, you are jolted into full consciousness.";
2647 }
2648 newsym(mtmp->mx, mtmp->my);
2649 if (!canspotmon(mtmp))
2650 map_invisible(mtmp->mx, mtmp->my);
2651}
2652
2653int
2654rnd_misc_item(struct monst *mtmp)

Callers 1

use_miscFunction · 0.85

Calls 10

s_suffixFunction · 0.85
noit_mon_namFunction · 0.85
clsFunction · 0.85
show_glyphFunction · 0.85
You_feelFunction · 0.85
docrtFunction · 0.85
unconsciousFunction · 0.85
newsymFunction · 0.85
map_invisibleFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected