Functions to empty a given slot ***/ These should be used only when the item can't be put back in * the slot by life saving. Proper usage includes: * 1. The item has been eaten, stolen, burned away, or rotted away. * 2. Making an item disappear for a bones pile. */
| 870 | * 2. Making an item disappear for a bones pile. |
| 871 | */ |
| 872 | void |
| 873 | uwepgone(void) |
| 874 | { |
| 875 | if (uwep) { |
| 876 | if (artifact_light(uwep) && uwep->lamplit) { |
| 877 | end_burn(uwep, FALSE); |
| 878 | if (!Blind) |
| 879 | pline("%s shining.", Tobjnam(uwep, "stop")); |
| 880 | } |
| 881 | setworn((struct obj *) 0, W_WEP); |
| 882 | gu.unweapon = TRUE; |
| 883 | update_inventory(); |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | void |
| 888 | uswapwepgone(void) |
no test coverage detected