Mercurial > mm7
annotate Player.h @ 1674:2a5f2aaec367
Слияние
author | Ritor1 |
---|---|
date | Thu, 19 Sep 2013 09:29:30 +0600 |
parents | 61ea994a1812 |
children | 96d567a7d15f |
rev | line source |
---|---|
0 | 1 #pragma once |
2 #include "Items.h" | |
3 #include "Spells.h" | |
1361
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
4 #include "Conditions.h" |
0 | 5 |
6 | |
7 | |
1605
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
8 enum PLAYER_BUFFS |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
9 { |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
10 PLAYER_BUFF_RESIST_AIR = 0, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
11 PLAYER_BUFF_BLESS = 1, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
12 PLAYER_BUFF_RESIST_BODY = 2, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
13 PLAYER_BUFF_RESIST_EARTH = 3, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
14 PLAYER_BUFF_FATE = 4, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
15 PLAYER_BUFF_RESIST_FIRE = 3, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
16 PLAYER_BUFF_HAMMERHANDS = 6, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
17 PLAYER_BUFF_HASTE = 7, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
18 PLAYER_BUFF_HEROISM = 8, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
19 PLAYER_BUFF_RESIST_MIND = 9, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
20 PLAYER_BUFF_PAIN_REFLECTION = 10, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
21 PLAYER_BUFF_PRESERVATION = 11, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
22 PLAYER_BUFF_REGENERATION = 12, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
23 PLAYER_BUFF_13 = 13, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
24 PLAYER_BUFF_STONESKIN = 14, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
25 PLAYER_BUFF_ACCURACY = 15, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
26 PLAYER_BUFF_ENDURANCE = 16, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
27 PLAYER_BUFF_INTELLIGENCE = 17, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
28 PLAYER_BUFF_LUCK = 18, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
29 PLAYER_BUFF_STRENGTH = 19, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
30 PLAYER_BUFF_WILLPOWER = 20, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
31 PLAYER_BUFF_SPEED = 21, |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
32 PLAYER_BUFF_RESIST_WATER = 22 |
434b796cdfd3
Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents:
1604
diff
changeset
|
33 }; |
187 | 34 |
35 | |
949 | 36 #define PLAYER_GUILD_BITS__SPIRIT_MEMBERSHIP 58 |
37 #define PLAYER_GUILD_BITS__ARCOMAGE_WIN 103 | |
38 #define PLAYER_GUILD_BITS__ARCOMAGE_LOSE 104 | |
735 | 39 |
40 | |
187 | 41 /* 301 */ |
42 enum PlayerSpeech | |
43 { | |
44 SPEECH_1 = 1, | |
45 SPEECH_2 = 2, | |
46 SPEECH_3 = 3, | |
47 SPEECH_4 = 4, | |
48 SPEECH_5 = 5, | |
49 SPEECH_6 = 6, | |
50 SPEECH_7 = 7, | |
51 SPEECH_8 = 8, | |
52 SPEECH_9 = 9, | |
53 SPEECH_10 = 10, | |
54 SPEECH_11 = 11, | |
55 SPEECH_12 = 12, | |
56 SPEECH_14 = 14, | |
201 | 57 SPEECH_NoRoom = 15, // when placing to inventory |
187 | 58 SPEECH_16 = 16, |
59 SPEECH_17 = 17, | |
60 SPEECH_18 = 18, | |
61 SPEECH_19 = 19, | |
62 SPEECH_20 = 20, | |
63 SPEECH_21 = 21, | |
201 | 64 SPEECH_GoodDay = 22, // greets on dialogue start |
188 | 65 SPEECH_GoodEvening = 23, |
187 | 66 SPEECH_24 = 24, |
67 SPEECH_25 = 25, | |
68 SPEECH_26 = 26, | |
69 SPEECH_27 = 27, | |
70 SPEECH_28 = 28, | |
71 SPEECH_29 = 29, | |
72 SPEECH_30 = 30, | |
73 SPEECH_31 = 31, | |
74 SPEECH_32 = 32, | |
75 SPEECH_33 = 33, | |
76 SPEECH_34 = 34, | |
77 SPEECH_35 = 35, | |
78 SPEECH_36 = 36, | |
79 SPEECH_37 = 37, | |
248 | 80 SPEECH_NotEnoughGold = 38, |
187 | 81 SPEECH_39 = 39, |
82 SPEECH_40 = 40, | |
83 SPEECH_41 = 41, | |
84 SPEECH_42 = 42, | |
85 SPEECH_43 = 43, | |
86 SPEECH_44 = 44, | |
87 SPEECH_45 = 45, | |
88 SPEECH_46 = 46, | |
89 SPEECH_47 = 47, | |
90 SPEECH_48 = 48, | |
91 SPEECH_49 = 49, | |
92 SPEECH_50 = 50, | |
93 SPEECH_51 = 51, | |
94 SPEECH_52 = 52, | |
95 SPEECH_53 = 53, | |
96 SPEECH_54 = 54, | |
97 SPEECH_55 = 55, | |
98 SPEECH_56 = 56, | |
99 SPEECH_57 = 57, | |
100 SPEECH_58 = 58, | |
101 SPEECH_59 = 59, | |
102 SPEECH_60 = 60, | |
103 SPEECH_61 = 61, | |
104 SPEECH_62 = 62, | |
105 SPEECH_63 = 63, | |
106 SPEECH_64 = 64, | |
107 SPEECH_Yell = 65, | |
108 SPEECH_66 = 66, | |
109 SPEECH_67 = 67, | |
110 SPEECH_68 = 68, | |
111 SPEECH_69 = 69, | |
112 SPEECH_70 = 70, | |
652 | 113 SPEECH_CarriageReady = 71, // travelling by carriage |
114 SPEECH_SetSail = 72, // travelling by sea | |
187 | 115 SPEECH_73 = 73, |
116 SPEECH_74 = 74, | |
117 SPEECH_75 = 75, | |
118 SPEECH_76 = 76, | |
119 SPEECH_77 = 77, | |
120 SPEECH_78 = 78, | |
121 SPEECH_79 = 79, | |
122 SPEECH_80 = 80, | |
123 SPEECH_81 = 81, | |
124 SPEECH_82 = 82, | |
125 SPEECH_83 = 83, | |
126 SPEECH_84 = 84, | |
127 SPEECH_85 = 85, | |
128 SPEECH_86 = 86, | |
129 SPEECH_87 = 87, | |
130 SPEECH_88 = 88, | |
131 SPEECH_89 = 89, | |
132 SPEECH_90 = 90, | |
133 SPEECH_91 = 91, | |
134 SPEECH_92 = 92, | |
135 SPEECH_93 = 93, | |
136 SPEECH_94 = 94, | |
137 SPEECH_95 = 95, | |
138 SPEECH_96 = 96, | |
139 SPEECH_97 = 97, | |
140 SPEECH_98 = 98, | |
141 SPEECH_99 = 99, | |
142 SPEECH_100 = 100, | |
143 SPEECH_101 = 101, | |
144 SPEECH_PickMe = 102, | |
145 SPEECH_103 = 103, | |
146 SPEECH_104 = 104, | |
147 SPEECH_105 = 105, | |
148 SPEECH_106 = 106, | |
149 SPEECH_107 = 107, | |
150 SPEECH_108 = 108, | |
151 SPEECH_109 = 109, | |
152 SPEECH_110 = 110, | |
153 }; | |
154 | |
155 | |
156 | |
0 | 157 /* 339 */ |
158 enum CHARACTER_RACE | |
159 { | |
991 | 160 CHARACTER_RACE_HUMAN = 0, |
161 CHARACTER_RACE_ELF = 1, | |
162 CHARACTER_RACE_GOBLIN = 2, | |
163 CHARACTER_RACE_DWARF = 3, | |
0 | 164 }; |
130 | 165 |
0 | 166 /* 332 */ |
167 enum CHARACTER_ATTRIBUTE_TYPE | |
168 { | |
1040 | 169 CHARACTER_ATTRIBUTE_STRENGTH = 0, |
170 CHARACTER_ATTRIBUTE_INTELLIGENCE = 1, | |
171 CHARACTER_ATTRIBUTE_WILLPOWER = 2, | |
172 CHARACTER_ATTRIBUTE_ENDURANCE = 3, | |
173 CHARACTER_ATTRIBUTE_ACCURACY = 4, | |
174 CHARACTER_ATTRIBUTE_SPEED = 5, | |
175 CHARACTER_ATTRIBUTE_LUCK = 6, | |
176 CHARACTER_ATTRIBUTE_HEALTH = 7, | |
177 CHARACTER_ATTRIBUTE_MANA = 8, | |
178 CHARACTER_ATTRIBUTE_AC_BONUS = 9, | |
179 | |
180 CHARACTER_ATTRIBUTE_RESIST_FIRE = 10, | |
181 CHARACTER_ATTRIBUTE_RESIST_AIR = 11, | |
182 CHARACTER_ATTRIBUTE_RESIST_WATER = 12, | |
183 CHARACTER_ATTRIBUTE_RESIST_EARTH = 13, | |
184 CHARACTER_ATTRIBUTE_RESIST_MIND = 14, | |
185 CHARACTER_ATTRIBUTE_RESIST_BODY = 15, | |
186 | |
187 CHARACTER_ATTRIBUTE_SKILL_ALCHEMY = 16, | |
188 CHARACTER_ATTRIBUTE_SKILL_STEALING = 17, | |
189 CHARACTER_ATTRIBUTE_SKILL_TRAP_DISARM = 18, | |
190 CHARACTER_ATTRIBUTE_SKILL_ITEM_ID = 19, | |
191 CHARACTER_ATTRIBUTE_SKILL_MONSTER_ID = 20, | |
192 CHARACTER_ATTRIBUTE_SKILL_ARMSMASTER = 21, | |
193 CHARACTER_ATTRIBUTE_SKILL_DODGE = 22, | |
194 CHARACTER_ATTRIBUTE_SKILL_UNARMED = 23, | |
195 | |
196 CHARACTER_ATTRIBUTE_LEVEL = 24, | |
197 CHARACTER_ATTRIBUTE_ATTACK = 25, | |
198 CHARACTER_ATTRIBUTE_MELEE_DMG_BONUS = 26, | |
199 CHARACTER_ATTRIBUTE_MELEE_DMG_MIN = 27, | |
200 CHARACTER_ATTRIBUTE_MELEE_DMG_MAX = 28, | |
201 CHARACTER_ATTRIBUTE_RANGED_ATTACK = 29, | |
202 CHARACTER_ATTRIBUTE_RANGED_DMG_BONUS = 30, | |
203 CHARACTER_ATTRIBUTE_RANGED_DMG_MIN = 31, | |
204 CHARACTER_ATTRIBUTE_RANGED_DMG_MAX = 32, | |
205 CHARACTER_ATTRIBUTE_RESIST_SPIRIT = 33, | |
206 | |
207 CHARACTER_ATTRIBUTE_SKILL_FIRE = 34, | |
208 CHARACTER_ATTRIBUTE_SKILL_AIR = 35, | |
209 CHARACTER_ATTRIBUTE_SKILL_WATER = 36, | |
210 CHARACTER_ATTRIBUTE_SKILL_EARTH = 37, | |
211 CHARACTER_ATTRIBUTE_SKILL_SPIRIT = 38, | |
212 CHARACTER_ATTRIBUTE_SKILL_MIND = 39, | |
213 CHARACTER_ATTRIBUTE_SKILL_BODY = 40, | |
214 CHARACTER_ATTRIBUTE_SKILL_LIGHT = 41, | |
215 CHARACTER_ATTRIBUTE_SKILL_DARK = 42, | |
216 CHARACTER_ATTRIBUTE_SKILL_MEDITATION = 43, | |
217 CHARACTER_ATTRIBUTE_SKILL_BOW = 44, | |
218 CHARACTER_ATTRIBUTE_SKILL_SHIELD = 45, | |
219 CHARACTER_ATTRIBUTE_SKILL_LEARNING = 46 | |
0 | 220 }; |
221 | |
222 /* 328 */ | |
1160 | 223 enum PLAYER_SKILL_TYPE: signed __int8 |
0 | 224 { |
135 | 225 PLAYER_SKILL_STAFF = 0, |
226 PLAYER_SKILL_SWORD = 1, | |
227 PLAYER_SKILL_DAGGER = 2, | |
228 PLAYER_SKILL_AXE = 3, | |
229 PLAYER_SKILL_SPEAR = 4, | |
230 PLAYER_SKILL_BOW = 5, | |
231 PLAYER_SKILL_MACE = 6, | |
232 PLAYER_SKILL_BLASTER = 7, | |
233 PLAYER_SKILL_SHIELD = 8, | |
234 PLAYER_SKILL_LEATHER = 9, | |
235 PLAYER_SKILL_CHAIN = 10, | |
236 PLAYER_SKILL_PLATE = 11, | |
237 PLAYER_SKILL_FIRE = 12, | |
238 PLAYER_SKILL_AIR = 13, | |
239 PLAYER_SKILL_WATER = 14, | |
240 PLAYER_SKILL_EARTH = 15, | |
241 PLAYER_SKILL_SPIRIT = 16, | |
198 | 242 PLAYER_SKILL_MIND = 17, |
135 | 243 PLAYER_SKILL_BODY = 18, |
198 | 244 PLAYER_SKILL_LIGHT = 19, |
245 PLAYER_SKILL_DARK = 20, | |
246 PLAYER_SKILL_ITEM_ID = 21, | |
247 PLAYER_SKILL_MERCHANT = 22, | |
248 PLAYER_SKILL_REPAIR = 23, | |
249 PLAYER_SKILL_BODYBUILDING = 24, | |
250 PLAYER_SKILL_MEDITATION = 25, | |
251 PLAYER_SKILL_PERCEPTION = 26, | |
252 PLAYER_SKILL_DIPLOMACY = 27, | |
253 PLAYER_SKILL_TIEVERY = 28, | |
135 | 254 PLAYER_SKILL_TRAP_DISARM = 29, |
198 | 255 PLAYER_SKILL_DODGE = 30, |
256 PLAYER_SKILL_UNARMED = 31, | |
257 PLAYER_SKILL_MONSTER_ID = 32, | |
135 | 258 PLAYER_SKILL_ARMSMASTER = 33, |
259 PLAYER_SKILL_STEALING = 34, | |
260 PLAYER_SKILL_ALCHEMY = 35, | |
198 | 261 PLAYER_SKILL_LEARNING = 36, |
374 | 262 PLAYER_SKILL_CLUB = 37, |
385 | 263 PLAYER_SKILL_MISC = 38, |
201 | 264 PLAYER_SKILL_INVALID = -1 |
0 | 265 }; |
266 | |
267 /* 329 */ | |
135 | 268 enum PLAYER_CLASS_TYPE: unsigned __int8 |
0 | 269 { |
135 | 270 PLAYER_CLASS_KNIGHT = 0, |
255 | 271 PLAYER_CLASS_CHEVALIER = 1, |
272 PLAYER_CLASS_CHAMPION = 2, | |
273 PLAYER_CLASS_BLACK_KNIGHT = 3, | |
135 | 274 PLAYER_CLASS_THEIF = 4, |
255 | 275 PLAYER_CLASS_ROGUE = 5, |
276 PLAYER_CLASS_SPY = 6, | |
277 PLAYER_CLASS_ASSASSIN = 7, | |
278 PLAYER_CLASS_MONK = 8, | |
279 PLAYER_CLASS_INITIATE = 9, | |
280 PLAYER_CLASS_MASTER = 10, | |
281 PLAYER_CLASS_NINJA = 11, | |
282 PLAYER_CLASS_PALADIN = 12, | |
283 PLAYER_CLASS_CRUSADER = 13, | |
284 PLAYER_CLASS_HERO = 14, | |
285 PLAYER_CLASS_VILLIAN = 15, | |
286 PLAYER_CLASS_ARCHER = 16, | |
287 PLAYER_CLASS_WARRIOR_MAGE = 17, | |
288 PLAYER_CLASS_MASTER_ARCHER = 18, | |
289 PLAYER_CLASS_SNIPER = 19, | |
290 PLAYER_CLASS_RANGER = 20, | |
291 PLAYER_CLASS_HUNTER = 21, | |
292 PLAYER_CLASS_RANGER_LORD = 22, | |
293 PLAYER_CLASS_BOUNTY_HUNTER = 23, | |
135 | 294 PLAYER_CLASS_CLERIC = 24, |
255 | 295 PLAYER_CLASS_PRIEST = 25, |
296 PLAYER_CLASS_PRIEST_OF_SUN = 26, | |
297 PLAYER_CLASS_PRIEST_OF_MOON = 27, | |
135 | 298 PLAYER_CLASS_DRUID = 28, |
255 | 299 PLAYER_CLASS_GREAT_DRUID = 29, |
300 PLAYER_CLASS_ARCH_DRUID = 30, | |
301 PLAYER_CLASS_WARLOCK = 31, | |
135 | 302 PLAYER_CLASS_SORCERER = 32, |
255 | 303 PLAYER_CLASS_WIZARD = 33, |
304 PLAYER_CLASS_ARCHMAGE = 34, | |
305 PLAYER_CLASS_LICH = 35 | |
0 | 306 }; |
307 | |
308 | |
309 | |
310 | |
311 #pragma pack(push, 1) | |
312 struct LloydBeacon | |
313 { | |
314 unsigned __int64 uBeaconTime; | |
1430 | 315 int PartyPos_X; |
316 int PartyPos_Y; | |
317 int PartyPos_Z; | |
318 __int16 PartyRot_X; | |
319 __int16 PartyRot_Y; | |
320 int SaveFileID; | |
0 | 321 }; |
322 #pragma pack(pop) | |
323 | |
324 | |
325 | |
326 #pragma pack(push, 1) | |
327 struct PlayerSpellbookChapter | |
328 { | |
198 | 329 char bIsSpellAvailable[11]; |
0 | 330 }; |
331 #pragma pack(pop) | |
332 | |
333 #pragma pack(push, 1) | |
334 struct PlayerSpells | |
335 { | |
336 union | |
337 { | |
338 struct | |
339 { | |
340 PlayerSpellbookChapter pFireSpellbook; | |
341 PlayerSpellbookChapter pAirSpellbook; | |
342 PlayerSpellbookChapter pWaterSpellbook; | |
343 PlayerSpellbookChapter pEarthSpellbook; | |
344 PlayerSpellbookChapter pSpiritSpellbook; | |
345 PlayerSpellbookChapter pMindSpellbook; | |
346 PlayerSpellbookChapter pBodySpellbook; | |
347 PlayerSpellbookChapter pLightSpellbook; | |
348 PlayerSpellbookChapter pDarkSpellbook; | |
232 | 349 char _pad_0; |
0 | 350 }; |
351 struct | |
352 { | |
353 PlayerSpellbookChapter pChapters[9]; | |
232 | 354 char _pad_1; |
0 | 355 }; |
1021 | 356 struct |
357 { | |
358 char bHaveSpell[99]; | |
359 char _pad_1; | |
360 }; | |
0 | 361 }; |
362 }; | |
363 #pragma pack(pop) | |
364 | |
365 | |
366 | |
367 #pragma pack(push, 1) | |
368 union PlayerEquipment | |
369 { | |
370 union | |
371 { | |
372 struct | |
373 { | |
898 | 374 unsigned int uShield; |
0 | 375 unsigned int uMainHand; |
376 unsigned int uBow; | |
898 | 377 unsigned int uArmor; |
0 | 378 unsigned int uHelm; |
379 unsigned int uBelt; | |
380 unsigned int uCloak; | |
910 | 381 unsigned int uGlove; |
898 | 382 unsigned int uBoot; |
910 | 383 unsigned int uAmulet; |
384 unsigned int uRings[6]; | |
385 //unsigned int field_2C; | |
386 //unsigned int field_30; | |
387 //unsigned int field_34; | |
388 //unsigned int field_38; | |
389 //unsigned int field_3C; | |
0 | 390 }; |
391 unsigned int pIndices[16]; | |
392 }; | |
393 }; | |
394 #pragma pack(pop) | |
395 | |
396 | |
397 | |
398 | |
399 | |
130 | 400 enum CHARACTER_EXPRESSION_ID: unsigned __int16 |
401 { | |
402 CHARACTER_EXPRESSION_INVALID = 0, | |
403 CHARACTER_EXPRESSION_1 = 1, | |
404 CHARACTER_EXPRESSION_CURSED = 2, | |
405 CHARACTER_EXPRESSION_WEAK = 3, | |
406 CHARACTER_EXPRESSION_SLEEP = 4, | |
407 CHARACTER_EXPRESSION_FEAR = 5, | |
408 CHARACTER_EXPRESSION_DRUNK = 6, | |
409 CHARACTER_EXPRESSION_INSANE = 7, | |
410 CHARACTER_EXPRESSION_POISONED = 8, | |
411 CHARACTER_EXPRESSION_DISEASED = 9, | |
412 CHARACTER_EXPRESSION_PARALYZED = 10, | |
413 CHARACTER_EXPRESSION_UNCONCIOUS = 11, | |
414 CHARACTER_EXPRESSION_PERTIFIED = 12, | |
415 CHARACTER_EXPRESSION_13 = 13, | |
416 CHARACTER_EXPRESSION_14 = 14, | |
417 CHARACTER_EXPRESSION_15 = 15, | |
418 CHARACTER_EXPRESSION_16 = 16, | |
419 CHARACTER_EXPRESSION_17 = 17, | |
420 CHARACTER_EXPRESSION_18 = 18, | |
421 CHARACTER_EXPRESSION_19 = 19, | |
422 CHARACTER_EXPRESSION_20 = 20, | |
423 CHARACTER_EXPRESSION_21 = 21, | |
424 CHARACTER_EXPRESSION_22 = 22, | |
425 CHARACTER_EXPRESSION_23 = 23, | |
426 CHARACTER_EXPRESSION_24 = 24, | |
427 CHARACTER_EXPRESSION_25 = 25, | |
428 CHARACTER_EXPRESSION_26 = 26, | |
429 CHARACTER_EXPRESSION_27 = 27, | |
430 CHARACTER_EXPRESSION_28 = 28, | |
431 CHARACTER_EXPRESSION_29 = 29, | |
432 CHARACTER_EXPRESSION_30 = 30, | |
433 CHARACTER_EXPRESSION_31 = 31, | |
434 CHARACTER_EXPRESSION_32 = 32, | |
435 CHARACTER_EXPRESSION_33 = 33, | |
1352
88f80476c99c
Player::PlayEmotion simplified main condition, renamed a few expression enum vals
Grumpy7
parents:
1348
diff
changeset
|
436 CHARACTER_EXPRESSION_DMGRECVD_MINOR = 34, |
88f80476c99c
Player::PlayEmotion simplified main condition, renamed a few expression enum vals
Grumpy7
parents:
1348
diff
changeset
|
437 CHARACTER_EXPRESSION_DMGRECVD_MODERATE = 35, |
88f80476c99c
Player::PlayEmotion simplified main condition, renamed a few expression enum vals
Grumpy7
parents:
1348
diff
changeset
|
438 CHARACTER_EXPRESSION_DMGRECVD_MAJOR = 36, |
130 | 439 CHARACTER_EXPRESSION_37 = 37, |
440 CHARACTER_EXPRESSION_38 = 38, | |
441 CHARACTER_EXPRESSION_39 = 39, | |
442 | |
443 // ? | |
444 | |
831 | 445 CHARACTER_EXPRESSION_SCARED = 46, // like falling |
130 | 446 |
447 CHARACTER_EXPRESSION_54 = 54, | |
448 CHARACTER_EXPRESSION_55 = 55, | |
449 CHARACTER_EXPRESSION_56 = 56, | |
450 CHARACTER_EXPRESSION_57 = 57, | |
1352
88f80476c99c
Player::PlayEmotion simplified main condition, renamed a few expression enum vals
Grumpy7
parents:
1348
diff
changeset
|
451 CHARACTER_EXPRESSION_FALLING = 58, |
130 | 452 |
453 // ? | |
454 | |
455 CHARACTER_EXPRESSION_DEAD = 98, | |
456 CHARACTER_EXPRESSION_ERADICATED = 99, | |
457 }; | |
458 | |
459 | |
0 | 460 enum PLAYER_SEX: unsigned __int8 |
461 { | |
462 SEX_MALE = 0, | |
463 SEX_FEMALE = 1 | |
464 }; | |
465 | |
466 #pragma pack(push, 1) | |
467 struct Player | |
468 { | |
1363 | 469 static const unsigned int INVETORYSLOTSWIDTH = 14; |
470 static const unsigned int INVETORYSLOTSHEIGHT = 9; | |
471 | |
0 | 472 |
473 Player(); | |
474 | |
475 void SetVariable(enum VariableType var, signed int a3); | |
476 void AddVariable(enum VariableType var, signed int val); | |
501 | 477 bool SubtractVariable(enum VariableType VarNum, signed int pValue); |
484 | 478 bool CompareVariable(enum VariableType VarNum, signed int pValue); |
0 | 479 void UseItem_DrinkPotion_etc(signed int a2, int a3); |
480 bool AddItem(struct ItemGen *pItem); | |
1552
d253172de469
Player::CanFitItem, AddItem, AddItem2 changed changed the retarded 2 dimensional array traversal, changed GetActualAttribute input parameters to get rid of the attrid case
Grumpy7
parents:
1551
diff
changeset
|
481 int GetActualAttribute(CHARACTER_ATTRIBUTE_TYPE attrId, unsigned short Player::* attrValue, unsigned short Player::* attrBonus); |
0 | 482 int GetBaseStrength(); |
483 int GetBaseIntelligence(); | |
484 int GetBaseWillpower(); | |
485 int GetBaseEndurance(); | |
486 int GetBaseAccuracy(); | |
487 int GetBaseSpeed(); | |
488 int GetBaseLuck(); | |
489 int GetBaseLevel(); | |
490 int GetActualLevel(); | |
491 int GetActualMight(); | |
492 int GetActualIntelligence(); | |
493 int GetActualWillpower(); | |
494 int GetActualEndurance(); | |
495 int GetActualAccuracy(); | |
496 int GetActualSpeed(); | |
497 int GetActualLuck(); | |
498 int GetActualAttack(int a2); | |
499 int GetMeleeDamageMinimal(); | |
500 int GetMeleeDamageMaximal(); | |
1550
cdb7fafede0c
Player::CalculateMeleeDamageTo extracted 2 almost identical sections to a separate function, variable cleanup, changed parameter types
Grumpy7
parents:
1537
diff
changeset
|
501 int CalculateMeleeDamageTo(bool ignoreSkillBonus, bool ignoreOffhand, unsigned int uTargetActorID); |
0 | 502 int GetRangedAttack(); |
503 int GetRangedDamageMin(); | |
504 int GetRangedDamageMax(); | |
1551
a9e8d2a7abb5
Player::CalculateRangedDamageTo, finishing cleanup accidentally commited in previous commit
Grumpy7
parents:
1550
diff
changeset
|
505 int CalculateRangedDamageTo(int a2); |
0 | 506 char *GetMeleeDamageString(); |
507 char *GetRangedDamageString(); | |
508 bool CanTrainToNextLevel(); | |
509 unsigned int GetExperienceDisplayColor(); | |
1036 | 510 int CalculateIncommingDamage(DAMAGE_TYPE dmg_type, int amount); |
821 | 511 ITEM_EQUIP_TYPE GetEquippedItemEquipType(ITEM_EQUIP_TYPE uEquipSlot); |
512 PLAYER_SKILL_TYPE GetEquippedItemSkillType(ITEM_EQUIP_TYPE uEquipSlot); | |
0 | 513 bool IsUnarmed(); |
821 | 514 bool HasItemEquipped(ITEM_EQUIP_TYPE uEquipIndex); |
0 | 515 bool HasEnchantedItemEquipped(int uEnchantment); |
1080 | 516 bool WearsItem(int item_id, ITEM_EQUIP_TYPE equip_type); |
0 | 517 bool StealFromShop(struct ItemGen *a2, int a3, int a4, int a5, int *a6); |
518 int StealFromActor(unsigned int uActorID, int _steal_perm, int reputation); | |
519 void Heal(int amount); | |
1036 | 520 int ReceiveDamage(signed int amount, DAMAGE_TYPE dmg_type); |
0 | 521 int _48DCF6(int a2, struct Actor *pActor); |
522 unsigned int GetSpellSchool(unsigned int uSpellID); | |
816 | 523 int GetAttackRecoveryTime(bool bRangedAttack); |
0 | 524 int GetMaxHealth(); |
525 int GetMaxMana(); | |
526 int GetBaseAC(); | |
527 int GetActualAC(); | |
528 unsigned int GetBaseAge(); | |
529 unsigned int GetActualAge(); | |
530 int GetBaseResistance(enum CHARACTER_ATTRIBUTE_TYPE a2); | |
531 int GetActualResistance(enum CHARACTER_ATTRIBUTE_TYPE a2); | |
532 void SetRecoveryTime(signed int sRecoveryTime); | |
533 void RandomizeName(); | |
534 unsigned int GetMajorConditionIdx(); | |
1036 | 535 int GetParameterBonus(int player_parameter); |
1597
33a82b36c3e8
Player::GetActualResistance cleaned up, some minor changes in Player::Recover, _48EA46_calc_special_bonus_by_items renamed to GetSpecialItemBonus
Grumpy7
parents:
1595
diff
changeset
|
536 int GetSpecialItemBonus(int enchantmentId); |
1595
a52a01aaf439
Player::GetBaseResistance cleanup, setting default parameter to Player::GetItemsBonus
Grumpy7
parents:
1593
diff
changeset
|
537 int GetItemsBonus(enum CHARACTER_ATTRIBUTE_TYPE attr, bool a3 = false); |
0 | 538 int GetMagicalBonus(enum CHARACTER_ATTRIBUTE_TYPE a2); |
1008 | 539 int GetActualSkillLevel(PLAYER_SKILL_TYPE uSkillType); |
0 | 540 int GetSkillBonus(enum CHARACTER_ATTRIBUTE_TYPE a2); |
541 enum CHARACTER_RACE GetRace(); | |
187 | 542 PLAYER_SEX GetSexByVoice(); |
0 | 543 void SetInitialStats(); |
1022 | 544 void SetSexByVoice(); |
135 | 545 void Reset(PLAYER_CLASS_TYPE classType); |
821 | 546 PLAYER_SKILL_TYPE GetSkillIdxByOrder(signed int order); |
0 | 547 void DecreaseAttribute(int eAttribute); |
1273 | 548 void IncreaseAttribute(int eAttribute); |
0 | 549 void Player::Zero(); |
297 | 550 unsigned int GetStatColor(int uStat); |
0 | 551 bool DiscardConditionIfLastsLongerThan(unsigned int uCondition, unsigned __int64 uTime); |
917 | 552 int SelectPhrasesTransaction(ItemGen *pItem, int building_type, int BuildID_2Events, int a5); |
0 | 553 int GetBodybuilding(); |
607 | 554 int GetMeditation(); |
1553
b98812ead5d9
Get(skillname) functions cleaned up, using GetMultiplierForSkillLevel instead of nested conditions
Grumpy7
parents:
1552
diff
changeset
|
555 bool CanIdentify(ItemGen *pItem); |
b98812ead5d9
Get(skillname) functions cleaned up, using GetMultiplierForSkillLevel instead of nested conditions
Grumpy7
parents:
1552
diff
changeset
|
556 bool CanRepair(ItemGen *pItem); |
0 | 557 int GetMerchant(); |
558 int GetPerception(); | |
559 int GetDisarmTrap(); | |
560 char GetLearningPercent(); | |
561 bool CanFitItem(unsigned int uSlot, unsigned int uItemID); | |
1384
b51332ab228f
changed a few member variables in Player to slightly less confusing names
Grumpy7
parents:
1383
diff
changeset
|
562 int FindFreeInventoryListSlot(); |
0 | 563 int CreateItemInInventory(unsigned int uSlot, unsigned int uItemID); |
564 int HasSkill(unsigned int uSkillType); | |
1382
132a6a0d5cef
Player::AddItem2, Player::CreateItemInInventory2 cleanup
Grumpy7
parents:
1365
diff
changeset
|
565 void WearItem(unsigned int uItemID); |
1014 | 566 int AddItem(int uSlot, unsigned int uItemID); |
567 int AddItem2(int uSlot, ItemGen *Src); | |
1384
b51332ab228f
changed a few member variables in Player to slightly less confusing names
Grumpy7
parents:
1383
diff
changeset
|
568 int CreateItemInInventory2(unsigned int index, ItemGen *Src); |
b51332ab228f
changed a few member variables in Player to slightly less confusing names
Grumpy7
parents:
1383
diff
changeset
|
569 void PutItemArInventoryIndex(int uItemID, int itemListPos, int uSlot); |
1006 | 570 void RemoveItemAtInventoryIndex(unsigned int uSlot); |
0 | 571 bool CanAct(); |
572 bool CanSteal(); | |
573 bool CanEquip_RaceAndAlignmentCheck(unsigned int uItemID); | |
1361
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
574 void SetCondition(unsigned int uConditionIdx, int a3); |
1355 | 575 bool ProfessionOrGuildFlagsCorrect(unsigned int uClass, int a3); |
187 | 576 void PlaySound(PlayerSpeech speech, int a3); |
577 void PlayEmotion(CHARACTER_EXPRESSION_ID expression, int a3); | |
1012 | 578 void ItemsEnchant(int enchant_count); |
0 | 579 unsigned int GetItemIDAtInventoryIndex(int *a2); |
1348 | 580 bool IsPlayerHealableByTemple(); |
1275 | 581 int GetBaseIdentifyPrice(float a2); |
582 int GetBaseRepairPrice(int a2, float a3); | |
583 int GetBaseBuyingPrice(int a2, float a3); | |
584 int GetBaseSellingPrice(int a2, float a3); | |
916 | 585 int GetPriceRepair(int a2, float a3); |
586 int GetPriceIdentification(float a2); | |
749 | 587 int GetBuyingPrice(unsigned int uRealValue, float price_multiplier); |
917 | 588 int GetPriceSell(int uRealValue, float price_multiplier); |
1274
351bc06722f2
Player::_4B807C changed to Player::GetTempleHealCostModifier, cleaned up
Grumpy7
parents:
1273
diff
changeset
|
589 int GetTempleHealCostModifier(float a2); |
1036 | 590 int GetConditionDayOfWeek(unsigned int uCondition); |
1346
1434b36f4bdb
Player::_43EEF3 renamed to NothingOrJustBlastersEquipped
Grumpy7
parents:
1325
diff
changeset
|
591 bool NothingOrJustBlastersEquipped(); |
1014 | 592 void SalesProcess(unsigned int inventory_idnx, int item_index, int _2devent_idx);//0x4BE2DD |
0 | 593 bool Recover(signed int a2); |
594 bool CanCastSpell(unsigned int uRequiredMana); | |
1259
d6e5b6b76612
Player::SetVariable cleanup - removing unused variables and function calls with them, some case shuffling
Grumpy7
parents:
1258
diff
changeset
|
595 void PlaySoundBasedOnCondition(int currPlayerId); |
d6e5b6b76612
Player::SetVariable cleanup - removing unused variables and function calls with them, some case shuffling
Grumpy7
parents:
1258
diff
changeset
|
596 void DrawPlayerBuffAnimBasedOnCondition(int currPlayerId); |
1276
f11651288371
changed sub_467E7F_EquipBody to Player::EquipBody, some more header file stuff
Grumpy7
parents:
1275
diff
changeset
|
597 void EquipBody(ITEM_EQUIP_TYPE uEquipType); |
1620
61ea994a1812
sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped to Player::HasUnderwaterSuitEquipped, sub_43EDB9_get_some_race_sex_relation_2 to ShouldLoadTexturesForRaceAndGender, Player_has_item to Player::HasItem
Grumpy7
parents:
1605
diff
changeset
|
598 bool HasUnderwaterSuitEquipped(); |
61ea994a1812
sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped to Player::HasUnderwaterSuitEquipped, sub_43EDB9_get_some_race_sex_relation_2 to ShouldLoadTexturesForRaceAndGender, Player_has_item to Player::HasItem
Grumpy7
parents:
1605
diff
changeset
|
599 bool HasItem(unsigned int uItemID, char a3); |
0 | 600 |
1553
b98812ead5d9
Get(skillname) functions cleaned up, using GetMultiplierForSkillLevel instead of nested conditions
Grumpy7
parents:
1552
diff
changeset
|
601 unsigned int GetMultiplierForSkillLevel(unsigned int skillValue, int mult1, int mult2, int mult3, int mult4); |
1550
cdb7fafede0c
Player::CalculateMeleeDamageTo extracted 2 almost identical sections to a separate function, variable cleanup, changed parameter types
Grumpy7
parents:
1537
diff
changeset
|
602 int CalculateMeleeDmgToEnemyWithWeapon( ItemGen * weapon, unsigned int uTargetActorID , bool addOneDice); |
1563 | 603 bool WearsItemAnyWhere(int item_id); |
1593
5658d0f3b5ee
Player::GetAttackRecoveryTime removing label, fixing shield skill being ignored, fixing haste being ignored
Grumpy7
parents:
1567
diff
changeset
|
604 float GetArmorRecoveryMultiplierFromSkillLevel( unsigned char armour_skill_type, float param2, float param3, float param4, float param5 ); |
1550
cdb7fafede0c
Player::CalculateMeleeDamageTo extracted 2 almost identical sections to a separate function, variable cleanup, changed parameter types
Grumpy7
parents:
1537
diff
changeset
|
605 |
1362
d6cf8ead9242
Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents:
1361
diff
changeset
|
606 bool IsWeak(); |
d6cf8ead9242
Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents:
1361
diff
changeset
|
607 bool IsDead(); |
d6cf8ead9242
Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents:
1361
diff
changeset
|
608 bool IsEradicated(); |
d6cf8ead9242
Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents:
1361
diff
changeset
|
609 bool IsZombie(); |
d6cf8ead9242
Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents:
1361
diff
changeset
|
610 bool IsCursed(); |
d6cf8ead9242
Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents:
1361
diff
changeset
|
611 bool IsPertified(); |
d6cf8ead9242
Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents:
1361
diff
changeset
|
612 bool IsUnconcious(); |
d6cf8ead9242
Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents:
1361
diff
changeset
|
613 bool IsAsleep(); |
d6cf8ead9242
Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents:
1361
diff
changeset
|
614 bool IsParalyzed(); |
0 | 615 |
1361
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
616 void SetCursed(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
617 void SetWeak(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
618 void SetAsleep(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
619 void SetAfraid(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
620 void SetDrunk(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
621 void SetInsane(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
622 void SetPoison1(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
623 void SetDisease1(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
624 void SetPoison2(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
625 void SetDisease2(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
626 void SetPoison3(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
627 void SetDisease3(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
628 void SetParalyzed(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
629 void SetUnconcious(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
630 void SetDead(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
631 void SetPertified(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
632 void SetEradicated(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
633 void SetZombie(bool state); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
634 |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
635 void SetCondWeakWithBlockCheck (int blockable); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
636 void SetCondInsaneWithBlockCheck (int blockable); |
b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents:
1357
diff
changeset
|
637 void SetCondDeadWithBlockCheck (int blockable); |
1567
9f8b3e904e14
Player::ReceiveDamage, very small edits; prepended "Is" to item functions returning bool values (broken, indetified, stolen)
Grumpy7
parents:
1563
diff
changeset
|
638 void SetCondUnconsciousWithBlockCheck( int blockable ); |
1357
06926081358f
Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents:
1355
diff
changeset
|
639 |
06926081358f
Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents:
1355
diff
changeset
|
640 inline bool IsRaceHuman() {return GetRace() == CHARACTER_RACE_HUMAN;} |
06926081358f
Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents:
1355
diff
changeset
|
641 inline bool IsRaceDwarf() {return GetRace() == CHARACTER_RACE_DWARF;} |
06926081358f
Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents:
1355
diff
changeset
|
642 inline bool IsRaceElf() {return GetRace() == CHARACTER_RACE_ELF;} |
06926081358f
Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents:
1355
diff
changeset
|
643 inline bool IsRaceGoblin() {return GetRace() == CHARACTER_RACE_GOBLIN;} |
06926081358f
Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents:
1355
diff
changeset
|
644 |
06926081358f
Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents:
1355
diff
changeset
|
645 inline bool IsMale() { return GetSexByVoice() == SEX_MALE;} |
06926081358f
Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents:
1355
diff
changeset
|
646 inline bool IsFemale() { return !IsMale();} |
0 | 647 __int64 pConditions[20]; |
648 unsigned __int64 uExperience; | |
649 char pName[16]; | |
650 PLAYER_SEX uSex; | |
135 | 651 PLAYER_CLASS_TYPE classType; |
1014 | 652 unsigned __int8 uCurrentFace; |
0 | 653 char field_BB; |
654 unsigned __int16 uMight; | |
655 unsigned __int16 uMightBonus; | |
656 unsigned __int16 uIntelligence; | |
657 unsigned __int16 uIntelligenceBonus; | |
658 unsigned __int16 uWillpower; | |
659 unsigned __int16 uWillpowerBonus; | |
660 unsigned __int16 uEndurance; | |
661 unsigned __int16 uEnduranceBonus; | |
662 unsigned __int16 uSpeed; | |
663 unsigned __int16 uSpeedBonus; | |
664 unsigned __int16 uAccuracy; | |
665 unsigned __int16 uAccuracyBonus; | |
666 unsigned __int16 uLuck; | |
667 unsigned __int16 uLuckBonus; | |
668 __int16 sACModifier; | |
669 unsigned __int16 uLevel; | |
670 __int16 sLevelModifier; | |
671 __int16 sAgeModifier; | |
672 int field_E0; | |
673 int field_E4; | |
674 int field_E8; | |
675 int field_EC; | |
676 int field_F0; | |
677 int field_F4; | |
678 int field_F8; | |
679 int field_FC; | |
680 int field_100; | |
681 int field_104; | |
682 union | |
683 { | |
684 struct | |
685 { | |
686 unsigned __int16 skillStaff; | |
687 unsigned __int16 skillSword; | |
688 unsigned __int16 skillDagger; | |
689 unsigned __int16 skillAxe; | |
690 unsigned __int16 skillSpear; | |
691 unsigned __int16 skillBow; | |
692 unsigned __int16 skillMace; | |
693 unsigned __int16 skillBlaster; | |
694 unsigned __int16 skillShield; | |
695 unsigned __int16 skillLeather; | |
696 unsigned __int16 skillChain; | |
697 unsigned __int16 skillPlate; | |
698 unsigned __int16 skillFire; | |
699 unsigned __int16 skillAir; | |
700 unsigned __int16 skillWater; | |
701 unsigned __int16 skillEarth; | |
702 unsigned __int16 skillSpirit; | |
703 unsigned __int16 skillMind; | |
704 unsigned __int16 skillBody; | |
705 unsigned __int16 skillLight; | |
706 unsigned __int16 skillDark; | |
707 unsigned __int16 skillItemId; | |
708 unsigned __int16 skillMerchant; | |
709 unsigned __int16 skillRepair; | |
710 unsigned __int16 skillBodybuilding; | |
711 unsigned __int16 skillMeditation; | |
712 unsigned __int16 skillPerception; | |
713 unsigned __int16 skillDiplomacy; | |
714 unsigned __int16 skillThievery; | |
715 unsigned __int16 skillDisarmTrap; | |
716 unsigned __int16 skillDodge; | |
717 unsigned __int16 skillUnarmed; | |
718 unsigned __int16 skillMonsterId; | |
719 unsigned __int16 skillArmsmaster; | |
720 unsigned __int16 skillStealing; | |
721 unsigned __int16 skillAlchemy; | |
722 unsigned __int16 skillLearning; | |
723 }; | |
724 unsigned __int16 pActiveSkills[37]; | |
725 }; | |
1460
ff2118028c71
renaming _guilds_member_bits to _achieved_awards_bits
Gloval
parents:
1430
diff
changeset
|
726 unsigned char _achieved_awards_bits[64]; |
0 | 727 PlayerSpells spellbook; |
1019 | 728 char field__1F5[2]; // used to be [31] |
729 int pure_luck_used; | |
730 int pure_speed_used; | |
731 int pure_intellect_used; | |
732 int pure_endurance_used; | |
733 int pure_willpower_used; | |
734 int pure_accuracy_used; | |
735 int pure_might_used; | |
736 union //214h | |
1012 | 737 { |
738 struct | |
739 { | |
1384
b51332ab228f
changed a few member variables in Player to slightly less confusing names
Grumpy7
parents:
1383
diff
changeset
|
740 ItemGen pInventoryItemList[126]; |
1012 | 741 ItemGen pEquippedItems[12]; |
742 }; | |
743 ItemGen pOwnItems[138]; | |
744 }; | |
745 | |
1384
b51332ab228f
changed a few member variables in Player to slightly less confusing names
Grumpy7
parents:
1383
diff
changeset
|
746 int pInventoryMatrix[126]; |
0 | 747 __int16 sResFireBase; |
748 __int16 sResAirBase; | |
749 __int16 sResWaterBase; | |
750 __int16 sResEarthBase; | |
751 __int16 field_177C; | |
752 __int16 sResMagicBase; | |
753 __int16 sResSpiritBase; | |
754 __int16 sResMindBase; | |
755 __int16 sResBodyBase; | |
756 __int16 sResLightBase; | |
757 __int16 sResDarkBase; | |
758 __int16 sResFireBonus; | |
759 __int16 sResAirBonus; | |
760 __int16 sResWaterBonus; | |
761 __int16 sResEarthBonus; | |
762 __int16 field_1792; | |
763 __int16 sResMagicBonus; | |
764 __int16 sResSpiritBonus; | |
765 __int16 sResMindBonus; | |
766 __int16 sResBodyBonus; | |
767 __int16 sResLightBonus; | |
768 __int16 sResDarkBonus; | |
769 SpellBuff pPlayerBuffs[24]; | |
770 unsigned int uVoiceID; | |
1014 | 771 int uPrevVoiceID; |
772 int uPrevFace; | |
0 | 773 int field_192C; |
774 int field_1930; | |
775 unsigned __int16 uTimeToRecovery; | |
776 char field_1936; | |
777 char field_1937; | |
778 unsigned int uSkillPoints; | |
779 int sHealth; | |
780 int sMana; | |
781 unsigned int uBirthYear; | |
782 PlayerEquipment pEquipment; | |
783 int field_1988[49]; | |
784 char field_1A4C; | |
785 char field_1A4D; | |
198 | 786 char lastOpenedSpellbookPage; |
0 | 787 unsigned __int8 uQuickSpell; |
788 char field_1A50[64]; | |
789 char _some_attack_bonus; | |
790 char field_1A91; | |
791 char _melee_dmg_bonus; | |
792 char field_1A93; | |
793 char _ranged_atk_bonus; | |
794 char field_1A95; | |
795 char _ranged_dmg_bonus; | |
796 char field_1A97; | |
797 char uFullHealthBonus; | |
798 char _health_related; | |
799 char uFullManaBonus; | |
800 char _mana_related; | |
130 | 801 CHARACTER_EXPRESSION_ID expression; |
0 | 802 unsigned __int16 uExpressionTimePassed; |
803 unsigned __int16 uExpressionTimeLength; | |
804 __int16 field_1AA2; | |
554
9caf59edb1ee
Cave and Temple load and even doesn't crash (for a while).
Nomad
parents:
501
diff
changeset
|
805 int _expression21_animtime; |
9caf59edb1ee
Cave and Temple load and even doesn't crash (for a while).
Nomad
parents:
501
diff
changeset
|
806 int _expression21_frameset; |
0 | 807 LloydBeacon pInstalledBeacons[5]; |
808 char uNumDivineInterventionCastsThisDay; | |
809 char uNumArmageddonCasts; | |
810 char uNumFireSpikeCasts; | |
811 char field_1B3B; | |
812 }; | |
813 #pragma pack(pop) |