0
|
1 #pragma once
|
|
2 #include "Items.h"
|
|
3 #include "Spells.h"
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
187
|
9
|
|
10
|
|
11 /* 301 */
|
|
12 enum PlayerSpeech
|
|
13 {
|
|
14 SPEECH_1 = 1,
|
|
15 SPEECH_2 = 2,
|
|
16 SPEECH_3 = 3,
|
|
17 SPEECH_4 = 4,
|
|
18 SPEECH_5 = 5,
|
|
19 SPEECH_6 = 6,
|
|
20 SPEECH_7 = 7,
|
|
21 SPEECH_8 = 8,
|
|
22 SPEECH_9 = 9,
|
|
23 SPEECH_10 = 10,
|
|
24 SPEECH_11 = 11,
|
|
25 SPEECH_12 = 12,
|
|
26 SPEECH_14 = 14,
|
201
|
27 SPEECH_NoRoom = 15, // when placing to inventory
|
187
|
28 SPEECH_16 = 16,
|
|
29 SPEECH_17 = 17,
|
|
30 SPEECH_18 = 18,
|
|
31 SPEECH_19 = 19,
|
|
32 SPEECH_20 = 20,
|
|
33 SPEECH_21 = 21,
|
201
|
34 SPEECH_GoodDay = 22, // greets on dialogue start
|
188
|
35 SPEECH_GoodEvening = 23,
|
187
|
36 SPEECH_24 = 24,
|
|
37 SPEECH_25 = 25,
|
|
38 SPEECH_26 = 26,
|
|
39 SPEECH_27 = 27,
|
|
40 SPEECH_28 = 28,
|
|
41 SPEECH_29 = 29,
|
|
42 SPEECH_30 = 30,
|
|
43 SPEECH_31 = 31,
|
|
44 SPEECH_32 = 32,
|
|
45 SPEECH_33 = 33,
|
|
46 SPEECH_34 = 34,
|
|
47 SPEECH_35 = 35,
|
|
48 SPEECH_36 = 36,
|
|
49 SPEECH_37 = 37,
|
248
|
50 SPEECH_NotEnoughGold = 38,
|
187
|
51 SPEECH_39 = 39,
|
|
52 SPEECH_40 = 40,
|
|
53 SPEECH_41 = 41,
|
|
54 SPEECH_42 = 42,
|
|
55 SPEECH_43 = 43,
|
|
56 SPEECH_44 = 44,
|
|
57 SPEECH_45 = 45,
|
|
58 SPEECH_46 = 46,
|
|
59 SPEECH_47 = 47,
|
|
60 SPEECH_48 = 48,
|
|
61 SPEECH_49 = 49,
|
|
62 SPEECH_50 = 50,
|
|
63 SPEECH_51 = 51,
|
|
64 SPEECH_52 = 52,
|
|
65 SPEECH_53 = 53,
|
|
66 SPEECH_54 = 54,
|
|
67 SPEECH_55 = 55,
|
|
68 SPEECH_56 = 56,
|
|
69 SPEECH_57 = 57,
|
|
70 SPEECH_58 = 58,
|
|
71 SPEECH_59 = 59,
|
|
72 SPEECH_60 = 60,
|
|
73 SPEECH_61 = 61,
|
|
74 SPEECH_62 = 62,
|
|
75 SPEECH_63 = 63,
|
|
76 SPEECH_64 = 64,
|
|
77 SPEECH_Yell = 65,
|
|
78 SPEECH_66 = 66,
|
|
79 SPEECH_67 = 67,
|
|
80 SPEECH_68 = 68,
|
|
81 SPEECH_69 = 69,
|
|
82 SPEECH_70 = 70,
|
|
83 SPEECH_71 = 71,
|
|
84 SPEECH_72 = 72,
|
|
85 SPEECH_73 = 73,
|
|
86 SPEECH_74 = 74,
|
|
87 SPEECH_75 = 75,
|
|
88 SPEECH_76 = 76,
|
|
89 SPEECH_77 = 77,
|
|
90 SPEECH_78 = 78,
|
|
91 SPEECH_79 = 79,
|
|
92 SPEECH_80 = 80,
|
|
93 SPEECH_81 = 81,
|
|
94 SPEECH_82 = 82,
|
|
95 SPEECH_83 = 83,
|
|
96 SPEECH_84 = 84,
|
|
97 SPEECH_85 = 85,
|
|
98 SPEECH_86 = 86,
|
|
99 SPEECH_87 = 87,
|
|
100 SPEECH_88 = 88,
|
|
101 SPEECH_89 = 89,
|
|
102 SPEECH_90 = 90,
|
|
103 SPEECH_91 = 91,
|
|
104 SPEECH_92 = 92,
|
|
105 SPEECH_93 = 93,
|
|
106 SPEECH_94 = 94,
|
|
107 SPEECH_95 = 95,
|
|
108 SPEECH_96 = 96,
|
|
109 SPEECH_97 = 97,
|
|
110 SPEECH_98 = 98,
|
|
111 SPEECH_99 = 99,
|
|
112 SPEECH_100 = 100,
|
|
113 SPEECH_101 = 101,
|
|
114 SPEECH_PickMe = 102,
|
|
115 SPEECH_103 = 103,
|
|
116 SPEECH_104 = 104,
|
|
117 SPEECH_105 = 105,
|
|
118 SPEECH_106 = 106,
|
|
119 SPEECH_107 = 107,
|
|
120 SPEECH_108 = 108,
|
|
121 SPEECH_109 = 109,
|
|
122 SPEECH_110 = 110,
|
|
123 };
|
|
124
|
|
125
|
|
126
|
0
|
127 /* 339 */
|
|
128 enum CHARACTER_RACE
|
|
129 {
|
|
130 CHARACTER_RACE_HUMAN = 0x0,
|
|
131 CHARACTER_RACE_ELF = 0x1,
|
|
132 CHARACTER_RACE_GOBLIN = 0x2,
|
|
133 CHARACTER_RACE_DWARF = 0x3,
|
|
134 };
|
|
135 enum CHARACTER_ATTRIBUTE
|
|
136 {
|
|
137 CHARACTER_MIGHT = 0x0,
|
|
138 CHARACTER_INTELLIGANCE = 0x1,
|
|
139 CHARACTER_WILLPOWER = 0x2,
|
|
140 CHARACTER_ENDURANCE = 0x3,
|
|
141 CHARACTER_ACCURACY = 0x4,
|
|
142 CHARACTER_SPEED = 0x5,
|
|
143 CHARACTER_LUCK = 0x6,
|
|
144 };
|
|
145
|
130
|
146
|
|
147
|
0
|
148 /* 332 */
|
|
149 enum CHARACTER_ATTRIBUTE_TYPE
|
|
150 {
|
|
151 CHARACTER_ATTRIBUTE_STRENGTH = 0x0,
|
|
152 CHARACTER_ATTRIBUTE_INTELLIGENCE = 0x1,
|
|
153 CHARACTER_ATTRIBUTE_WILLPOWER = 0x2,
|
|
154 CHARACTER_ATTRIBUTE_ENDURANCE = 0x3,
|
|
155 CHARACTER_ATTRIBUTE_ACCURACY = 0x4,
|
|
156 CHARACTER_ATTRIBUTE_SPEED = 0x5,
|
|
157 CHARACTER_ATTRIBUTE_LUCK = 0x6,
|
|
158 CHARACTER_ATTRIBUTE_HEALTH = 0x7,
|
|
159 CHARACTER_ATTRIBUTE_MANA = 0x8,
|
|
160 CHARACTER_ATTRIBUTE_AC_BONUS = 0x9,
|
|
161 CHARACTER_ATTRIBUTE_RESIST_FIRE = 0xA,
|
|
162 CHARACTER_ATTRIBUTE_RESIST_AIR = 0xB,
|
|
163 CHARACTER_ATTRIBUTE_RESIST_WATER = 0xC,
|
|
164 CHARACTER_ATTRIBUTE_RESIST_EARTH = 0xD,
|
|
165 CHARACTER_ATTRIBUTE_RESIST_MIND = 0xE,
|
|
166 CHARACTER_ATTRIBUTE_RESIST_BODY = 0xF,
|
|
167 CHARACTER_ATTRIBUTE_LEVEL = 0x18,
|
|
168 CHARACTER_ATTRIBUTE_ATTACK = 0x19,
|
|
169 CHARACTER_ATTRIBUTE_MELEE_DMG_BONUS = 0x1A,
|
|
170 CHARACTER_ATTRIBUTE_MELEE_DMG_MIN = 0x1B,
|
|
171 CHARACTER_ATTRIBUTE_MELEE_DMG_MAX = 0x1C,
|
|
172 CHARACTER_ATTRIBUTE_RANGED_ATTACK = 0x1D,
|
|
173 CHARACTER_ATTRIBUTE_RANGED_DAMAGE_BONUS = 0x1E,
|
|
174 CHARACTER_ATTRIBUTE_RANGED_DAMAGE_MIN = 0x1F,
|
|
175 CHARACTER_ATTRIBUTE_RANGED_DAMAGE_MAX = 0x20,
|
|
176 };
|
|
177
|
|
178 /* 328 */
|
|
179 enum PLAYER_SKILL_TYPE
|
|
180 {
|
135
|
181 PLAYER_SKILL_STAFF = 0,
|
|
182 PLAYER_SKILL_SWORD = 1,
|
|
183 PLAYER_SKILL_DAGGER = 2,
|
|
184 PLAYER_SKILL_AXE = 3,
|
|
185 PLAYER_SKILL_SPEAR = 4,
|
|
186 PLAYER_SKILL_BOW = 5,
|
|
187 PLAYER_SKILL_MACE = 6,
|
|
188 PLAYER_SKILL_BLASTER = 7,
|
|
189 PLAYER_SKILL_SHIELD = 8,
|
|
190 PLAYER_SKILL_LEATHER = 9,
|
|
191 PLAYER_SKILL_CHAIN = 10,
|
|
192 PLAYER_SKILL_PLATE = 11,
|
|
193 PLAYER_SKILL_FIRE = 12,
|
|
194 PLAYER_SKILL_AIR = 13,
|
|
195 PLAYER_SKILL_WATER = 14,
|
|
196 PLAYER_SKILL_EARTH = 15,
|
|
197 PLAYER_SKILL_SPIRIT = 16,
|
198
|
198 PLAYER_SKILL_MIND = 17,
|
135
|
199 PLAYER_SKILL_BODY = 18,
|
198
|
200 PLAYER_SKILL_LIGHT = 19,
|
|
201 PLAYER_SKILL_DARK = 20,
|
|
202 PLAYER_SKILL_ITEM_ID = 21,
|
|
203 PLAYER_SKILL_MERCHANT = 22,
|
|
204 PLAYER_SKILL_REPAIR = 23,
|
|
205 PLAYER_SKILL_BODYBUILDING = 24,
|
|
206 PLAYER_SKILL_MEDITATION = 25,
|
|
207 PLAYER_SKILL_PERCEPTION = 26,
|
|
208 PLAYER_SKILL_DIPLOMACY = 27,
|
|
209 PLAYER_SKILL_TIEVERY = 28,
|
135
|
210 PLAYER_SKILL_TRAP_DISARM = 29,
|
198
|
211 PLAYER_SKILL_DODGE = 30,
|
|
212 PLAYER_SKILL_UNARMED = 31,
|
|
213 PLAYER_SKILL_MONSTER_ID = 32,
|
135
|
214 PLAYER_SKILL_ARMSMASTER = 33,
|
|
215 PLAYER_SKILL_STEALING = 34,
|
|
216 PLAYER_SKILL_ALCHEMY = 35,
|
198
|
217 PLAYER_SKILL_LEARNING = 36,
|
201
|
218
|
|
219 PLAYER_SKILL_INVALID = -1
|
0
|
220 };
|
|
221
|
|
222 /* 329 */
|
135
|
223 enum PLAYER_CLASS_TYPE: unsigned __int8
|
0
|
224 {
|
135
|
225 PLAYER_CLASS_KNIGHT = 0,
|
255
|
226 PLAYER_CLASS_CHEVALIER = 1,
|
|
227 PLAYER_CLASS_CHAMPION = 2,
|
|
228 PLAYER_CLASS_BLACK_KNIGHT = 3,
|
135
|
229 PLAYER_CLASS_THEIF = 4,
|
255
|
230 PLAYER_CLASS_ROGUE = 5,
|
|
231 PLAYER_CLASS_SPY = 6,
|
|
232 PLAYER_CLASS_ASSASSIN = 7,
|
|
233 PLAYER_CLASS_MONK = 8,
|
|
234 PLAYER_CLASS_INITIATE = 9,
|
|
235 PLAYER_CLASS_MASTER = 10,
|
|
236 PLAYER_CLASS_NINJA = 11,
|
|
237 PLAYER_CLASS_PALADIN = 12,
|
|
238 PLAYER_CLASS_CRUSADER = 13,
|
|
239 PLAYER_CLASS_HERO = 14,
|
|
240 PLAYER_CLASS_VILLIAN = 15,
|
|
241 PLAYER_CLASS_ARCHER = 16,
|
|
242 PLAYER_CLASS_WARRIOR_MAGE = 17,
|
|
243 PLAYER_CLASS_MASTER_ARCHER = 18,
|
|
244 PLAYER_CLASS_SNIPER = 19,
|
|
245 PLAYER_CLASS_RANGER = 20,
|
|
246 PLAYER_CLASS_HUNTER = 21,
|
|
247 PLAYER_CLASS_RANGER_LORD = 22,
|
|
248 PLAYER_CLASS_BOUNTY_HUNTER = 23,
|
135
|
249 PLAYER_CLASS_CLERIC = 24,
|
255
|
250 PLAYER_CLASS_PRIEST = 25,
|
|
251 PLAYER_CLASS_PRIEST_OF_SUN = 26,
|
|
252 PLAYER_CLASS_PRIEST_OF_MOON = 27,
|
135
|
253 PLAYER_CLASS_DRUID = 28,
|
255
|
254 PLAYER_CLASS_GREAT_DRUID = 29,
|
|
255 PLAYER_CLASS_ARCH_DRUID = 30,
|
|
256 PLAYER_CLASS_WARLOCK = 31,
|
135
|
257 PLAYER_CLASS_SORCERER = 32,
|
255
|
258 PLAYER_CLASS_WIZARD = 33,
|
|
259 PLAYER_CLASS_ARCHMAGE = 34,
|
|
260 PLAYER_CLASS_LICH = 35
|
0
|
261 };
|
|
262
|
|
263
|
|
264
|
|
265
|
|
266 #pragma pack(push, 1)
|
|
267 struct LloydBeacon
|
|
268 {
|
|
269 unsigned __int64 uBeaconTime;
|
|
270 int field_8;
|
|
271 int field_C;
|
|
272 int field_10;
|
|
273 int field_14;
|
|
274 int field_18;
|
|
275 };
|
|
276 #pragma pack(pop)
|
|
277
|
|
278
|
|
279
|
|
280 #pragma pack(push, 1)
|
|
281 struct PlayerSpellbookChapter
|
|
282 {
|
198
|
283 char bIsSpellAvailable[11];
|
0
|
284 };
|
|
285 #pragma pack(pop)
|
|
286
|
|
287 #pragma pack(push, 1)
|
|
288 struct PlayerSpells
|
|
289 {
|
|
290 union
|
|
291 {
|
|
292 struct
|
|
293 {
|
|
294 PlayerSpellbookChapter pFireSpellbook;
|
|
295 PlayerSpellbookChapter pAirSpellbook;
|
|
296 PlayerSpellbookChapter pWaterSpellbook;
|
|
297 PlayerSpellbookChapter pEarthSpellbook;
|
|
298 PlayerSpellbookChapter pSpiritSpellbook;
|
|
299 PlayerSpellbookChapter pMindSpellbook;
|
|
300 PlayerSpellbookChapter pBodySpellbook;
|
|
301 PlayerSpellbookChapter pLightSpellbook;
|
|
302 PlayerSpellbookChapter pDarkSpellbook;
|
232
|
303 char _pad_0;
|
0
|
304 };
|
|
305 struct
|
|
306 {
|
|
307 PlayerSpellbookChapter pChapters[9];
|
232
|
308 char _pad_1;
|
0
|
309 };
|
|
310 };
|
|
311 };
|
|
312 #pragma pack(pop)
|
|
313
|
|
314
|
|
315
|
|
316 #pragma pack(push, 1)
|
|
317 union PlayerEquipment
|
|
318 {
|
|
319 union
|
|
320 {
|
|
321 struct
|
|
322 {
|
|
323 unsigned int uOffHand;
|
|
324 unsigned int uMainHand;
|
|
325 unsigned int uBow;
|
|
326 unsigned int uBody;
|
|
327 unsigned int uHelm;
|
|
328 unsigned int uBelt;
|
|
329 unsigned int uCloak;
|
|
330 unsigned int field_1C;
|
|
331 unsigned int field_20;
|
|
332 unsigned int field_24;
|
|
333 unsigned int field_28;
|
|
334 unsigned int field_2C;
|
|
335 unsigned int field_30;
|
|
336 unsigned int field_34;
|
|
337 unsigned int field_38;
|
|
338 unsigned int field_3C;
|
|
339 };
|
|
340 unsigned int pIndices[16];
|
|
341 };
|
|
342 };
|
|
343 #pragma pack(pop)
|
|
344
|
|
345
|
|
346
|
|
347
|
|
348
|
130
|
349 enum CHARACTER_EXPRESSION_ID: unsigned __int16
|
|
350 {
|
|
351 CHARACTER_EXPRESSION_INVALID = 0,
|
|
352 CHARACTER_EXPRESSION_1 = 1,
|
|
353 CHARACTER_EXPRESSION_CURSED = 2,
|
|
354 CHARACTER_EXPRESSION_WEAK = 3,
|
|
355 CHARACTER_EXPRESSION_SLEEP = 4,
|
|
356 CHARACTER_EXPRESSION_FEAR = 5,
|
|
357 CHARACTER_EXPRESSION_DRUNK = 6,
|
|
358 CHARACTER_EXPRESSION_INSANE = 7,
|
|
359 CHARACTER_EXPRESSION_POISONED = 8,
|
|
360 CHARACTER_EXPRESSION_DISEASED = 9,
|
|
361 CHARACTER_EXPRESSION_PARALYZED = 10,
|
|
362 CHARACTER_EXPRESSION_UNCONCIOUS = 11,
|
|
363 CHARACTER_EXPRESSION_PERTIFIED = 12,
|
|
364 CHARACTER_EXPRESSION_13 = 13,
|
|
365 CHARACTER_EXPRESSION_14 = 14,
|
|
366 CHARACTER_EXPRESSION_15 = 15,
|
|
367 CHARACTER_EXPRESSION_16 = 16,
|
|
368 CHARACTER_EXPRESSION_17 = 17,
|
|
369 CHARACTER_EXPRESSION_18 = 18,
|
|
370 CHARACTER_EXPRESSION_19 = 19,
|
|
371 CHARACTER_EXPRESSION_20 = 20,
|
|
372 CHARACTER_EXPRESSION_21 = 21,
|
|
373 CHARACTER_EXPRESSION_22 = 22,
|
|
374 CHARACTER_EXPRESSION_23 = 23,
|
|
375 CHARACTER_EXPRESSION_24 = 24,
|
|
376 CHARACTER_EXPRESSION_25 = 25,
|
|
377 CHARACTER_EXPRESSION_26 = 26,
|
|
378 CHARACTER_EXPRESSION_27 = 27,
|
|
379 CHARACTER_EXPRESSION_28 = 28,
|
|
380 CHARACTER_EXPRESSION_29 = 29,
|
|
381 CHARACTER_EXPRESSION_30 = 30,
|
|
382 CHARACTER_EXPRESSION_31 = 31,
|
|
383 CHARACTER_EXPRESSION_32 = 32,
|
|
384 CHARACTER_EXPRESSION_33 = 33,
|
|
385 CHARACTER_EXPRESSION_34 = 34,
|
|
386 CHARACTER_EXPRESSION_35 = 35,
|
|
387 CHARACTER_EXPRESSION_36 = 36,
|
|
388 CHARACTER_EXPRESSION_37 = 37,
|
|
389 CHARACTER_EXPRESSION_38 = 38,
|
|
390 CHARACTER_EXPRESSION_39 = 39,
|
|
391
|
|
392 // ?
|
|
393
|
|
394 CHARACTER_EXPRESSION_46 = 46,
|
|
395
|
|
396 CHARACTER_EXPRESSION_54 = 54,
|
|
397 CHARACTER_EXPRESSION_55 = 55,
|
|
398 CHARACTER_EXPRESSION_56 = 56,
|
|
399 CHARACTER_EXPRESSION_57 = 57,
|
187
|
400 CHARACTER_EXPRESSION_58 = 58,
|
130
|
401
|
|
402 // ?
|
|
403
|
|
404 CHARACTER_EXPRESSION_DEAD = 98,
|
|
405 CHARACTER_EXPRESSION_ERADICATED = 99,
|
|
406 };
|
|
407
|
|
408
|
0
|
409 enum PLAYER_SEX: unsigned __int8
|
|
410 {
|
|
411 SEX_MALE = 0,
|
|
412 SEX_FEMALE = 1
|
|
413 };
|
|
414
|
|
415 #pragma pack(push, 1)
|
|
416 struct Player
|
|
417 {
|
|
418 enum Condition: unsigned __int32
|
|
419 {
|
|
420 Condition_Cursed = 0,
|
|
421 Condition_Weak = 1,
|
|
422 Condition_Sleep = 2,
|
|
423 Condition_Fear = 3,
|
|
424 Condition_Drunk = 4,
|
|
425 Condition_Insane = 5,
|
|
426 Condition_Poison1 = 6,
|
|
427 Condition_Disease1 = 7,
|
130
|
428 Condition_Poison2 = 8,
|
0
|
429 Condition_Disease2 = 9,
|
|
430 Condition_Poison3 = 10,
|
|
431 Condition_Disease3 = 11,
|
|
432 Condition_Paralyzed = 12,
|
|
433 Condition_Unconcious = 13,
|
|
434 Condition_Dead = 14,
|
|
435 Condition_Pertified = 15,
|
|
436 Condition_Eradicated = 16,
|
|
437 Condition_Zombie = 17,
|
|
438 Condition_Good = 18
|
|
439 };
|
|
440
|
|
441 Player();
|
|
442
|
|
443 void SetVariable(enum VariableType var, signed int a3);
|
|
444 void AddVariable(enum VariableType var, signed int val);
|
|
445 void SubtractVariable(enum VariableType var, void *a3);
|
|
446 char CompareVariable(enum VariableType var, signed int a1);
|
|
447 void UseItem_DrinkPotion_etc(signed int a2, int a3);
|
|
448 bool AddItem(struct ItemGen *pItem);
|
|
449 int GetBaseStrength();
|
|
450 int GetBaseIntelligence();
|
|
451 int GetBaseWillpower();
|
|
452 int GetBaseEndurance();
|
|
453 int GetBaseAccuracy();
|
|
454 int GetBaseSpeed();
|
|
455 int GetBaseLuck();
|
|
456 int GetBaseLevel();
|
|
457 int GetActualLevel();
|
|
458 int GetActualMight();
|
|
459 int GetActualIntelligence();
|
|
460 int GetActualWillpower();
|
|
461 int GetActualEndurance();
|
|
462 int GetActualAccuracy();
|
|
463 int GetActualSpeed();
|
|
464 int GetActualLuck();
|
|
465 int GetActualAttack(int a2);
|
|
466 int GetMeleeDamageMinimal();
|
|
467 int GetMeleeDamageMaximal();
|
|
468 int CalculateMeleeDamageTo(int a2, int a3, unsigned int uTargetActorID);
|
|
469 int GetRangedAttack();
|
|
470 int GetRangedDamageMin();
|
|
471 int GetRangedDamageMax();
|
|
472 bool CalculateRangedDamageTo(int a2);
|
|
473 char *GetMeleeDamageString();
|
|
474 char *GetRangedDamageString();
|
|
475 bool CanTrainToNextLevel();
|
|
476 unsigned int GetExperienceDisplayColor();
|
|
477 int CalculateIncommingDamage(int resistance, signed int type);
|
|
478 int GetEquippedItemEquipType(unsigned int uEquipSlot);
|
|
479 int GetEquippedItemSkillType(enum ITEM_EQUIP_TYPE uEquipSlot);
|
|
480 bool IsUnarmed();
|
|
481 bool HasItemEquipped(enum ITEM_EQUIP_TYPE uEquipIndex);
|
|
482 bool HasEnchantedItemEquipped(int uEnchantment);
|
|
483 bool WearsItem(int a1, signed int a2);
|
|
484 bool StealFromShop(struct ItemGen *a2, int a3, int a4, int a5, int *a6);
|
|
485 int StealFromActor(unsigned int uActorID, int _steal_perm, int reputation);
|
|
486 void Heal(int amount);
|
|
487 int ReceiveDamage(signed int type, int resistance);
|
|
488 int _48DCF6(int a2, struct Actor *pActor);
|
|
489 unsigned int GetSpellSchool(unsigned int uSpellID);
|
|
490 int GetAttackRecoveryTime(int a2);
|
|
491 int GetMaxHealth();
|
|
492 int GetMaxMana();
|
|
493 int GetBaseAC();
|
|
494 int GetActualAC();
|
|
495 unsigned int GetBaseAge();
|
|
496 unsigned int GetActualAge();
|
|
497 int GetBaseResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
498 int GetActualResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
499 void SetRecoveryTime(signed int sRecoveryTime);
|
|
500 void RandomizeName();
|
|
501 unsigned int GetMajorConditionIdx();
|
|
502 int _48EA1B_get_static_effect(int a2);
|
|
503 int _48EA46_calc_special_bonus_by_items(int a2);
|
|
504 int GetItemsBonus(enum CHARACTER_ATTRIBUTE_TYPE attr, int a3);
|
|
505 int GetMagicalBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
506 char GetActualSkillLevel(enum PLAYER_SKILL_TYPE uSkillType);
|
|
507 int GetSkillBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
508 enum CHARACTER_RACE GetRace();
|
187
|
509 PLAYER_SEX GetSexByVoice();
|
0
|
510 void SetInitialStats();
|
|
511 int SetSexByVoice();
|
135
|
512 void Reset(PLAYER_CLASS_TYPE classType);
|
0
|
513 enum PLAYER_SKILL_TYPE GetSkillIdxByOrder(signed int order);
|
|
514 void DecreaseAttribute(int eAttribute);
|
|
515 int IncreaseAttribute(int eAttribute);
|
|
516 void Player::Zero();
|
297
|
517 unsigned int GetStatColor(int uStat);
|
0
|
518 bool DiscardConditionIfLastsLongerThan(unsigned int uCondition, unsigned __int64 uTime);
|
|
519 int _490EEE(ItemGen *pItem, int a3, int a4, int a5);
|
|
520 int GetBodybuilding();
|
|
521 int GetMediatation();
|
|
522 int CanIdentify(ItemGen *pItem);
|
|
523 int CanRepair(ItemGen *);
|
|
524 int GetMerchant();
|
|
525 int GetPerception();
|
|
526 int GetDisarmTrap();
|
|
527 char GetLearningPercent();
|
|
528 bool CanFitItem(unsigned int uSlot, unsigned int uItemID);
|
|
529 unsigned int FindFreeInventorySlot();
|
|
530 int CreateItemInInventory(unsigned int uSlot, unsigned int uItemID);
|
|
531 int HasSkill(unsigned int uSkillType);
|
|
532 int WearItem(unsigned int uItemID);
|
|
533 int AddItem(unsigned int uSlot, unsigned int uItemID);
|
|
534 int AddItem2(unsigned int uSlot, ItemGen *Src);
|
|
535 int CreateItemInInventory2(unsigned int uSlot, ItemGen *Src);
|
|
536 bool _49298B(ItemGen *a2, int a3, int a4);
|
|
537 unsigned int RemoveItemAtInventoryIndex(unsigned int uSlot);
|
|
538 bool CanAct();
|
|
539 bool CanSteal();
|
|
540 bool CanEquip_RaceAndAlignmentCheck(unsigned int uItemID);
|
|
541 int SetCondition(unsigned int uConditionIdx, int a3);
|
|
542 int _49327B(unsigned int uClass, int a3);
|
187
|
543 void PlaySound(PlayerSpeech speech, int a3);
|
|
544 void PlayEmotion(CHARACTER_EXPRESSION_ID expression, int a3);
|
0
|
545 char _4160CA(int a2);
|
|
546 unsigned int GetItemIDAtInventoryIndex(int *a2);
|
|
547 int _4B6FF9();
|
|
548 int _4B824B(float a2);
|
|
549 int _4B8265(int a2, float a3);
|
|
550 int _4B8233(int a2, float a3);
|
|
551 int _4B8213(int a2, float a3);
|
|
552 int _4B81C3(int a2, float a3);
|
|
553 int _4B8179(float a2);
|
|
554 int _4B8142(int a2, float a3);
|
|
555 int _4B8102(int a2, float a3);
|
|
556 int _4B807C(float a2);
|
|
557 int _4B8040_condition_time(unsigned int uCondition);
|
|
558 bool _43EEF3();
|
|
559 void _4BE2DD(unsigned int a2, int a3, int _2devent_idx);
|
|
560 bool Recover(signed int a2);
|
|
561 bool CanCastSpell(unsigned int uRequiredMana);
|
|
562
|
|
563 inline bool Dead() {return pConditions[Condition::Condition_Dead] != 0;}
|
|
564 inline bool Eradicated() {return pConditions[Condition::Condition_Eradicated] != 0;}
|
135
|
565 inline bool Zombie() {return pConditions[Condition::Condition_Zombie] != 0;}
|
0
|
566
|
|
567
|
|
568
|
|
569 __int64 pConditions[20];
|
|
570 unsigned __int64 uExperience;
|
|
571 char pName[16];
|
|
572 PLAYER_SEX uSex;
|
135
|
573 PLAYER_CLASS_TYPE classType;
|
0
|
574 unsigned __int8 uFace;
|
|
575 char field_BB;
|
|
576 unsigned __int16 uMight;
|
|
577 unsigned __int16 uMightBonus;
|
|
578 unsigned __int16 uIntelligence;
|
|
579 unsigned __int16 uIntelligenceBonus;
|
|
580 unsigned __int16 uWillpower;
|
|
581 unsigned __int16 uWillpowerBonus;
|
|
582 unsigned __int16 uEndurance;
|
|
583 unsigned __int16 uEnduranceBonus;
|
|
584 unsigned __int16 uSpeed;
|
|
585 unsigned __int16 uSpeedBonus;
|
|
586 unsigned __int16 uAccuracy;
|
|
587 unsigned __int16 uAccuracyBonus;
|
|
588 unsigned __int16 uLuck;
|
|
589 unsigned __int16 uLuckBonus;
|
|
590 __int16 sACModifier;
|
|
591 unsigned __int16 uLevel;
|
|
592 __int16 sLevelModifier;
|
|
593 __int16 sAgeModifier;
|
|
594 int field_E0;
|
|
595 int field_E4;
|
|
596 int field_E8;
|
|
597 int field_EC;
|
|
598 int field_F0;
|
|
599 int field_F4;
|
|
600 int field_F8;
|
|
601 int field_FC;
|
|
602 int field_100;
|
|
603 int field_104;
|
|
604 union
|
|
605 {
|
|
606 struct
|
|
607 {
|
|
608 unsigned __int16 skillStaff;
|
|
609 unsigned __int16 skillSword;
|
|
610 unsigned __int16 skillDagger;
|
|
611 unsigned __int16 skillAxe;
|
|
612 unsigned __int16 skillSpear;
|
|
613 unsigned __int16 skillBow;
|
|
614 unsigned __int16 skillMace;
|
|
615 unsigned __int16 skillBlaster;
|
|
616 unsigned __int16 skillShield;
|
|
617 unsigned __int16 skillLeather;
|
|
618 unsigned __int16 skillChain;
|
|
619 unsigned __int16 skillPlate;
|
|
620 unsigned __int16 skillFire;
|
|
621 unsigned __int16 skillAir;
|
|
622 unsigned __int16 skillWater;
|
|
623 unsigned __int16 skillEarth;
|
|
624 unsigned __int16 skillSpirit;
|
|
625 unsigned __int16 skillMind;
|
|
626 unsigned __int16 skillBody;
|
|
627 unsigned __int16 skillLight;
|
|
628 unsigned __int16 skillDark;
|
|
629 unsigned __int16 skillItemId;
|
|
630 unsigned __int16 skillMerchant;
|
|
631 unsigned __int16 skillRepair;
|
|
632 unsigned __int16 skillBodybuilding;
|
|
633 unsigned __int16 skillMeditation;
|
|
634 unsigned __int16 skillPerception;
|
|
635 unsigned __int16 skillDiplomacy;
|
|
636 unsigned __int16 skillThievery;
|
|
637 unsigned __int16 skillDisarmTrap;
|
|
638 unsigned __int16 skillDodge;
|
|
639 unsigned __int16 skillUnarmed;
|
|
640 unsigned __int16 skillMonsterId;
|
|
641 unsigned __int16 skillArmsmaster;
|
|
642 unsigned __int16 skillStealing;
|
|
643 unsigned __int16 skillAlchemy;
|
|
644 unsigned __int16 skillLearning;
|
|
645 };
|
|
646 unsigned __int16 pActiveSkills[37];
|
|
647 };
|
|
648 char field_152[64];
|
|
649 PlayerSpells spellbook;
|
|
650 char field_1F5[30]; // used to be [31]
|
|
651 ItemGen pInventoryItems[126];
|
|
652 ItemGen pEquippedItems[12];
|
|
653 int pInventoryIndices[126];
|
|
654 __int16 sResFireBase;
|
|
655 __int16 sResAirBase;
|
|
656 __int16 sResWaterBase;
|
|
657 __int16 sResEarthBase;
|
|
658 __int16 field_177C;
|
|
659 __int16 sResMagicBase;
|
|
660 __int16 sResSpiritBase;
|
|
661 __int16 sResMindBase;
|
|
662 __int16 sResBodyBase;
|
|
663 __int16 sResLightBase;
|
|
664 __int16 sResDarkBase;
|
|
665 __int16 sResFireBonus;
|
|
666 __int16 sResAirBonus;
|
|
667 __int16 sResWaterBonus;
|
|
668 __int16 sResEarthBonus;
|
|
669 __int16 field_1792;
|
|
670 __int16 sResMagicBonus;
|
|
671 __int16 sResSpiritBonus;
|
|
672 __int16 sResMindBonus;
|
|
673 __int16 sResBodyBonus;
|
|
674 __int16 sResLightBonus;
|
|
675 __int16 sResDarkBonus;
|
|
676 SpellBuff pPlayerBuffs[24];
|
|
677 unsigned int uVoiceID;
|
|
678 int field_1924;
|
|
679 int field_1928;
|
|
680 int field_192C;
|
|
681 int field_1930;
|
|
682 unsigned __int16 uTimeToRecovery;
|
|
683 char field_1936;
|
|
684 char field_1937;
|
|
685 unsigned int uSkillPoints;
|
|
686 int sHealth;
|
|
687 int sMana;
|
|
688 unsigned int uBirthYear;
|
|
689 PlayerEquipment pEquipment;
|
|
690 int field_1988[49];
|
|
691 char field_1A4C;
|
|
692 char field_1A4D;
|
198
|
693 char lastOpenedSpellbookPage;
|
0
|
694 unsigned __int8 uQuickSpell;
|
|
695 char field_1A50[64];
|
|
696 char _some_attack_bonus;
|
|
697 char field_1A91;
|
|
698 char _melee_dmg_bonus;
|
|
699 char field_1A93;
|
|
700 char _ranged_atk_bonus;
|
|
701 char field_1A95;
|
|
702 char _ranged_dmg_bonus;
|
|
703 char field_1A97;
|
|
704 char uFullHealthBonus;
|
|
705 char _health_related;
|
|
706 char uFullManaBonus;
|
|
707 char _mana_related;
|
130
|
708 CHARACTER_EXPRESSION_ID expression;
|
0
|
709 unsigned __int16 uExpressionTimePassed;
|
|
710 unsigned __int16 uExpressionTimeLength;
|
|
711 __int16 field_1AA2;
|
|
712 int field_1AA4;
|
|
713 int field_1AA8;
|
|
714 LloydBeacon pInstalledBeacons[5];
|
|
715 char uNumDivineInterventionCastsThisDay;
|
|
716 char uNumArmageddonCasts;
|
|
717 char uNumFireSpikeCasts;
|
|
718 char field_1B3B;
|
|
719 };
|
|
720 #pragma pack(pop)
|