TickHook: Fix crash when TickHook isn't set.
[gemrb.git] / gemrb / includes / opcode_params.h
blobf20d72cf74cacd858e378eba7612b18ba9736be5
1 /* GemRB - Infinity Engine Emulator
2 * Copyright (C) 2003 The GemRB Project
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 /**
22 * @file opcode_params.h
23 * Definitions for effect opcode parameters
24 * @author The GemRB Project
27 #ifndef IE_OPCODE_PARAMS_H
28 #define IE_OPCODE_PARAMS_H
30 //regen/poison/disease types
31 #define RPD_PERCENT 1
32 #define RPD_POINTS 2
33 #define RPD_SECONDS 3
34 //only poison
35 #define RPD_ROUNDS 4
36 #define RPD_TURNS 5
37 //only disease
38 #define RPD_STR 4
39 #define RPD_DEX 5
40 #define RPD_CON 6
41 #define RPD_INT 7
42 #define RPD_WIS 8
43 #define RPD_CHA 9
44 #define RPD_SLOW 10
46 //appply spell on condition
47 #define COND_GOTHIT 0
48 #define COND_NEAR 1
49 #define COND_HP_HALF 2
50 #define COND_HP_QUART 3
51 #define COND_HP_LOW 4
52 #define COND_HELPLESS 5
53 #define COND_POISONED 6
54 #define COND_ATTACKED 7
55 #define COND_NEAR4 8
56 #define COND_NEAR10 9
57 #define COND_EVERYROUND 10
58 #define COND_TOOKDAMAGE 11
60 //resources for the seven eyes effect
61 #define EYE_MIND 0
62 #define EYE_SWORD 1
63 #define EYE_MAGE 2
64 #define EYE_VENOM 3
65 #define EYE_SPIRIT 4
66 #define EYE_FORT 5
67 #define EYE_STONE 6
69 //spell states
70 #define SS_HOPELESSNESS 0
71 #define SS_PROTFROMEVIL 1
72 #define SS_ARMOROFFAITH 2
73 #define SS_NAUSEA 3
74 #define SS_ENFEEBLED 4
75 #define SS_FIRESHIELD 5
76 #define SS_ICESHIELD 6
77 #define SS_HELD 7
78 #define SS_DEATHWARD 8
79 #define SS_HOLYPOWER 9
80 #define SS_GOODCHANT 10
81 #define SS_BADCHANT 11
82 #define SS_GOODPRAYER 12
83 #define SS_BADPRAYER 13
84 #define SS_GOODRECIT 14
85 #define SS_BADRECIT 15
86 #define SS_RIGHTEOUS 16 //allied
87 #define SS_RIGHTEOUS2 17 //allied and same alignment
88 #define SS_STONESKIN 18
89 #define SS_IRONSKIN 19
90 #define SS_SANCTUARY 20
91 #define SS_RESILIENT 21
92 #define SS_BLESS 22
93 #define SS_AID 23
94 #define SS_BARKSKIN 24
95 #define SS_HOLYMIGHT 25
96 #define SS_ENTANGLE 26
97 #define SS_WEB 27
98 #define SS_GREASE 28
99 #define SS_FREEACTION 29
100 #define SS_ENTROPY 30
101 #define SS_STORMSHELL 31
102 #define SS_ELEMPROT 32
103 #define SS_BERSERK 33
104 #define SS_BLOODRAGE 34
105 #define SS_NOHPINFO 35
106 #define SS_NOAWAKE 36
107 #define SS_AWAKE 37
108 #define SS_DEAF 38
109 #define SS_ANIMALRAGE 39
110 #define SS_NOBACKSTAB 40
111 #define SS_CHAOTICCMD 41
112 #define SS_MISCAST 42
113 #define SS_PAIN 43
114 #define SS_MALISON 44
115 //#define SS_CATSGRACE 45 //used explicitly
116 #define SS_MOLDTOUCH 46
117 #define SS_FLAMESHROUD 47
118 #define SS_EYEMIND 48
119 #define SS_EYESWORD 49
120 #define SS_EYEMAGE 50
121 #define SS_EYEVENOM 51
122 #define SS_EYESPIRIT 52
123 #define SS_EYEFORTITUDE 53
124 #define SS_EYESTONE 54
125 #define SS_AEGIS 55
126 #define SS_EXECUTIONER 56
127 #define SS_ENERGYDRAIN 57
128 #define SS_TORTOISE 58
129 #define SS_BLINK 59
130 #define SS_MINORGLOBE 60
131 #define SS_PROTFROMMISS 61
132 #define SS_GHOSTARMOR 62
133 #define SS_REFLECTION 63
134 #define SS_KAI 64
135 #define SS_CALLEDSHOT 65
136 #define SS_MIRRORIMAGE 66
137 #define SS_TURNED 67
138 #define SS_BLADEBARRIER 68
139 #define SS_POISONWEAPON 69
140 #define SS_STUNNINGBLOW 70
141 #define SS_QUIVERPALM 71
142 #define SS_DOMINATION 72
143 #define SS_MAJORGLOBE 73
144 #define SS_SHIELD 74
145 #define SS_ANTIMAGIC 75
146 #define SS_POWERATTACK 76
147 //more powerattack
148 #define SS_EXPERTISE 81
149 //more expertise
150 #define SS_ARTERIAL 86
151 #define SS_HAMSTRING 87
152 #define SS_RAPIDSHOT 88
153 #define SS_IRONBODY 89
154 #define SS_TENSER 90
155 #define SS_SMITEEVIL 91
156 #define SS_ALICORNLANCE 92
157 #define SS_LIGHTNING 93
158 #define SS_CHAMPIONS 94
159 #define SS_BONECIRCLE 95
160 #define SS_CLOAKOFFEAR 96
161 #define SS_PESTILENCE 97
162 #define SS_CONTAGION 98
163 #define SS_BANE 99
164 #define SS_DEFENSIVE 100
165 #define SS_DESTRUCTION 101
166 #define SS_DOLOROUS 102
167 #define SS_DOOM 103
168 #define SS_EXALTATION 104
169 #define SS_FAERIEFIRE 105
170 #define SS_FINDTRAPS 106
171 #define SS_GREATERLATH 107
172 #define SS_MAGICRESIST 108
173 #define SS_NPROTECTION 109
174 #define SS_PROTFROMFIRE 110
175 #define SS_PROTFROMLIGHTNING 111
176 #define SS_ELEMENTAL 112
177 #define SS_LATHANDER 113
178 #define SS_SLOWPOISON 114
179 #define SS_SPELLSHIELD 115
180 #define SS_STATICCHARGE 116
181 #define SS_ACIDARROW 117
182 #define SS_FREEZING 118
183 #define SS_PROTFROMACID 119
184 #define SS_PROTFROMELEC 120
185 #define SS_PFNMISSILES 121
186 #define SS_PROTFROMPETR 122
187 #define SS_ENFEEBLEMENT 123
188 #define SS_SEVENEYES 124
189 //#define SS_SOULEATER 125
191 #define SS_LOWERRESIST 140
192 #define SS_LUCK 141
193 //tested for this, splstate is wrong or this entry has two uses
194 #define SS_DAYBLINDNESS 178
195 #define SS_REBUKED 179
197 #endif //IE_OPCODE_PARAMS_H