… | |
… | |
737 | |
737 | |
738 | if (level <= 20) |
738 | if (level <= 20) |
739 | return level / difficulty; |
739 | return level / difficulty; |
740 | if (level <= 40) |
740 | if (level <= 40) |
741 | return (20 + (level - 20) / 2) / difficulty; |
741 | return (20 + (level - 20) / 2) / difficulty; |
|
|
742 | |
742 | return (30 + (level - 40) / 4) / difficulty; |
743 | return (30 + (level - 40) / 4) / difficulty; |
743 | } |
744 | } |
744 | |
745 | |
745 | /** |
746 | /** |
746 | * God wants to enchant weapon. |
747 | * God wants to enchant weapon. |
… | |
… | |
757 | int tmp; |
758 | int tmp; |
758 | |
759 | |
759 | for (weapon = op->inv; weapon; weapon = weapon->below) |
760 | for (weapon = op->inv; weapon; weapon = weapon->below) |
760 | if ((weapon->type == WEAPON || weapon->type == BOW) && QUERY_FLAG (weapon, FLAG_APPLIED)) |
761 | if ((weapon->type == WEAPON || weapon->type == BOW) && QUERY_FLAG (weapon, FLAG_APPLIED)) |
761 | break; |
762 | break; |
|
|
763 | |
762 | if (weapon == NULL || god_examines_item (god, weapon) <= 0) |
764 | if (weapon == NULL || god_examines_item (god, weapon) <= 0) |
763 | return 0; |
765 | return 0; |
764 | |
766 | |
765 | /* First give it a title, so other gods won't touch it */ |
767 | /* First give it a title, so other gods won't touch it */ |
766 | if (!weapon->title) |
768 | if (!weapon->title) |