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