| 1819 | } |
| 1820 | |
| 1821 | void |
| 1822 | uncurse(struct obj *otmp) |
| 1823 | { |
| 1824 | int old_light = 0; |
| 1825 | |
| 1826 | if (otmp->lamplit) |
| 1827 | old_light = arti_light_radius(otmp); |
| 1828 | otmp->cursed = 0; |
| 1829 | if (carried(otmp) && confers_luck(otmp)) |
| 1830 | set_moreluck(); |
| 1831 | else if (otmp->otyp == BAG_OF_HOLDING) |
| 1832 | otmp->owt = weight(otmp); |
| 1833 | else if (otmp->otyp == FIGURINE && otmp->timed) |
| 1834 | (void) stop_timer(FIG_TRANSFORM, obj_to_any(otmp)); |
| 1835 | if (otmp->lamplit) |
| 1836 | maybe_adjust_light(otmp, old_light); |
| 1837 | return; |
| 1838 | } |
| 1839 | |
| 1840 | void |
| 1841 | blessorcurse(struct obj *otmp, int chance) |
no test coverage detected