WAC return TRUE if artifact is always lit */
| 2261 | |
| 2262 | /* WAC return TRUE if artifact is always lit */ |
| 2263 | boolean |
| 2264 | artifact_light(struct obj *obj) |
| 2265 | { |
| 2266 | /* not artifacts but treat them as if they were because they emit |
| 2267 | light without burning */ |
| 2268 | if (obj && (obj->otyp == GOLD_DRAGON_SCALE_MAIL |
| 2269 | || obj->otyp == GOLD_DRAGON_SCALES) |
| 2270 | && (obj->owornmask & W_ARM) != 0L) |
| 2271 | return TRUE; |
| 2272 | |
| 2273 | return (boolean) ((get_artifact(obj) != &artilist[ART_NONARTIFACT]) |
| 2274 | && is_art(obj, ART_SUNSWORD)); |
| 2275 | } |
| 2276 | |
| 2277 | /* KMH -- Talking artifacts are finally implemented */ |
| 2278 | int |
no test coverage detected