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,
|
|
226 PLAYER_CLASS_THEIF = 4,
|
0
|
227 PLAYER_CLASS_BOUNTY_HUNTER = 0x7,
|
|
228 PLAYER_CLASS_MONK = 0x8,
|
|
229 PLAYER_CLASS_PALADIN = 0xC,
|
|
230 PLAYER_CLASS_SHOOTER = 0x10,
|
|
231 PLAYER_CLASS_RANGER = 0x14,
|
135
|
232 PLAYER_CLASS_CLERIC = 24,
|
0
|
233 PLAYER_CLASS_PRIEST_OF_MOON = 0x1B,
|
135
|
234 PLAYER_CLASS_DRUID = 28,
|
|
235 PLAYER_CLASS_31 = 31,
|
|
236 PLAYER_CLASS_SORCERER = 32,
|
|
237 PLAYER_CLASS_LICH = 35,
|
0
|
238 };
|
|
239
|
|
240
|
|
241
|
|
242
|
|
243 #pragma pack(push, 1)
|
|
244 struct LloydBeacon
|
|
245 {
|
|
246 unsigned __int64 uBeaconTime;
|
|
247 int field_8;
|
|
248 int field_C;
|
|
249 int field_10;
|
|
250 int field_14;
|
|
251 int field_18;
|
|
252 };
|
|
253 #pragma pack(pop)
|
|
254
|
|
255
|
|
256
|
|
257 #pragma pack(push, 1)
|
|
258 struct PlayerSpellbookChapter
|
|
259 {
|
198
|
260 char bIsSpellAvailable[11];
|
0
|
261 };
|
|
262 #pragma pack(pop)
|
|
263
|
|
264 #pragma pack(push, 1)
|
|
265 struct PlayerSpells
|
|
266 {
|
|
267 union
|
|
268 {
|
|
269 struct
|
|
270 {
|
|
271 PlayerSpellbookChapter pFireSpellbook;
|
|
272 PlayerSpellbookChapter pAirSpellbook;
|
|
273 PlayerSpellbookChapter pWaterSpellbook;
|
|
274 PlayerSpellbookChapter pEarthSpellbook;
|
|
275 PlayerSpellbookChapter pSpiritSpellbook;
|
|
276 PlayerSpellbookChapter pMindSpellbook;
|
|
277 PlayerSpellbookChapter pBodySpellbook;
|
|
278 PlayerSpellbookChapter pLightSpellbook;
|
|
279 PlayerSpellbookChapter pDarkSpellbook;
|
232
|
280 char _pad_0;
|
0
|
281 };
|
|
282 struct
|
|
283 {
|
|
284 PlayerSpellbookChapter pChapters[9];
|
232
|
285 char _pad_1;
|
0
|
286 };
|
|
287 };
|
|
288 };
|
|
289 #pragma pack(pop)
|
|
290
|
|
291
|
|
292
|
|
293 #pragma pack(push, 1)
|
|
294 union PlayerEquipment
|
|
295 {
|
|
296 union
|
|
297 {
|
|
298 struct
|
|
299 {
|
|
300 unsigned int uOffHand;
|
|
301 unsigned int uMainHand;
|
|
302 unsigned int uBow;
|
|
303 unsigned int uBody;
|
|
304 unsigned int uHelm;
|
|
305 unsigned int uBelt;
|
|
306 unsigned int uCloak;
|
|
307 unsigned int field_1C;
|
|
308 unsigned int field_20;
|
|
309 unsigned int field_24;
|
|
310 unsigned int field_28;
|
|
311 unsigned int field_2C;
|
|
312 unsigned int field_30;
|
|
313 unsigned int field_34;
|
|
314 unsigned int field_38;
|
|
315 unsigned int field_3C;
|
|
316 };
|
|
317 unsigned int pIndices[16];
|
|
318 };
|
|
319 };
|
|
320 #pragma pack(pop)
|
|
321
|
|
322
|
|
323
|
|
324
|
|
325
|
130
|
326 enum CHARACTER_EXPRESSION_ID: unsigned __int16
|
|
327 {
|
|
328 CHARACTER_EXPRESSION_INVALID = 0,
|
|
329 CHARACTER_EXPRESSION_1 = 1,
|
|
330 CHARACTER_EXPRESSION_CURSED = 2,
|
|
331 CHARACTER_EXPRESSION_WEAK = 3,
|
|
332 CHARACTER_EXPRESSION_SLEEP = 4,
|
|
333 CHARACTER_EXPRESSION_FEAR = 5,
|
|
334 CHARACTER_EXPRESSION_DRUNK = 6,
|
|
335 CHARACTER_EXPRESSION_INSANE = 7,
|
|
336 CHARACTER_EXPRESSION_POISONED = 8,
|
|
337 CHARACTER_EXPRESSION_DISEASED = 9,
|
|
338 CHARACTER_EXPRESSION_PARALYZED = 10,
|
|
339 CHARACTER_EXPRESSION_UNCONCIOUS = 11,
|
|
340 CHARACTER_EXPRESSION_PERTIFIED = 12,
|
|
341 CHARACTER_EXPRESSION_13 = 13,
|
|
342 CHARACTER_EXPRESSION_14 = 14,
|
|
343 CHARACTER_EXPRESSION_15 = 15,
|
|
344 CHARACTER_EXPRESSION_16 = 16,
|
|
345 CHARACTER_EXPRESSION_17 = 17,
|
|
346 CHARACTER_EXPRESSION_18 = 18,
|
|
347 CHARACTER_EXPRESSION_19 = 19,
|
|
348 CHARACTER_EXPRESSION_20 = 20,
|
|
349 CHARACTER_EXPRESSION_21 = 21,
|
|
350 CHARACTER_EXPRESSION_22 = 22,
|
|
351 CHARACTER_EXPRESSION_23 = 23,
|
|
352 CHARACTER_EXPRESSION_24 = 24,
|
|
353 CHARACTER_EXPRESSION_25 = 25,
|
|
354 CHARACTER_EXPRESSION_26 = 26,
|
|
355 CHARACTER_EXPRESSION_27 = 27,
|
|
356 CHARACTER_EXPRESSION_28 = 28,
|
|
357 CHARACTER_EXPRESSION_29 = 29,
|
|
358 CHARACTER_EXPRESSION_30 = 30,
|
|
359 CHARACTER_EXPRESSION_31 = 31,
|
|
360 CHARACTER_EXPRESSION_32 = 32,
|
|
361 CHARACTER_EXPRESSION_33 = 33,
|
|
362 CHARACTER_EXPRESSION_34 = 34,
|
|
363 CHARACTER_EXPRESSION_35 = 35,
|
|
364 CHARACTER_EXPRESSION_36 = 36,
|
|
365 CHARACTER_EXPRESSION_37 = 37,
|
|
366 CHARACTER_EXPRESSION_38 = 38,
|
|
367 CHARACTER_EXPRESSION_39 = 39,
|
|
368
|
|
369 // ?
|
|
370
|
|
371 CHARACTER_EXPRESSION_46 = 46,
|
|
372
|
|
373 CHARACTER_EXPRESSION_54 = 54,
|
|
374 CHARACTER_EXPRESSION_55 = 55,
|
|
375 CHARACTER_EXPRESSION_56 = 56,
|
|
376 CHARACTER_EXPRESSION_57 = 57,
|
187
|
377 CHARACTER_EXPRESSION_58 = 58,
|
130
|
378
|
|
379 // ?
|
|
380
|
|
381 CHARACTER_EXPRESSION_DEAD = 98,
|
|
382 CHARACTER_EXPRESSION_ERADICATED = 99,
|
|
383 };
|
|
384
|
|
385
|
0
|
386 enum PLAYER_SEX: unsigned __int8
|
|
387 {
|
|
388 SEX_MALE = 0,
|
|
389 SEX_FEMALE = 1
|
|
390 };
|
|
391
|
|
392 #pragma pack(push, 1)
|
|
393 struct Player
|
|
394 {
|
|
395 enum Condition: unsigned __int32
|
|
396 {
|
|
397 Condition_Cursed = 0,
|
|
398 Condition_Weak = 1,
|
|
399 Condition_Sleep = 2,
|
|
400 Condition_Fear = 3,
|
|
401 Condition_Drunk = 4,
|
|
402 Condition_Insane = 5,
|
|
403 Condition_Poison1 = 6,
|
|
404 Condition_Disease1 = 7,
|
130
|
405 Condition_Poison2 = 8,
|
0
|
406 Condition_Disease2 = 9,
|
|
407 Condition_Poison3 = 10,
|
|
408 Condition_Disease3 = 11,
|
|
409 Condition_Paralyzed = 12,
|
|
410 Condition_Unconcious = 13,
|
|
411 Condition_Dead = 14,
|
|
412 Condition_Pertified = 15,
|
|
413 Condition_Eradicated = 16,
|
|
414 Condition_Zombie = 17,
|
|
415 Condition_Good = 18
|
|
416 };
|
|
417
|
|
418 Player();
|
|
419
|
|
420 void SetVariable(enum VariableType var, signed int a3);
|
|
421 void AddVariable(enum VariableType var, signed int val);
|
|
422 void SubtractVariable(enum VariableType var, void *a3);
|
|
423 char CompareVariable(enum VariableType var, signed int a1);
|
|
424 void UseItem_DrinkPotion_etc(signed int a2, int a3);
|
|
425 bool AddItem(struct ItemGen *pItem);
|
|
426 int GetBaseStrength();
|
|
427 int GetBaseIntelligence();
|
|
428 int GetBaseWillpower();
|
|
429 int GetBaseEndurance();
|
|
430 int GetBaseAccuracy();
|
|
431 int GetBaseSpeed();
|
|
432 int GetBaseLuck();
|
|
433 int GetBaseLevel();
|
|
434 int GetActualLevel();
|
|
435 int GetActualMight();
|
|
436 int GetActualIntelligence();
|
|
437 int GetActualWillpower();
|
|
438 int GetActualEndurance();
|
|
439 int GetActualAccuracy();
|
|
440 int GetActualSpeed();
|
|
441 int GetActualLuck();
|
|
442 int GetActualAttack(int a2);
|
|
443 int GetMeleeDamageMinimal();
|
|
444 int GetMeleeDamageMaximal();
|
|
445 int CalculateMeleeDamageTo(int a2, int a3, unsigned int uTargetActorID);
|
|
446 int GetRangedAttack();
|
|
447 int GetRangedDamageMin();
|
|
448 int GetRangedDamageMax();
|
|
449 bool CalculateRangedDamageTo(int a2);
|
|
450 char *GetMeleeDamageString();
|
|
451 char *GetRangedDamageString();
|
|
452 bool CanTrainToNextLevel();
|
|
453 unsigned int GetExperienceDisplayColor();
|
|
454 int CalculateIncommingDamage(int resistance, signed int type);
|
|
455 int GetEquippedItemEquipType(unsigned int uEquipSlot);
|
|
456 int GetEquippedItemSkillType(enum ITEM_EQUIP_TYPE uEquipSlot);
|
|
457 bool IsUnarmed();
|
|
458 bool HasItemEquipped(enum ITEM_EQUIP_TYPE uEquipIndex);
|
|
459 bool HasEnchantedItemEquipped(int uEnchantment);
|
|
460 bool WearsItem(int a1, signed int a2);
|
|
461 bool StealFromShop(struct ItemGen *a2, int a3, int a4, int a5, int *a6);
|
|
462 int StealFromActor(unsigned int uActorID, int _steal_perm, int reputation);
|
|
463 void Heal(int amount);
|
|
464 int ReceiveDamage(signed int type, int resistance);
|
|
465 int _48DCF6(int a2, struct Actor *pActor);
|
|
466 unsigned int GetSpellSchool(unsigned int uSpellID);
|
|
467 int GetAttackRecoveryTime(int a2);
|
|
468 int GetMaxHealth();
|
|
469 int GetMaxMana();
|
|
470 int GetBaseAC();
|
|
471 int GetActualAC();
|
|
472 unsigned int GetBaseAge();
|
|
473 unsigned int GetActualAge();
|
|
474 int GetBaseResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
475 int GetActualResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
476 void SetRecoveryTime(signed int sRecoveryTime);
|
|
477 void RandomizeName();
|
|
478 unsigned int GetMajorConditionIdx();
|
|
479 int _48EA1B_get_static_effect(int a2);
|
|
480 int _48EA46_calc_special_bonus_by_items(int a2);
|
|
481 int GetItemsBonus(enum CHARACTER_ATTRIBUTE_TYPE attr, int a3);
|
|
482 int GetMagicalBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
483 char GetActualSkillLevel(enum PLAYER_SKILL_TYPE uSkillType);
|
|
484 int GetSkillBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
485 enum CHARACTER_RACE GetRace();
|
187
|
486 PLAYER_SEX GetSexByVoice();
|
0
|
487 void SetInitialStats();
|
|
488 int SetSexByVoice();
|
135
|
489 void Reset(PLAYER_CLASS_TYPE classType);
|
0
|
490 enum PLAYER_SKILL_TYPE GetSkillIdxByOrder(signed int order);
|
|
491 void DecreaseAttribute(int eAttribute);
|
|
492 int IncreaseAttribute(int eAttribute);
|
|
493 void Player::Zero();
|
|
494 __int16 GetStatColor(unsigned int uStat);
|
|
495 bool DiscardConditionIfLastsLongerThan(unsigned int uCondition, unsigned __int64 uTime);
|
|
496 int _490EEE(ItemGen *pItem, int a3, int a4, int a5);
|
|
497 int GetBodybuilding();
|
|
498 int GetMediatation();
|
|
499 int CanIdentify(ItemGen *pItem);
|
|
500 int CanRepair(ItemGen *);
|
|
501 int GetMerchant();
|
|
502 int GetPerception();
|
|
503 int GetDisarmTrap();
|
|
504 char GetLearningPercent();
|
|
505 bool CanFitItem(unsigned int uSlot, unsigned int uItemID);
|
|
506 unsigned int FindFreeInventorySlot();
|
|
507 int CreateItemInInventory(unsigned int uSlot, unsigned int uItemID);
|
|
508 int HasSkill(unsigned int uSkillType);
|
|
509 int WearItem(unsigned int uItemID);
|
|
510 int AddItem(unsigned int uSlot, unsigned int uItemID);
|
|
511 int AddItem2(unsigned int uSlot, ItemGen *Src);
|
|
512 int CreateItemInInventory2(unsigned int uSlot, ItemGen *Src);
|
|
513 bool _49298B(ItemGen *a2, int a3, int a4);
|
|
514 unsigned int RemoveItemAtInventoryIndex(unsigned int uSlot);
|
|
515 bool CanAct();
|
|
516 bool CanSteal();
|
|
517 bool CanEquip_RaceAndAlignmentCheck(unsigned int uItemID);
|
|
518 int SetCondition(unsigned int uConditionIdx, int a3);
|
|
519 int _49327B(unsigned int uClass, int a3);
|
187
|
520 void PlaySound(PlayerSpeech speech, int a3);
|
|
521 void PlayEmotion(CHARACTER_EXPRESSION_ID expression, int a3);
|
0
|
522 char _4160CA(int a2);
|
|
523 unsigned int GetItemIDAtInventoryIndex(int *a2);
|
|
524 int _4B6FF9();
|
|
525 int _4B824B(float a2);
|
|
526 int _4B8265(int a2, float a3);
|
|
527 int _4B8233(int a2, float a3);
|
|
528 int _4B8213(int a2, float a3);
|
|
529 int _4B81C3(int a2, float a3);
|
|
530 int _4B8179(float a2);
|
|
531 int _4B8142(int a2, float a3);
|
|
532 int _4B8102(int a2, float a3);
|
|
533 int _4B807C(float a2);
|
|
534 int _4B8040_condition_time(unsigned int uCondition);
|
|
535 bool _43EEF3();
|
|
536 void _4BE2DD(unsigned int a2, int a3, int _2devent_idx);
|
|
537 bool Recover(signed int a2);
|
|
538 bool CanCastSpell(unsigned int uRequiredMana);
|
|
539
|
|
540 inline bool Dead() {return pConditions[Condition::Condition_Dead] != 0;}
|
|
541 inline bool Eradicated() {return pConditions[Condition::Condition_Eradicated] != 0;}
|
135
|
542 inline bool Zombie() {return pConditions[Condition::Condition_Zombie] != 0;}
|
0
|
543
|
|
544
|
|
545
|
|
546 __int64 pConditions[20];
|
|
547 unsigned __int64 uExperience;
|
|
548 char pName[16];
|
|
549 PLAYER_SEX uSex;
|
135
|
550 PLAYER_CLASS_TYPE classType;
|
0
|
551 unsigned __int8 uFace;
|
|
552 char field_BB;
|
|
553 unsigned __int16 uMight;
|
|
554 unsigned __int16 uMightBonus;
|
|
555 unsigned __int16 uIntelligence;
|
|
556 unsigned __int16 uIntelligenceBonus;
|
|
557 unsigned __int16 uWillpower;
|
|
558 unsigned __int16 uWillpowerBonus;
|
|
559 unsigned __int16 uEndurance;
|
|
560 unsigned __int16 uEnduranceBonus;
|
|
561 unsigned __int16 uSpeed;
|
|
562 unsigned __int16 uSpeedBonus;
|
|
563 unsigned __int16 uAccuracy;
|
|
564 unsigned __int16 uAccuracyBonus;
|
|
565 unsigned __int16 uLuck;
|
|
566 unsigned __int16 uLuckBonus;
|
|
567 __int16 sACModifier;
|
|
568 unsigned __int16 uLevel;
|
|
569 __int16 sLevelModifier;
|
|
570 __int16 sAgeModifier;
|
|
571 int field_E0;
|
|
572 int field_E4;
|
|
573 int field_E8;
|
|
574 int field_EC;
|
|
575 int field_F0;
|
|
576 int field_F4;
|
|
577 int field_F8;
|
|
578 int field_FC;
|
|
579 int field_100;
|
|
580 int field_104;
|
|
581 union
|
|
582 {
|
|
583 struct
|
|
584 {
|
|
585 unsigned __int16 skillStaff;
|
|
586 unsigned __int16 skillSword;
|
|
587 unsigned __int16 skillDagger;
|
|
588 unsigned __int16 skillAxe;
|
|
589 unsigned __int16 skillSpear;
|
|
590 unsigned __int16 skillBow;
|
|
591 unsigned __int16 skillMace;
|
|
592 unsigned __int16 skillBlaster;
|
|
593 unsigned __int16 skillShield;
|
|
594 unsigned __int16 skillLeather;
|
|
595 unsigned __int16 skillChain;
|
|
596 unsigned __int16 skillPlate;
|
|
597 unsigned __int16 skillFire;
|
|
598 unsigned __int16 skillAir;
|
|
599 unsigned __int16 skillWater;
|
|
600 unsigned __int16 skillEarth;
|
|
601 unsigned __int16 skillSpirit;
|
|
602 unsigned __int16 skillMind;
|
|
603 unsigned __int16 skillBody;
|
|
604 unsigned __int16 skillLight;
|
|
605 unsigned __int16 skillDark;
|
|
606 unsigned __int16 skillItemId;
|
|
607 unsigned __int16 skillMerchant;
|
|
608 unsigned __int16 skillRepair;
|
|
609 unsigned __int16 skillBodybuilding;
|
|
610 unsigned __int16 skillMeditation;
|
|
611 unsigned __int16 skillPerception;
|
|
612 unsigned __int16 skillDiplomacy;
|
|
613 unsigned __int16 skillThievery;
|
|
614 unsigned __int16 skillDisarmTrap;
|
|
615 unsigned __int16 skillDodge;
|
|
616 unsigned __int16 skillUnarmed;
|
|
617 unsigned __int16 skillMonsterId;
|
|
618 unsigned __int16 skillArmsmaster;
|
|
619 unsigned __int16 skillStealing;
|
|
620 unsigned __int16 skillAlchemy;
|
|
621 unsigned __int16 skillLearning;
|
|
622 };
|
|
623 unsigned __int16 pActiveSkills[37];
|
|
624 };
|
|
625 char field_152[64];
|
|
626 PlayerSpells spellbook;
|
|
627 char field_1F5[30]; // used to be [31]
|
|
628 ItemGen pInventoryItems[126];
|
|
629 ItemGen pEquippedItems[12];
|
|
630 int pInventoryIndices[126];
|
|
631 __int16 sResFireBase;
|
|
632 __int16 sResAirBase;
|
|
633 __int16 sResWaterBase;
|
|
634 __int16 sResEarthBase;
|
|
635 __int16 field_177C;
|
|
636 __int16 sResMagicBase;
|
|
637 __int16 sResSpiritBase;
|
|
638 __int16 sResMindBase;
|
|
639 __int16 sResBodyBase;
|
|
640 __int16 sResLightBase;
|
|
641 __int16 sResDarkBase;
|
|
642 __int16 sResFireBonus;
|
|
643 __int16 sResAirBonus;
|
|
644 __int16 sResWaterBonus;
|
|
645 __int16 sResEarthBonus;
|
|
646 __int16 field_1792;
|
|
647 __int16 sResMagicBonus;
|
|
648 __int16 sResSpiritBonus;
|
|
649 __int16 sResMindBonus;
|
|
650 __int16 sResBodyBonus;
|
|
651 __int16 sResLightBonus;
|
|
652 __int16 sResDarkBonus;
|
|
653 SpellBuff pPlayerBuffs[24];
|
|
654 unsigned int uVoiceID;
|
|
655 int field_1924;
|
|
656 int field_1928;
|
|
657 int field_192C;
|
|
658 int field_1930;
|
|
659 unsigned __int16 uTimeToRecovery;
|
|
660 char field_1936;
|
|
661 char field_1937;
|
|
662 unsigned int uSkillPoints;
|
|
663 int sHealth;
|
|
664 int sMana;
|
|
665 unsigned int uBirthYear;
|
|
666 PlayerEquipment pEquipment;
|
|
667 int field_1988[49];
|
|
668 char field_1A4C;
|
|
669 char field_1A4D;
|
198
|
670 char lastOpenedSpellbookPage;
|
0
|
671 unsigned __int8 uQuickSpell;
|
|
672 char field_1A50[64];
|
|
673 char _some_attack_bonus;
|
|
674 char field_1A91;
|
|
675 char _melee_dmg_bonus;
|
|
676 char field_1A93;
|
|
677 char _ranged_atk_bonus;
|
|
678 char field_1A95;
|
|
679 char _ranged_dmg_bonus;
|
|
680 char field_1A97;
|
|
681 char uFullHealthBonus;
|
|
682 char _health_related;
|
|
683 char uFullManaBonus;
|
|
684 char _mana_related;
|
130
|
685 CHARACTER_EXPRESSION_ID expression;
|
0
|
686 unsigned __int16 uExpressionTimePassed;
|
|
687 unsigned __int16 uExpressionTimeLength;
|
|
688 __int16 field_1AA2;
|
|
689 int field_1AA4;
|
|
690 int field_1AA8;
|
|
691 LloydBeacon pInstalledBeacons[5];
|
|
692 char uNumDivineInterventionCastsThisDay;
|
|
693 char uNumArmageddonCasts;
|
|
694 char uNumFireSpikeCasts;
|
|
695 char field_1B3B;
|
|
696 };
|
|
697 #pragma pack(pop)
|