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

Function mon_has_special

src/wizard.c:116–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116int
117mon_has_special(struct monst *mtmp)
118{
119 struct obj *otmp;
120
121 for (otmp = mtmp->minvent; otmp; otmp = otmp->nobj)
122 if (otmp->otyp == AMULET_OF_YENDOR
123 || any_quest_artifact(otmp)
124 || otmp->otyp == BELL_OF_OPENING
125 || otmp->otyp == CANDELABRUM_OF_INVOCATION
126 || otmp->otyp == SPE_BOOK_OF_THE_DEAD)
127 return 1;
128 return 0;
129}
130
131/*
132 * New for 3.1 Strategy / Tactics for the wiz, as well as other

Callers 3

pickvampshapeFunction · 0.85
validvampFunction · 0.85
mon_escapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected