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

Function reset_hostility

src/priest.c:754–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752}
753
754void
755reset_hostility(struct monst *roamer)
756{
757 if (!roamer->isminion)
758 return;
759 if (roamer->data != &mons[PM_ALIGNED_CLERIC]
760 && roamer->data != &mons[PM_ANGEL])
761 return;
762
763 if (EMIN(roamer)->min_align != u.ualign.type) {
764 roamer->mpeaceful = roamer->mtame = 0;
765 set_malign(roamer);
766 }
767 newsym(roamer->mx, roamer->my);
768}
769
770boolean
771in_your_sanctuary(

Callers

nothing calls this directly

Calls 2

set_malignFunction · 0.85
newsymFunction · 0.85

Tested by

no test coverage detected