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

Function mcast_open_wounds

src/mcastu.c:623–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623staticfn int
624mcast_open_wounds(int dmg)
625{
626 if (Antimagic) {
627 shieldeff(u.ux, u.uy);
628 monstseesu(M_SEEN_MAGR);
629 dmg = (dmg + 1) / 2;
630 } else {
631 monstunseesu(M_SEEN_MAGR);
632 }
633 if (dmg <= 5)
634 Your("skin itches badly for a moment.");
635 else if (dmg <= 10)
636 pline("Wounds appear on your body!");
637 else if (dmg <= 20)
638 pline("Severe wounds appear on your body!");
639 else
640 Your("body is covered with painful wounds!");
641 return dmg;
642}
643
644staticfn void
645mcast_insects(struct monst *mtmp)

Callers 1

mcast_spellFunction · 0.85

Calls 5

shieldeffFunction · 0.85
monstseesuFunction · 0.85
monstunseesuFunction · 0.85
YourFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected