| 513 | } |
| 514 | |
| 515 | boolean |
| 516 | spec_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 */ |
| 525 | boolean |
no test coverage detected