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