MCPcopy Index your code
hub / github.com/NetHack/NetHack / obj_unpolyable

Function obj_unpolyable

src/zap.c:1677–1683  ·  view source on GitHub ↗

Returns TRUE if obj resists polymorphing */

Source from the content-addressed store, hash-verified

1675
1676/* Returns TRUE if obj resists polymorphing */
1677boolean
1678obj_unpolyable(struct obj *obj)
1679{
1680 return (unpolyable(obj)
1681 || obj == uball || obj == uskin
1682 || obj_resists(obj, 5, 95));
1683}
1684
1685/* classes of items whose current charge count carries over across polymorph
1686 */

Callers 2

potion_dipFunction · 0.85
bhitoFunction · 0.85

Calls 1

obj_resistsFunction · 0.85

Tested by

no test coverage detected