| 1742 | */ |
| 1743 | |
| 1744 | void |
| 1745 | bless(struct obj *otmp) |
| 1746 | { |
| 1747 | int old_light = 0; |
| 1748 | |
| 1749 | if (otmp->oclass == COIN_CLASS) |
| 1750 | return; |
| 1751 | if (otmp->lamplit) |
| 1752 | old_light = arti_light_radius(otmp); |
| 1753 | otmp->cursed = 0; |
| 1754 | otmp->blessed = 1; |
| 1755 | if (carried(otmp) && confers_luck(otmp)) |
| 1756 | set_moreluck(); |
| 1757 | else if (otmp->otyp == BAG_OF_HOLDING) |
| 1758 | otmp->owt = weight(otmp); |
| 1759 | else if (otmp->otyp == FIGURINE && otmp->timed) |
| 1760 | (void) stop_timer(FIG_TRANSFORM, obj_to_any(otmp)); |
| 1761 | if (otmp->lamplit) |
| 1762 | maybe_adjust_light(otmp, old_light); |
| 1763 | return; |
| 1764 | } |
| 1765 | |
| 1766 | void |
| 1767 | unbless(struct obj *otmp) |
no test coverage detected