| 1764 | } |
| 1765 | |
| 1766 | void |
| 1767 | unbless(struct obj *otmp) |
| 1768 | { |
| 1769 | int old_light = 0; |
| 1770 | |
| 1771 | if (otmp->lamplit) |
| 1772 | old_light = arti_light_radius(otmp); |
| 1773 | otmp->blessed = 0; |
| 1774 | if (carried(otmp) && confers_luck(otmp)) |
| 1775 | set_moreluck(); |
| 1776 | else if (otmp->otyp == BAG_OF_HOLDING) |
| 1777 | otmp->owt = weight(otmp); |
| 1778 | if (otmp->lamplit) |
| 1779 | maybe_adjust_light(otmp, old_light); |
| 1780 | } |
| 1781 | |
| 1782 | void |
| 1783 | curse(struct obj *otmp) |
no test coverage detected