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

Function breakarm

src/mondata.c:639–650  ·  view source on GitHub ↗

creature will break out of armor */

Source from the content-addressed store, hash-verified

637
638/* creature will break out of armor */
639boolean
640breakarm(struct permonst *ptr)
641{
642 if (sliparm(ptr))
643 return FALSE;
644
645 return (boolean) (bigmonst(ptr)
646 || (ptr->msize > MZ_SMALL && !humanoid(ptr))
647 /* special cases of humanoids that cannot wear suits */
648 || ptr == &mons[PM_MARILITH]
649 || ptr == &mons[PM_WINGED_GARGOYLE]);
650}
651
652/* creature sticks other creatures it hits */
653boolean

Callers 2

mon_break_armorFunction · 0.85
break_armorFunction · 0.85

Calls 1

sliparmFunction · 0.85

Tested by

no test coverage detected