| 2818 | : &artilist[ART_NONARTIFACT]) */ |
| 2819 | |
| 2820 | staticfn struct artifact * |
| 2821 | get_artifact(struct obj *obj) |
| 2822 | { |
| 2823 | if (obj) { |
| 2824 | int artidx = (int) obj->oartifact; |
| 2825 | |
| 2826 | /* skip 0, 1st artifact at 1 */ |
| 2827 | /* SIZE(artilist) would include the terminator, |
| 2828 | so use AFTER_LAST_ARTIFACT instead */ |
| 2829 | if (artidx > 0 && artidx < AFTER_LAST_ARTIFACT) |
| 2830 | return &artilist[artidx]; |
| 2831 | } |
| 2832 | return &artilist[ART_NONARTIFACT]; |
| 2833 | } |
| 2834 | |
| 2835 | /* is object permanently poisoned? (currently only Grimtooth) */ |
| 2836 | boolean |
no outgoing calls
no test coverage detected