| 884 | } |
| 885 | |
| 886 | staticfn int |
| 887 | Armor_on(void) |
| 888 | { |
| 889 | if (!uarm) /* no known instances of !uarm here but play it safe */ |
| 890 | return 0; |
| 891 | if (!uarm->known) { |
| 892 | uarm->known = 1; /* suit's +/- evident because of status line AC */ |
| 893 | update_inventory(); |
| 894 | } |
| 895 | dragon_armor_handling(uarm, TRUE, TRUE); |
| 896 | /* gold DSM requires extra handling since it emits light when worn; |
| 897 | do that after the special armor handling */ |
| 898 | if (artifact_light(uarm) && !uarm->lamplit) { |
| 899 | begin_burn(uarm, FALSE); |
| 900 | if (!Blind) |
| 901 | pline("%s %s to shine %s!", |
| 902 | Yname2(uarm), otense(uarm, "begin"), |
| 903 | arti_light_description(uarm)); |
| 904 | } |
| 905 | return 0; |
| 906 | } |
| 907 | |
| 908 | int |
| 909 | Armor_off(void) |
no test coverage detected