Merge branch 'events'.
[gemrb.git] / gemrb / GUIScripts / ie_stats.py
blob89db32f4a93fd987216571c7065274ea70dcbd64
1 # -*-python-*-
2 # GemRB - Infinity Engine Emulator
3 # Copyright (C) 2003 The GemRB Project
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 # ie_stats.py - definitions of creature stats codes
22 # !!! NOTE: Keep this file synchronized with gemrb/includes/ie_stats.h !!!
24 # EA values
25 INANIMATE = 1
26 PC = 2
27 FAMILIAR = 3
28 ALLY = 4
29 CONTROLLED = 5
30 CHARMED = 6
31 GOODBUTRED = 28
32 GOODBUTBLUE = 29
33 GOODCUTOFF = 30
34 NOTGOOD = 31
35 ANYTHING = 126
36 NEUTRAL = 128
37 NOTEVIL = 199
38 EVILCUTOFF = 200
39 EVILBUTGREEN = 201
40 EVILBUTBLUE = 202
41 ENEMY = 255
43 # state bits (IE_STATE)
44 STATE_PANIC = 4
45 STATE_HELPLESS = 1 + 32
46 STATE_PETRIFIED = 8 + 64 + 128
47 STATE_DEAD = 2048
48 STATE_POISONED = 0x4000
50 MC_WAS_FIGHTER = 0x0008
51 MC_WAS_MAGE = 0x0010
52 MC_WAS_CLERIC = 0x0020
53 MC_WAS_THIEF = 0x0040
54 MC_WAS_DRUID = 0x0080
55 MC_WAS_RANGER = 0x0100
56 MC_WAS_ANY_CLASS = MC_WAS_FIGHTER|MC_WAS_MAGE|MC_WAS_CLERIC|MC_WAS_THIEF|MC_WAS_DRUID|MC_WAS_RANGER
58 MC_FALLEN_PALADIN = 0x200
59 MC_FALLEN_RANGER = 0x400
60 MC_EXPORTABLE = 0x800
62 MC_PLOT_CRITICAL = 0x2000
63 MC_BEENINPARTY = 0x8000
64 MC_HIDDEN = 0x10000
66 # stats
67 IE_HITPOINTS = 0
68 IE_MAXHITPOINTS = 1
69 IE_ARMORCLASS = 2
70 IE_ACCRUSHINGMOD = 3
71 IE_ACMISSILEMOD = 4
72 IE_ACPIERCINGMOD = 5
73 IE_ACSLASHINGMOD = 6
74 IE_TOHIT = 7
75 IE_NUMBEROFATTACKS = 8
76 IE_SAVEVSDEATH = 9
77 IE_SAVEVSWANDS = 10
78 IE_SAVEVSPOLY = 11
79 IE_SAVEVSBREATH = 12
80 IE_SAVEVSSPELL = 13
81 IE_SAVEFORTITUDE = 9
82 IE_SAVEREFLEX = 10
83 IE_SAVEWILL = 11
84 IE_RESISTFIRE = 14
85 IE_RESISTCOLD = 15
86 IE_RESISTELECTRICITY = 16
87 IE_RESISTACID = 17
88 IE_RESISTMAGIC = 18
89 IE_RESISTMAGICFIRE = 19
90 IE_RESISTMAGICCOLD = 20
91 IE_RESISTSLASHING = 21
92 IE_RESISTCRUSHING = 22
93 IE_RESISTPIERCING = 23
94 IE_RESISTMISSILE = 24
95 IE_LORE = 25
96 IE_LOCKPICKING = 26
97 IE_STEALTH = 27
98 IE_TRAPS = 28
99 IE_PICKPOCKET = 29
100 IE_FATIGUE = 30
101 IE_INTOXICATION = 31
102 IE_LUCK = 32
103 IE_TRACKING = 33
104 IE_LEVEL = 34
105 IE_SEX = 35
106 IE_STR = 36
107 IE_STREXTRA = 37
108 IE_INT = 38
109 IE_WIS = 39
110 IE_DEX = 40
111 IE_CON = 41
112 IE_CHR = 42
113 IE_XPVALUE = 43
114 IE_XP = 44
115 IE_GOLD = 45
116 IE_MORALEBREAK = 46
117 IE_MORALERECOVERYTIME = 47
118 IE_REPUTATION = 48
119 IE_HATEDRACE = 49
120 IE_DAMAGEBONUS = 50
121 IE_SPELLFAILUREMAGE = 51
122 IE_SPELLFAILUREPRIEST = 52
123 IE_SPELLDURATIONMODMAGE = 53
124 IE_SPELLDURATIONMODPRIEST = 54
125 IE_TURNUNDEADLEVEL = 55
126 IE_BACKSTABDAMAGEMULTIPLIER = 56
127 IE_LAYONHANDSAMOUNT = 57
128 IE_HELD = 58
129 IE_POLYMORPHED = 59
130 IE_TRANSLUCENT = 60
131 IE_IDENTIFYMODE = 61
132 IE_ENTANGLE = 62
133 IE_SANCTUARY = 63
134 IE_MINORGLOBE = 64
135 IE_SHIELDGLOBE = 65
136 IE_GREASE = 66
137 IE_WEB = 67
138 IE_LEVEL2 = 68
139 IE_LEVEL3 = 69
140 IE_CasterHold = 70
141 IE_ENCUMBRANCE = 71
142 IE_MISSILEHITBONUS = 72
143 IE_MAGICDAMAGERESISTANCE = 73
144 IE_RESISTPOISON = 74
145 IE_DONOTJUMP = 75
146 IE_AURACLEANSING = 76
147 IE_MENTALSPEED = 77
148 IE_PHYSICALSPEED = 78
149 IE_CASTINGLEVELBONUSMAGE = 79
150 IE_CASTINGLEVELBONUSCLERIC = 80
151 IE_SEEINVISIBLE = 81
152 IE_IGNOREDIALOGPAUSE = 82
153 IE_MINHITPOINTS = 83
154 IE_HITBONUSRIGHT = 84
155 IE_HITBONUSLEFT = 85
156 IE_DAMAGEBONUSRIGHT = 86
157 IE_DAMAGEBONUSLEFT = 87
158 IE_STONESKINS = 88
159 IE_FEAT_BOW = 89
160 IE_FEAT_CROSSBOW = 90
161 IE_FEAT_SLING = 91
162 IE_FEAT_AXE = 92
163 IE_FEAT_MACE = 93
164 IE_FEAT_FLAIL = 94
165 IE_FEAT_POLEARM = 95
166 IE_FEAT_HAMMER = 96
167 IE_FEAT_STAFF = 97
168 IE_FEAT_GREAT_SWORD = 98
169 IE_FEAT_LARGE_SWORD = 99
170 IE_FEAT_SMALL_SWORD = 100
171 IE_FEAT_TOUGHNESS = 101
172 IE_FEAT_ARMORED_ARCANA = 102
173 IE_FEAT_CLEAVE = 103
174 IE_FEAT_ARMOUR = 104
175 IE_FEAT_ENCHANTMENT = 105
176 IE_FEAT_EVOCATION = 106
177 IE_FEAT_NECROMANCY = 107
178 IE_FEAT_TRANSMUTATION = 108
179 IE_FEAT_SPELL_PENETRATION = 109
180 IE_FEAT_EXTRA_RAGE = 110
181 IE_FEAT_EXTRA_SHAPE = 111
182 IE_FEAT_EXTRA_SMITING = 112
183 IE_FEAT_EXTRA_TURNING = 113
184 IE_FEAT_BASTARDSWORD = 114
185 IE_ALCHEMY = 115
186 IE_ANIMALS = 116
187 IE_BLUFF = 117
188 IE_CONCENTRATION = 118
189 IE_DIPLOMACY = 119
190 IE_INTIMIDATE = 120
191 IE_SEARCH = 121
192 IE_SPELLCRAFT = 122
193 IE_MAGICDEVICE = 123
194 IE_PROFICIENCYBASTARDSWORD = 89
195 IE_PROFICIENCYLONGSWORD = 90
196 IE_PROFICIENCYSHORTSWORD = 91
197 IE_PROFICIENCYAXE = 92
198 IE_PROFICIENCYTWOHANDEDSWORD = 93
199 IE_PROFICIENCYKATANA = 94
200 IE_PROFICIENCYSCIMITARWAKISASHININJATO = 95
201 IE_PROFICIENCYDAGGER = 96
202 IE_PROFICIENCYWARHAMMER = 97
203 IE_PROFICIENCYSPEAR = 98
204 IE_PROFICIENCYHALBERD = 99
205 IE_PROFICIENCYFLAILMORNINGSTAR = 100
206 IE_PROFICIENCYMACE = 101
207 IE_PROFICIENCYQUARTERSTAFF = 102
208 IE_PROFICIENCYCROSSBOW = 103
209 IE_PROFICIENCYLONGBOW = 104
210 IE_PROFICIENCYSHORTBOW = 105
211 IE_PROFICIENCYDART = 106
212 IE_PROFICIENCYSLING = 107
213 IE_PROFICIENCYBLACKJACK = 108
214 IE_PROFICIENCYGUN = 109
215 IE_PROFICIENCYMARTIALARTS = 110
216 IE_PROFICIENCY2HANDED = 111
217 IE_PROFICIENCYSWORDANDSHIELD = 112
218 IE_PROFICIENCYSINGLEWEAPON = 113
219 IE_PROFICIENCY2WEAPON = 114
220 IE_EXTRAPROFICIENCY1 = 115
221 IE_EXTRAPROFICIENCY2 = 116
222 IE_EXTRAPROFICIENCY3 = 117
223 IE_EXTRAPROFICIENCY4 = 118
224 IE_EXTRAPROFICIENCY5 = 119
225 IE_EXTRAPROFICIENCY6 = 120
226 IE_EXTRAPROFICIENCY7 = 121
227 IE_EXTRAPROFICIENCY8 = 122
228 IE_EXTRAPROFICIENCY9 = 123
229 IE_EXTRAPROFICIENCY10 = 124
230 IE_EXTRAPROFICIENCY11 = 125
231 IE_EXTRAPROFICIENCY12 = 126
232 IE_EXTRAPROFICIENCY13 = 127
233 IE_EXTRAPROFICIENCY14 = 128
234 IE_EXTRAPROFICIENCY15 = 129
235 IE_EXTRAPROFICIENCY16 = 130
236 IE_EXTRAPROFICIENCY17 = 131
237 IE_FEATS1 = 131
238 IE_EXTRAPROFICIENCY18 = 132
239 IE_FEATS2 = 132
240 IE_EXTRAPROFICIENCY19 = 133
241 IE_FEATS3 = 133
242 IE_EXTRAPROFICIENCY20 = 134
243 IE_FREESLOTS = 134 #not an error (PST)
244 IE_HIDEINSHADOWS = 135
245 IE_DETECTILLUSIONS = 136
246 IE_SETTRAPS = 137
247 IE_PUPPETMASTERID = 138
248 IE_PUPPETMASTERTYPE = 139
249 IE_PUPPETTYPE = 140
250 IE_PUPPETID = 141
251 IE_CHECKFORBERSERK = 142
252 IE_BERSERKSTAGE1 = 143
253 IE_BERSERKSTAGE2 = 144
254 IE_DAMAGELUCK = 145
255 IE_CRITICALHITBONUS = 146
256 IE_VISUALRANGE = 147
257 IE_EXPLORE = 148
258 IE_THRULLCHARM = 149
259 IE_SUMMONDISABLE = 150
260 IE_HITBONUS = 151
261 IE_KIT = 152
262 IE_FORCESURGE = 153
263 IE_SURGEMOD = 154
264 IE_IMPROVEDHASTE = 155
265 IE_SCRIPTINGSTATE1 = 156
266 IE_SCRIPTINGSTATE2 = 157
267 IE_SCRIPTINGSTATE3 = 158
268 IE_SCRIPTINGSTATE4 = 159
269 IE_SCRIPTINGSTATE5 = 160
270 IE_SCRIPTINGSTATE6 = 161
271 IE_SCRIPTINGSTATE7 = 162
272 IE_SCRIPTINGSTATE8 = 163
273 IE_SCRIPTINGSTATE9 = 164
274 IE_SCRIPTINGSTATE10 = 165
275 IE_MELEETOHIT = 166
276 IE_MELEEDAMAGE = 167
277 IE_MISSILEDAMAGE = 168
278 IE_NOCIRCLE = 169
279 IE_FISTHIT = 170
280 IE_FISTDAMAGE = 171
281 IE_TITLE1 = 172
282 IE_TITLE2 = 173
283 IE_DISABLEOVERLAY = 174
284 IE_DISABLEBACKSTAB = 175
285 IE_XP_MAGE = 176 # In PST this stores secondary level exp
286 IE_XP_THIEF = 177 # In PST this stores tertiary level exp
287 IE_DIALOGRANGE = 178 # distance for dialogue
288 IE_MOVEMENTRATE = 179
289 #180-198 unused
290 IE_STONESKINSGOLEM = 199
291 IE_LEVELDRAIN = 200
292 IE_AVATARREMOVAL = 201
294 IE_DISABLEDBUTTON = 204
295 # GemRB Specific Defines
296 IE_ANIMATION_ID = 205
297 IE_STATE_ID = 206
298 IE_EXTSTATE_ID = 207
299 IE_METAL_COLOR = 208
300 IE_MINOR_COLOR = 209
301 IE_MAJOR_COLOR = 210
302 IE_SKIN_COLOR = 211
303 IE_LEATHER_COLOR = 212
304 IE_ARMOR_COLOR = 213
305 IE_HAIR_COLOR = 214
306 IE_MC_FLAGS = 215
307 IE_CLASSLEVELSUM = 216
308 IE_ALIGNMENT = 217
309 IE_UNSELECTABLE = 218
310 IE_ARMOR_TYPE = 219
311 IE_TEAM = 220
312 IE_FACTION = 221
313 IE_SUBRACE = 222
314 IE_SPECIES = 223 #pst specific
315 IE_HATEDRACE2 = 224
316 IE_HATEDRACE3 = 225
317 IE_HATEDRACE4 = 226
318 IE_HATEDRACE5 = 227
319 IE_HATEDRACE6 = 228
320 IE_HATEDRACE7 = 229
321 IE_HATEDRACE8 = 230
322 # These are in original PST, IWD, IWD2, but not as stats
323 IE_RACE = 231
324 IE_CLASS = 232
325 IE_GENERAL = 233
326 IE_EA = 234
327 IE_SPECIFIC = 235
329 IE_LEVELBARBARIAN = 240
330 IE_LEVELBARD = 241
331 IE_LEVELCLERIC = 242
332 IE_LEVELDRUID = 243
333 IE_LEVELMONK = 244
334 IE_LEVELPALADIN = 245
335 IE_LEVELRANGER = 246
336 IE_LEVELSORCEROR = 247
337 #place for more classes
338 IE_SAVEDXPOS = 253
339 IE_SAVEDYPOS = 254
340 IE_SAVEDFACE = 255
342 # End of file ie_stats.py