… | |
… | |
703 | weapon->last_eat++; |
703 | weapon->last_eat++; |
704 | weapon->item_power++; |
704 | weapon->item_power++; |
705 | improver->decrease (); |
705 | improver->decrease (); |
706 | return 1; |
706 | return 1; |
707 | } |
707 | } |
|
|
708 | |
708 | if (improver->stats.sp == IMPROVE_ENCHANT) |
709 | if (improver->stats.sp == IMPROVE_ENCHANT) |
709 | { |
710 | { |
710 | weapon->magic++; |
711 | weapon->magic++; |
711 | weapon->last_eat++; |
712 | weapon->last_eat++; |
712 | op->statusmsg (format ("Weapon magic increased to %d.", weapon->magic)); |
713 | op->statusmsg (format ("Weapon magic increased to %d.", weapon->magic)); |
… | |
… | |
767 | op->failmsg ("Something blocks the magic of the scroll!"); |
768 | op->failmsg ("Something blocks the magic of the scroll!"); |
768 | return 0; |
769 | return 0; |
769 | } |
770 | } |
770 | |
771 | |
771 | otmp = find_marked_object (op); |
772 | otmp = find_marked_object (op); |
|
|
773 | |
772 | if (!otmp) |
774 | if (!otmp) |
773 | { |
775 | { |
774 | op->failmsg ("You need to mark a weapon object. H<Use the mark command or the mark option from the item popup menu.>"); |
776 | op->failmsg ("You need to mark a weapon object. H<Use the mark command or the mark option from the item popup menu.>"); |
775 | return 0; |
777 | return 0; |
776 | } |
778 | } |