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

Function mon_has_amulet

src/wizard.c:105–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105int
106mon_has_amulet(struct monst *mtmp)
107{
108 struct obj *otmp;
109
110 for (otmp = mtmp->minvent; otmp; otmp = otmp->nobj)
111 if (otmp->otyp == AMULET_OF_YENDOR)
112 return 1;
113 return 0;
114}
115
116int
117mon_has_special(struct monst *mtmp)

Callers 12

levl_followerFunction · 0.85
mlevel_tele_trapFunction · 0.85
tacticsFunction · 0.85
resurrectFunction · 0.85
demon_talkFunction · 0.85
keepdogsFunction · 0.85
elemental_clogFunction · 0.85
immune_to_trapFunction · 0.85
m_teleFunction · 0.85
find_defensiveFunction · 0.85
use_defensiveFunction · 0.85
next_to_uFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected