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

Function wearing_iron_shoes

src/trap.c:1097–1102  ·  view source on GitHub ↗

return TRUE if mtmp is wearing shoes made of iron (iron/kicking) */

Source from the content-addressed store, hash-verified

1095
1096/* return TRUE if mtmp is wearing shoes made of iron (iron/kicking) */
1097boolean
1098wearing_iron_shoes(struct monst *mtmp)
1099{
1100 struct obj *armf = which_armor(mtmp, W_ARMF);
1101 return armf && objects[armf->otyp].oc_material == IRON;
1102}
1103
1104/* is trap ttmp harmless to monster mtmp? */
1105boolean

Callers 6

trapeffect_bear_trapFunction · 0.85
trapeffect_pitFunction · 0.85
trapeffect_anti_magicFunction · 0.85
trapeffect_poly_trapFunction · 0.85
trapeffect_landmineFunction · 0.85
find_miscFunction · 0.85

Calls 1

which_armorFunction · 0.85

Tested by

no test coverage detected