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

Function mimic_hit_msg

src/mon.c:5775–5793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5773}
5774
5775void
5776mimic_hit_msg(struct monst *mtmp, short otyp)
5777{
5778 short ap = mtmp->mappearance;
5779
5780 switch (M_AP_TYPE(mtmp)) {
5781 case M_AP_NOTHING:
5782 case M_AP_FURNITURE:
5783 case M_AP_MONSTER:
5784 break;
5785 case M_AP_OBJECT:
5786 if (otyp == SPE_HEALING || otyp == SPE_EXTRA_HEALING) {
5787 pline_mon(mtmp, "%s seems a more vivid %s than before.",
5788 The(simple_typename(ap)),
5789 c_obj_colors[objects[ap].oc_color]);
5790 }
5791 break;
5792 }
5793}
5794
5795boolean
5796usmellmon(struct permonst *mdat)

Callers 1

bhitmFunction · 0.85

Calls 3

pline_monFunction · 0.85
TheFunction · 0.85
simple_typenameFunction · 0.85

Tested by

no test coverage detected