Changeset 680
- Timestamp:
- 02/01/08 05:48:37 (7 months ago)
- Files:
-
- trunk/lib/edit/object.txt (modified) (3 diffs)
- trunk/src/obj-make.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/edit/object.txt
r642 r680 1207 1207 I:45:2:-5 1208 1208 W:5:0:2:0 1209 A:100:5 to 1001209 #A:100:5 to 100 1210 1210 F:LIGHT_CURSE | STR | HIDE_TYPE 1211 1211 … … 1244 1244 I:45:0:-5 1245 1245 W:50:0:2:0 1246 A:100:50 to 1001246 #A:100:50 to 100 1247 1247 F:LIGHT_CURSE | TELEPORT | WIS | CHR | HIDE_TYPE 1248 1248 … … 1251 1251 I:45:3:-5 1252 1252 W:5:0:2:0 1253 A:100:5 to 1001253 #A:100:5 to 100 1254 1254 F:LIGHT_CURSE | INT | HIDE_TYPE 1255 1255 trunk/src/obj-make.c
r678 r680 551 551 { 552 552 /* Hack -- Reverse digging bonus */ 553 o_ptr->pval = 0 - (o_ptr->pval);553 o_ptr->pval = -o_ptr->pval; 554 554 } 555 555 … … 674 674 static void a_m_aux_3(object_type *o_ptr, int level, int power) 675 675 { 676 if (power < 0) 677 o_ptr->flags3 |= TR3_LIGHT_CURSE; 678 676 679 /* Apply magic (good or bad) according to type */ 677 680 switch (o_ptr->tval) … … 693 696 /* Cursed */ 694 697 if (power < 0) 695 { 696 /* Cursed */ 697 o_ptr->flags3 |= TR3_LIGHT_CURSE; 698 699 /* Reverse pval */ 700 o_ptr->pval = 0 - (o_ptr->pval); 701 } 698 o_ptr->pval = -o_ptr->pval; 702 699 703 700 break; … … 716 713 if (power < 0) 717 714 { 718 /* Cursed */719 o_ptr->flags3 |= TR3_LIGHT_CURSE;720 721 715 /* Reverse pval */ 722 o_ptr->pval = 0 - (o_ptr->pval); 723 724 break; 716 o_ptr->pval = -o_ptr->pval; 725 717 } 726 718 else … … 728 720 /* Rating boost */ 729 721 rating += 25; 722 723 /* Mention the item */ 724 if (cheat_peek) object_mention(o_ptr); 730 725 } 731 732 /* Mention the item */733 if (cheat_peek) object_mention(o_ptr);734 726 735 727 break; … … 744 736 /* Cursed */ 745 737 if (power < 0) 746 { 747 /* Cursed */ 748 o_ptr->flags3 |= TR3_LIGHT_CURSE; 749 750 /* Reverse pval */ 751 o_ptr->pval = 0 - (o_ptr->pval); 752 } 738 o_ptr->pval = -o_ptr->pval; 753 739 754 740 break; … … 766 752 } 767 753 768 /* Weakness, Stupidity */769 case SV_RING_WEAKNESS:770 case SV_RING_STUPIDITY:771 {772 /* Cursed */773 o_ptr->flags3 |= TR3_LIGHT_CURSE;774 775 /* Penalize */776 o_ptr->pval = 0 - (1 + m_bonus(5, level));777 778 break;779 }780 781 /* WOE, Stupidity */782 case SV_RING_WOE:783 {784 /* Cursed */785 o_ptr->flags3 |= TR3_LIGHT_CURSE;786 787 /* Penalize */788 o_ptr->to_a = 0 - (5 + m_bonus(10, level));789 o_ptr->pval = 0 - (1 + m_bonus(5, level));790 791 break;792 }793 794 754 /* Ring of damage */ 795 755 case SV_RING_DAMAGE: … … 800 760 /* Cursed */ 801 761 if (power < 0) 802 { 803 /* Cursed */ 804 o_ptr->flags3 |= TR3_LIGHT_CURSE; 805 806 /* Reverse bonus */ 807 o_ptr->to_d = 0 - (o_ptr->to_d); 808 } 762 o_ptr->to_d = -o_ptr->to_d; 809 763 810 764 break; … … 819 773 /* Cursed */ 820 774 if (power < 0) 821 { 822 /* Cursed */ 823 o_ptr->flags3 |= TR3_LIGHT_CURSE; 824 825 /* Reverse tohit */ 826 o_ptr->to_h = 0 - (o_ptr->to_h); 827 } 775 o_ptr->to_h = -o_ptr->to_h; 828 776 829 777 break; … … 838 786 /* Cursed */ 839 787 if (power < 0) 840 { 841 /* Cursed */ 842 o_ptr->flags3 |= TR3_LIGHT_CURSE; 843 844 /* Reverse toac */ 845 o_ptr->to_a = 0 - (o_ptr->to_a); 846 } 788 o_ptr->to_a = -o_ptr->to_a; 847 789 848 790 break; … … 856 798 o_ptr->to_h = randint(5) + m_bonus(5, level); 857 799 858 /* Cursed */800 /* Cursed -- reverse bonuses */ 859 801 if (power < 0) 860 802 { 861 /* Cursed */ 862 o_ptr->flags3 |= TR3_LIGHT_CURSE; 863 864 /* Reverse bonuses */ 865 o_ptr->to_h = 0 - (o_ptr->to_h); 866 o_ptr->to_d = 0 - (o_ptr->to_d); 803 o_ptr->to_h = -o_ptr->to_h; 804 o_ptr->to_d = -o_ptr->to_d; 867 805 } 868 806 … … 888 826 /* Cursed */ 889 827 if (power < 0) 890 { 891 /* Cursed */ 892 o_ptr->flags3 |= TR3_LIGHT_CURSE; 893 894 /* Reverse bonuses */ 895 o_ptr->pval = 0 - (o_ptr->pval); 896 } 828 o_ptr->pval = -o_ptr->pval; 897 829 898 830 break; … … 906 838 /* Cursed */ 907 839 if (power < 0) 908 { 909 /* Cursed */ 910 o_ptr->flags3 |= TR3_LIGHT_CURSE; 911 912 /* Reverse bonuses */ 913 o_ptr->pval = 0 - (o_ptr->pval); 914 } 840 o_ptr->pval = -o_ptr->pval; 915 841 916 842 break;
