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

Function spec_ability

src/artifact.c:515–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515boolean
516spec_ability(struct obj *otmp, unsigned long abil)
517{
518 const struct artifact *arti = get_artifact(otmp);
519
520 return (boolean) (arti != &artilist[ART_NONARTIFACT]
521 && (arti->spfx & abil) != 0L);
522}
523
524/* used so that callers don't need to known about SPFX_ codes */
525boolean

Callers 4

rndcurseFunction · 0.85
dosearch0Function · 0.85
confers_luckFunction · 0.85
artifact_hitFunction · 0.85

Calls 1

get_artifactFunction · 0.85

Tested by

no test coverage detected