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

Function artifact_has_invprop

src/artifact.c:2298–2305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2296}
2297
2298boolean
2299artifact_has_invprop(struct obj *otmp, uchar inv_prop)
2300{
2301 const struct artifact *arti = get_artifact(otmp);
2302
2303 return (boolean) ((arti != &artilist[ART_NONARTIFACT])
2304 && (arti->inv_prop == inv_prop));
2305}
2306
2307/* Return the price sold to the hero of a given artifact or unique item */
2308long

Callers 1

dodownFunction · 0.85

Calls 1

get_artifactFunction · 0.85

Tested by

no test coverage detected