OSDN Git Service

[Refactor] #37353 MAGIC_* を player-status.h に移動。
[hengband/hengband.git] / src / cmd-activate.h
1 #pragma once
2
3 extern void do_cmd_activate(void);
4 extern void do_cmd_activate_aux(INVENTORY_IDX item);
5 extern bool activate_artifact(object_type * o_ptr);
6
7 typedef struct {
8         concptr flag;
9         byte index;
10         byte level;
11         s32b value;
12         struct {
13                 int constant;
14                 DICE_NUMBER dice;
15         } timeout;
16         concptr desc;
17 } activation_type;
18
19 extern const activation_type activation_info[];
20
21 typedef struct {
22         int flag;
23         int type;
24         concptr name;
25 } dragonbreath_type;
26
27 extern const dragonbreath_type dragonbreath_info[];
28
29 /* Activation effects for random artifacts */
30 #define ACT_SUNLIGHT            1
31 #define ACT_BO_MISS_1           2
32 #define ACT_BA_POIS_1           3
33 #define ACT_BO_ELEC_1           4
34 #define ACT_BO_ACID_1           5
35 #define ACT_BO_COLD_1           6
36 #define ACT_BO_FIRE_1           7
37 #define ACT_BA_COLD_1           8
38 #define ACT_BA_FIRE_1           9
39 #define ACT_HYPODYNAMIA_1       10
40 #define ACT_BA_COLD_2           11
41 #define ACT_BA_ELEC_2           12
42 #define ACT_HYPODYNAMIA_2       13
43 #define ACT_DRAIN_1             14
44 #define ACT_BO_MISS_2           15
45 #define ACT_BA_FIRE_3           16
46 #define ACT_BA_COLD_3           17
47 #define ACT_BA_ELEC_3           18
48 #define ACT_WHIRLWIND           19
49 #define ACT_DRAIN_2             20
50 #define ACT_CALL_CHAOS          21
51 #define ACT_ROCKET              22
52 #define ACT_DISP_EVIL           23
53 #define ACT_BA_MISS_3           24
54 #define ACT_DISP_GOOD           25
55 #define ACT_BO_MANA             26
56 #define ACT_BA_FIRE_2           27
57 #define ACT_BA_WATER            28
58 #define ACT_BA_STAR             29
59 #define ACT_BA_DARK             30
60 #define ACT_BA_MANA             31
61 #define ACT_PESTICIDE           32
62 #define ACT_BLINDING_LIGHT      33
63 #define ACT_BIZARRE             34
64 #define ACT_CAST_BA_STAR        35
65 #define ACT_BLADETURNER         36
66 #define ACT_BA_ACID_1           37
67 #define ACT_BR_FIRE             38
68 #define ACT_BR_COLD             39
69 #define ACT_BR_DRAGON           40
70 #define ACT_BA_FIRE_4           41
71 #define ACT_BA_NUKE_1           42
72 /* 42 - 50 unused */
73 #define ACT_CONFUSE             51
74 #define ACT_SLEEP               52
75 #define ACT_QUAKE               53
76 #define ACT_TERROR              54
77 #define ACT_TELE_AWAY           55
78 #define ACT_BANISH_EVIL         56
79 #define ACT_GENOCIDE            57
80 #define ACT_MASS_GENO           58
81 #define ACT_SCARE_AREA          59
82 #define ACT_AGGRAVATE           60
83 /* 59 - 64 unused */
84 #define ACT_CHARM_ANIMAL        65
85 #define ACT_CHARM_UNDEAD        66
86 #define ACT_CHARM_OTHER         67
87 #define ACT_CHARM_ANIMALS       68
88 #define ACT_CHARM_OTHERS        69
89 #define ACT_SUMMON_ANIMAL       70
90 #define ACT_SUMMON_PHANTOM      71
91 #define ACT_SUMMON_ELEMENTAL    72
92 #define ACT_SUMMON_DEMON        73
93 #define ACT_SUMMON_UNDEAD       74
94 #define ACT_SUMMON_HOUND        75
95 #define ACT_SUMMON_DAWN         76
96 #define ACT_SUMMON_OCTOPUS      77
97 /* 76 - 80 unused */
98 #define ACT_CHOIR_SINGS         80
99 #define ACT_CURE_LW             81
100 #define ACT_CURE_MW             82
101 #define ACT_CURE_POISON         83
102 #define ACT_REST_EXP            84
103 #define ACT_REST_ALL            85
104 #define ACT_CURE_700            86
105 #define ACT_CURE_1000           87
106 #define ACT_CURING              88
107 #define ACT_CURE_MANA_FULL      89
108 /* 90 unused */
109 #define ACT_ESP                 91
110 #define ACT_BERSERK             92
111 #define ACT_PROT_EVIL           93
112 #define ACT_RESIST_ALL          94
113 #define ACT_SPEED               95
114 #define ACT_XTRA_SPEED          96
115 #define ACT_WRAITH              97
116 #define ACT_INVULN              98
117 #define ACT_HERO                99
118 #define ACT_HERO_SPEED          100
119 #define ACT_RESIST_ACID         101
120 #define ACT_RESIST_FIRE         102
121 #define ACT_RESIST_COLD         103
122 #define ACT_RESIST_ELEC         104
123 #define ACT_RESIST_POIS         105
124 /* 106 - 110 unused */
125 #define ACT_LIGHT               111
126 #define ACT_MAP_LIGHT           112
127 #define ACT_DETECT_ALL          113
128 #define ACT_DETECT_XTRA         114
129 #define ACT_ID_FULL             115
130 #define ACT_ID_PLAIN            116
131 #define ACT_RUNE_EXPLO          117
132 #define ACT_RUNE_PROT           118
133 #define ACT_SATIATE             119
134 #define ACT_DEST_DOOR           120
135 #define ACT_STONE_MUD           121
136 #define ACT_RECHARGE            122
137 #define ACT_ALCHEMY             123
138 #define ACT_DIM_DOOR            124
139 #define ACT_TELEPORT            125
140 #define ACT_RECALL              126
141 #define ACT_JUDGE               127
142 #define ACT_TELEKINESIS         128
143 #define ACT_DETECT_UNIQUE       129
144 #define ACT_ESCAPE              130
145 #define ACT_DISP_CURSE_XTRA     131
146 #define ACT_BRAND_FIRE_BOLTS    132
147 #define ACT_RECHARGE_XTRA       133
148 #define ACT_LORE                134
149 #define ACT_SHIKOFUMI           135
150 #define ACT_PHASE_DOOR          136
151 #define ACT_DETECT_ALL_MONS     137
152 #define ACT_ULTIMATE_RESIST     138
153 /* 127 -> unused */
154 #define ACT_FALLING_STAR        246
155 #define ACT_STRAIN_HASTE        247
156 #define ACT_TELEPORT_LEVEL      248
157 #define ACT_GRAND_CROSS         249
158 #define ACT_CAST_OFF            250
159 #define ACT_FISHING             251
160 #define ACT_INROU               252
161 #define ACT_MURAMASA            253
162 #define ACT_BLOODY_MOON         254
163 #define ACT_CRIMSON             255
164