1 extern void do_cmd_activate(void);
2 extern void do_cmd_activate_aux(INVENTORY_IDX item);
3 extern bool activate_artifact(object_type * o_ptr);
4 extern void get_bloody_moon_flags(object_type *o_ptr);
6 extern const activation_type activation_info[];
9 /* Activation effects for random artifacts */
10 #define ACT_SUNLIGHT 1
11 #define ACT_BO_MISS_1 2
12 #define ACT_BA_POIS_1 3
13 #define ACT_BO_ELEC_1 4
14 #define ACT_BO_ACID_1 5
15 #define ACT_BO_COLD_1 6
16 #define ACT_BO_FIRE_1 7
17 #define ACT_BA_COLD_1 8
18 #define ACT_BA_FIRE_1 9
19 #define ACT_HYPODYNAMIA_1 10
20 #define ACT_BA_COLD_2 11
21 #define ACT_BA_ELEC_2 12
22 #define ACT_HYPODYNAMIA_2 13
23 #define ACT_DRAIN_1 14
24 #define ACT_BO_MISS_2 15
25 #define ACT_BA_FIRE_3 16
26 #define ACT_BA_COLD_3 17
27 #define ACT_BA_ELEC_3 18
28 #define ACT_WHIRLWIND 19
29 #define ACT_DRAIN_2 20
30 #define ACT_CALL_CHAOS 21
32 #define ACT_DISP_EVIL 23
33 #define ACT_BA_MISS_3 24
34 #define ACT_DISP_GOOD 25
35 #define ACT_BO_MANA 26
36 #define ACT_BA_FIRE_2 27
37 #define ACT_BA_WATER 28
38 #define ACT_BA_STAR 29
39 #define ACT_BA_DARK 30
40 #define ACT_BA_MANA 31
41 #define ACT_PESTICIDE 32
42 #define ACT_BLINDING_LIGHT 33
43 #define ACT_BIZARRE 34
44 #define ACT_CAST_BA_STAR 35
45 #define ACT_BLADETURNER 36
46 #define ACT_BA_ACID_1 37
47 #define ACT_BR_FIRE 38
48 #define ACT_BR_COLD 39
49 #define ACT_BR_DRAGON 40
50 #define ACT_BA_FIRE_4 41
51 #define ACT_BA_NUKE_1 42
53 #define ACT_CONFUSE 51
57 #define ACT_TELE_AWAY 55
58 #define ACT_BANISH_EVIL 56
59 #define ACT_GENOCIDE 57
60 #define ACT_MASS_GENO 58
61 #define ACT_SCARE_AREA 59
62 #define ACT_AGGRAVATE 60
64 #define ACT_CHARM_ANIMAL 65
65 #define ACT_CHARM_UNDEAD 66
66 #define ACT_CHARM_OTHER 67
67 #define ACT_CHARM_ANIMALS 68
68 #define ACT_CHARM_OTHERS 69
69 #define ACT_SUMMON_ANIMAL 70
70 #define ACT_SUMMON_PHANTOM 71
71 #define ACT_SUMMON_ELEMENTAL 72
72 #define ACT_SUMMON_DEMON 73
73 #define ACT_SUMMON_UNDEAD 74
74 #define ACT_SUMMON_HOUND 75
75 #define ACT_SUMMON_DAWN 76
76 #define ACT_SUMMON_OCTOPUS 77
78 #define ACT_CHOIR_SINGS 80
79 #define ACT_CURE_LW 81
80 #define ACT_CURE_MW 82
81 #define ACT_CURE_POISON 83
82 #define ACT_REST_EXP 84
83 #define ACT_REST_ALL 85
84 #define ACT_CURE_700 86
85 #define ACT_CURE_1000 87
87 #define ACT_CURE_MANA_FULL 89
90 #define ACT_BERSERK 92
91 #define ACT_PROT_EVIL 93
92 #define ACT_RESIST_ALL 94
94 #define ACT_XTRA_SPEED 96
98 #define ACT_HERO_SPEED 100
99 #define ACT_RESIST_ACID 101
100 #define ACT_RESIST_FIRE 102
101 #define ACT_RESIST_COLD 103
102 #define ACT_RESIST_ELEC 104
103 #define ACT_RESIST_POIS 105
104 /* 106 - 110 unused */
105 #define ACT_LIGHT 111
106 #define ACT_MAP_LIGHT 112
107 #define ACT_DETECT_ALL 113
108 #define ACT_DETECT_XTRA 114
109 #define ACT_ID_FULL 115
110 #define ACT_ID_PLAIN 116
111 #define ACT_RUNE_EXPLO 117
112 #define ACT_RUNE_PROT 118
113 #define ACT_SATIATE 119
114 #define ACT_DEST_DOOR 120
115 #define ACT_STONE_MUD 121
116 #define ACT_RECHARGE 122
117 #define ACT_ALCHEMY 123
118 #define ACT_DIM_DOOR 124
119 #define ACT_TELEPORT 125
120 #define ACT_RECALL 126
121 #define ACT_JUDGE 127
122 #define ACT_TELEKINESIS 128
123 #define ACT_DETECT_UNIQUE 129
124 #define ACT_ESCAPE 130
125 #define ACT_DISP_CURSE_XTRA 131
126 #define ACT_BRAND_FIRE_BOLTS 132
127 #define ACT_RECHARGE_XTRA 133
129 #define ACT_SHIKOFUMI 135
130 #define ACT_PHASE_DOOR 136
131 #define ACT_DETECT_ALL_MONS 137
132 #define ACT_ULTIMATE_RESIST 138
134 #define ACT_FALLING_STAR 246
135 #define ACT_STRAIN_HASTE 247
136 #define ACT_TELEPORT_LEVEL 248
137 #define ACT_GRAND_CROSS 249
138 #define ACT_CAST_OFF 250
139 #define ACT_FISHING 251
140 #define ACT_INROU 252
141 #define ACT_MURAMASA 253
142 #define ACT_BLOODY_MOON 254
143 #define ACT_CRIMSON 255