0
|
1 #pragma once
|
|
2 #include "Items.h"
|
|
3 #include "Spells.h"
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9 /* 339 */
|
|
10 enum CHARACTER_RACE
|
|
11 {
|
|
12 CHARACTER_RACE_HUMAN = 0x0,
|
|
13 CHARACTER_RACE_ELF = 0x1,
|
|
14 CHARACTER_RACE_GOBLIN = 0x2,
|
|
15 CHARACTER_RACE_DWARF = 0x3,
|
|
16 };
|
|
17
|
|
18
|
|
19 /* 332 */
|
|
20 enum CHARACTER_ATTRIBUTE_TYPE
|
|
21 {
|
|
22 CHARACTER_ATTRIBUTE_STRENGTH = 0x0,
|
|
23 CHARACTER_ATTRIBUTE_INTELLIGENCE = 0x1,
|
|
24 CHARACTER_ATTRIBUTE_WILLPOWER = 0x2,
|
|
25 CHARACTER_ATTRIBUTE_ENDURANCE = 0x3,
|
|
26 CHARACTER_ATTRIBUTE_ACCURACY = 0x4,
|
|
27 CHARACTER_ATTRIBUTE_SPEED = 0x5,
|
|
28 CHARACTER_ATTRIBUTE_LUCK = 0x6,
|
|
29 CHARACTER_ATTRIBUTE_HEALTH = 0x7,
|
|
30 CHARACTER_ATTRIBUTE_MANA = 0x8,
|
|
31 CHARACTER_ATTRIBUTE_AC_BONUS = 0x9,
|
|
32 CHARACTER_ATTRIBUTE_RESIST_FIRE = 0xA,
|
|
33 CHARACTER_ATTRIBUTE_RESIST_AIR = 0xB,
|
|
34 CHARACTER_ATTRIBUTE_RESIST_WATER = 0xC,
|
|
35 CHARACTER_ATTRIBUTE_RESIST_EARTH = 0xD,
|
|
36 CHARACTER_ATTRIBUTE_RESIST_MIND = 0xE,
|
|
37 CHARACTER_ATTRIBUTE_RESIST_BODY = 0xF,
|
|
38 CHARACTER_ATTRIBUTE_LEVEL = 0x18,
|
|
39 CHARACTER_ATTRIBUTE_ATTACK = 0x19,
|
|
40 CHARACTER_ATTRIBUTE_MELEE_DMG_BONUS = 0x1A,
|
|
41 CHARACTER_ATTRIBUTE_MELEE_DMG_MIN = 0x1B,
|
|
42 CHARACTER_ATTRIBUTE_MELEE_DMG_MAX = 0x1C,
|
|
43 CHARACTER_ATTRIBUTE_RANGED_ATTACK = 0x1D,
|
|
44 CHARACTER_ATTRIBUTE_RANGED_DAMAGE_BONUS = 0x1E,
|
|
45 CHARACTER_ATTRIBUTE_RANGED_DAMAGE_MIN = 0x1F,
|
|
46 CHARACTER_ATTRIBUTE_RANGED_DAMAGE_MAX = 0x20,
|
|
47 };
|
|
48
|
|
49 /* 328 */
|
|
50 enum PLAYER_SKILL_TYPE
|
|
51 {
|
|
52 PLAYER_SKILL_STAFF = 0x0,
|
|
53 PLAYER_SKILL_SWORD = 0x1,
|
|
54 PLAYER_SKILL_DAGGER = 0x2,
|
|
55 PLAYER_SKILL_AXE = 0x3,
|
|
56 PLAYER_SKILL_SPEAR = 0x4,
|
|
57 PLAYER_SKILL_BOW = 0x5,
|
|
58 PLAYER_SKILL_MACE = 0x6,
|
|
59 PLAYER_SKILL_BLASTER = 0x7,
|
|
60 PLAYER_SKILL_SHIELD = 0x8,
|
|
61 PLAYER_SKILL_LEATHER = 0x9,
|
|
62 PLAYER_SKILL_CHAIN = 0xA,
|
|
63 PLAYER_SKILL_PLATE = 0xB,
|
|
64 PLAYER_SKILL_FIRE = 0xC,
|
|
65 PLAYER_SKILL_AIR = 0xD,
|
|
66 PLAYER_SKILL_WATER = 0xE,
|
|
67 PLAYER_SKILL_EARTH = 0xF,
|
|
68 PLAYER_SKILL_SPIRIT = 0x10,
|
|
69 PLAYER_SKILL_MIND = 0x11,
|
|
70 PLAYER_SKILL_BODY = 0x12,
|
|
71 PLAYER_SKILL_LIGHT = 0x13,
|
|
72 PLAYER_SKILL_DARK = 0x14,
|
|
73 PLAYER_SKILL_ITEM_ID = 0x15,
|
|
74 PLAYER_SKILL_MERCHANT = 0x16,
|
|
75 PLAYER_SKILL_REPAIR = 0x17,
|
|
76 PLAYER_SKILL_BODYBUILDING = 0x18,
|
|
77 PLAYER_SKILL_MEDITATION = 0x19,
|
|
78 PLAYER_SKILL_PERCEPTION = 0x1A,
|
|
79 PLAYER_SKILL_DIPLOMACY = 0x1B,
|
|
80 PLAYER_SKILL_TIEVERY = 0x1C,
|
|
81 PLAYER_SKILL_TRAP_DISARM = 0x1D,
|
|
82 PLAYER_SKILL_DODGE = 0x1E,
|
|
83 PLAYER_SKILL_UNARMED = 0x1F,
|
|
84 PLAYER_SKILL_MONSTER_ID = 0x20,
|
|
85 PLAYER_SKILL_ARMSMASTER = 0x21,
|
|
86 PLAYER_SKILL_STEALING = 0x22,
|
|
87 PLAYER_SKILL_ALCHEMY = 0x23,
|
|
88 PLAYER_SKILL_LEARNING = 0x24,
|
|
89 };
|
|
90
|
|
91 /* 329 */
|
|
92 enum PLAYER_CLASS_TYPE
|
|
93 {
|
|
94 PLAYER_CLASS_KNIGHT = 0x0,
|
|
95 PLAYER_CLASS_THEIF = 0x4,
|
|
96 PLAYER_CLASS_CLERIC = 0x18,
|
|
97 PLAYER_CLASS_SORCERER = 0x20,
|
|
98 };
|
|
99
|
|
100
|
|
101
|
|
102
|
|
103 #pragma pack(push, 1)
|
|
104 struct LloydBeacon
|
|
105 {
|
|
106 unsigned __int64 uBeaconTime;
|
|
107 int field_8;
|
|
108 int field_C;
|
|
109 int field_10;
|
|
110 int field_14;
|
|
111 int field_18;
|
|
112 };
|
|
113 #pragma pack(pop)
|
|
114
|
|
115
|
|
116
|
|
117 #pragma pack(push, 1)
|
23
|
118 struct PlayerSpellbookChapter
|
0
|
119 {
|
|
120 unsigned __int8 bIsSpellbookAvailable;
|
|
121 char bIsSpellAvailable[10];
|
|
122 };
|
|
123 #pragma pack(pop)
|
|
124
|
23
|
125 #pragma pack(push, 1)
|
|
126 struct PlayerSpells
|
|
127 {
|
|
128 union
|
|
129 {
|
|
130 struct
|
|
131 {
|
|
132 PlayerSpellbookChapter pFireSpellbook;
|
|
133 PlayerSpellbookChapter pAirSpellbook;
|
|
134 PlayerSpellbookChapter pWaterSpellbook;
|
|
135 PlayerSpellbookChapter pEarthSpellbook;
|
|
136 PlayerSpellbookChapter pSpiritSpellbook;
|
|
137 PlayerSpellbookChapter pMindSpellbook;
|
|
138 PlayerSpellbookChapter pBodySpellbook;
|
|
139 PlayerSpellbookChapter pLightSpellbook;
|
|
140 PlayerSpellbookChapter pDarkSpellbook;
|
|
141 char _pad_0;
|
|
142 };
|
|
143 struct
|
|
144 {
|
|
145 PlayerSpellbookChapter pChapters[9];
|
|
146 char _pad_1;
|
|
147 };
|
|
148 };
|
|
149 };
|
|
150 #pragma pack(pop)
|
|
151
|
0
|
152
|
|
153
|
|
154 #pragma pack(push, 1)
|
|
155 union PlayerEquipment
|
|
156 {
|
|
157 union
|
|
158 {
|
|
159 struct
|
|
160 {
|
|
161 unsigned int uOffHand;
|
|
162 unsigned int uMainHand;
|
|
163 unsigned int uBow;
|
|
164 unsigned int uBody;
|
|
165 unsigned int uHelm;
|
|
166 unsigned int uBelt;
|
|
167 unsigned int uCloak;
|
|
168 unsigned int field_1C;
|
|
169 unsigned int field_20;
|
|
170 unsigned int field_24;
|
|
171 unsigned int field_28;
|
|
172 unsigned int field_2C;
|
|
173 unsigned int field_30;
|
|
174 unsigned int field_34;
|
|
175 unsigned int field_38;
|
|
176 unsigned int field_3C;
|
|
177 };
|
|
178 unsigned int pIndices[16];
|
|
179 };
|
|
180 };
|
|
181 #pragma pack(pop)
|
|
182
|
|
183
|
|
184
|
25
|
185
|
|
186
|
|
187 enum PLAYER_SEX: unsigned __int8
|
|
188 {
|
|
189 SEX_MALE = 0,
|
|
190 SEX_FEMALE = 1
|
|
191 };
|
|
192
|
0
|
193 #pragma pack(push, 1)
|
|
194 struct Player
|
|
195 {
|
|
196 Player();
|
|
197
|
|
198 void SetVariable(enum VariableType var, signed int a3);
|
|
199 void AddVariable(enum VariableType var, signed int val);
|
|
200 void SubtractVariable(enum VariableType var, void *a3);
|
|
201 char CompareVariable(enum VariableType var, signed int a1);
|
|
202 void UseItem_DrinkPotion_etc(signed int a2, int a3);
|
|
203 bool AddItem(struct ItemGen *pItem);
|
|
204 int GetBaseStrength();
|
|
205 int GetBaseIntelligence();
|
|
206 int GetBaseWillpower();
|
|
207 int GetBaseEndurance();
|
|
208 int GetBaseAccuracy();
|
|
209 int GetBaseSpeed();
|
|
210 int GetBaseLuck();
|
|
211 int GetBaseLevel();
|
|
212 int GetActualLevel();
|
|
213 int GetActualMight();
|
|
214 int GetActualIntelligence();
|
|
215 int GetActualWillpower();
|
|
216 int GetActualEndurance();
|
|
217 int GetActualAccuracy();
|
|
218 int GetActualSpeed();
|
|
219 int GetActualLuck();
|
|
220 int GetActualAttack(int a2);
|
|
221 int GetMeleeDamageMinimal();
|
|
222 int GetMeleeDamageMaximal();
|
|
223 int CalculateMeleeDamageTo(int a2, int a3, unsigned int uTargetActorID);
|
|
224 int GetRangedAttack();
|
|
225 int GetRangedDamageMin();
|
|
226 int GetRangedDamageMax();
|
|
227 bool CalculateRangedDamageTo(int a2);
|
|
228 char *GetMeleeDamageString();
|
|
229 char *GetRangedDamageString();
|
|
230 bool CanTrainToNextLevel();
|
|
231 unsigned int GetExperienceDisplayColor();
|
|
232 int CalculateIncommingDamage(int resistance, signed int type);
|
|
233 int GetEquippedItemEquipType(unsigned int uEquipSlot);
|
|
234 int GetEquippedItemSkillType(enum ITEM_EQUIP_TYPE uEquipSlot);
|
|
235 bool IsUnarmed();
|
|
236 bool HasItemEquipped(enum ITEM_EQUIP_TYPE uEquipIndex);
|
24
|
237 bool HasEnchantedItemEquipped(int uEnchantment);
|
0
|
238 bool WearsItem(int a1, signed int a2);
|
|
239 bool StealFromShop(struct ItemGen *a2, int a3, int a4, int a5, int *a6);
|
|
240 int StealFromActor(unsigned int uActorID, int _steal_perm, int reputation);
|
|
241 void Heal(int amount);
|
|
242 int ReceiveDamage(signed int type, int resistance);
|
|
243 int _48DCF6(int a2, struct Actor *pActor);
|
|
244 unsigned int GetSpellSchool(unsigned int uSpellID);
|
|
245 int GetAttackRecoveryTime(int a2);
|
|
246 int GetMaxHealth();
|
|
247 int GetMaxMana();
|
|
248 int GetBaseAC();
|
|
249 int GetActualAC();
|
|
250 unsigned int GetBaseAge();
|
|
251 unsigned int GetActualAge();
|
|
252 int GetBaseResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
253 int GetActualResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
254 void SetRecoveryTime(signed int sRecoveryTime);
|
|
255 void RandomizeName();
|
23
|
256 unsigned int GetMajorConditionIdx();
|
0
|
257 int _48EA1B_get_static_effect(int a2);
|
|
258 int _48EA46_calc_special_bonus_by_items(int a2);
|
|
259 int GetItemsBonus(enum CHARACTER_ATTRIBUTE_TYPE attr, int a3);
|
|
260 int GetMagicalBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
261 char GetActualSkillLevel(enum PLAYER_SKILL_TYPE uSkillType);
|
|
262 int GetSkillBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
263 enum CHARACTER_RACE GetRace();
|
|
264 int GetSexByVoice();
|
|
265 void SetInitialStats();
|
|
266 int SetSexByVoice();
|
|
267 void Reset(unsigned __int8 uClass);
|
|
268 enum PLAYER_SKILL_TYPE GetSkillIdxByOrder(signed int order);
|
|
269 unsigned __int16 DecreaseAttribute(int eAttribute);
|
|
270 int IncreaseAttribute(int eAttribute);
|
|
271 void Player::Zero();
|
|
272 __int16 GetStatColor(unsigned int uStat);
|
|
273 bool DiscardConditionIfLastsLongerThan(unsigned int uCondition, unsigned __int64 uTime);
|
|
274 int _490EEE(ItemGen *pItem, int a3, int a4, int a5);
|
|
275 int GetBodybuilding();
|
|
276 int GetMediatation();
|
|
277 int CanIdentify(ItemGen *pItem);
|
|
278 int CanRepair(ItemGen *);
|
|
279 int GetMerchant();
|
|
280 int GetPerception();
|
|
281 int GetDisarmTrap();
|
|
282 char GetLearningPercent();
|
|
283 bool CanFitItem(unsigned int uSlot, unsigned int uItemID);
|
|
284 unsigned int FindFreeInventorySlot();
|
|
285 int CreateItemInInventory(unsigned int uSlot, unsigned int uItemID);
|
|
286 int HasSkill(unsigned int uSkillType);
|
|
287 int WearItem(unsigned int uItemID);
|
|
288 int AddItem(unsigned int uSlot, unsigned int uItemID);
|
|
289 int AddItem2(unsigned int uSlot, ItemGen *Src);
|
|
290 int CreateItemInInventory2(unsigned int uSlot, ItemGen *Src);
|
|
291 bool _49298B(ItemGen *a2, int a3, int a4);
|
|
292 unsigned int RemoveItemAtInventoryIndex(unsigned int uSlot);
|
|
293 bool CanAct();
|
|
294 bool CanSteal();
|
|
295 bool CanEquip_RaceAndAlignmentCheck(unsigned int uItemID);
|
|
296 int SetCondition(unsigned int uConditionIdx, int a3);
|
|
297 int _49327B(unsigned int uClass, int a3);
|
|
298 __int16 PlaySound(int a2, int a3);
|
|
299 __int16 PlayEmotion(int a2, int a3);
|
|
300 char _4160CA(int a2);
|
|
301 unsigned int GetItemIDAtInventoryIndex(int *a2);
|
|
302 int _4B6FF9();
|
|
303 int _4B824B(float a2);
|
|
304 int _4B8265(int a2, float a3);
|
|
305 int _4B8233(int a2, float a3);
|
|
306 int _4B8213(int a2, float a3);
|
|
307 int _4B81C3(int a2, float a3);
|
|
308 int _4B8179(float a2);
|
|
309 int _4B8142(int a2, float a3);
|
|
310 int _4B8102(int a2, float a3);
|
|
311 int _4B807C(float a2);
|
|
312 int _4B8040_condition_time(unsigned int uCondition);
|
|
313 bool _43EEF3();
|
|
314 void _4BE2DD(unsigned int a2, int a3, int _2devent_idx);
|
|
315 bool Recover(signed int a2);
|
|
316 bool CanCastSpell(unsigned int uRequiredMana);
|
|
317
|
|
318
|
|
319
|
|
320 __int64 pConditions[20];
|
|
321 unsigned __int64 uExperience;
|
|
322 char pName[16];
|
25
|
323 PLAYER_SEX uSex;
|
0
|
324 unsigned __int8 uClass;
|
|
325 unsigned __int8 uFace;
|
|
326 char field_BB;
|
|
327 unsigned __int16 uMight;
|
|
328 unsigned __int16 uMightBonus;
|
|
329 unsigned __int16 uIntelligence;
|
|
330 unsigned __int16 uIntelligenceBonus;
|
|
331 unsigned __int16 uWillpower;
|
|
332 unsigned __int16 uWillpowerBonus;
|
|
333 unsigned __int16 uEndurance;
|
|
334 unsigned __int16 uEnduranceBonus;
|
|
335 unsigned __int16 uSpeed;
|
|
336 unsigned __int16 uSpeedBonus;
|
|
337 unsigned __int16 uAccuracy;
|
|
338 unsigned __int16 uAccuracyBonus;
|
|
339 unsigned __int16 uLuck;
|
|
340 unsigned __int16 uLuckBonus;
|
|
341 __int16 sACModifier;
|
|
342 unsigned __int16 uLevel;
|
|
343 __int16 sLevelModifier;
|
|
344 __int16 sAgeModifier;
|
|
345 int field_E0;
|
|
346 int field_E4;
|
|
347 int field_E8;
|
|
348 int field_EC;
|
|
349 int field_F0;
|
|
350 int field_F4;
|
|
351 int field_F8;
|
|
352 int field_FC;
|
|
353 int field_100;
|
|
354 int field_104;
|
|
355 unsigned __int16 pActiveSkills[37];
|
|
356 char field_152[64];
|
23
|
357 PlayerSpells spellbook;
|
24
|
358 char field_1F5[30]; // used to be [31]
|
0
|
359 ItemGen pInventoryItems[126];
|
|
360 ItemGen pEquippedItems[12];
|
|
361 int pInventoryIndices[126];
|
|
362 __int16 sResFireBase;
|
|
363 __int16 sResAirBase;
|
|
364 __int16 sResWaterBase;
|
|
365 __int16 sResEarthBase;
|
|
366 __int16 field_177C;
|
|
367 __int16 sResMagicBase;
|
|
368 __int16 sResSpiritBase;
|
|
369 __int16 sResMindBase;
|
|
370 __int16 sResBodyBase;
|
|
371 __int16 sResLightBase;
|
|
372 __int16 sResDarkBase;
|
|
373 __int16 sResFireBonus;
|
|
374 __int16 sResAirBonus;
|
|
375 __int16 sResWaterBonus;
|
|
376 __int16 sResEarthBonus;
|
|
377 __int16 field_1792;
|
|
378 __int16 sResMagicBonus;
|
|
379 __int16 sResSpiritBonus;
|
|
380 __int16 sResMindBonus;
|
|
381 __int16 sResBodyBonus;
|
|
382 __int16 sResLightBonus;
|
|
383 __int16 sResDarkBonus;
|
|
384 SpellBuff pPlayerBuffs[24];
|
|
385 unsigned int uVoiceID;
|
|
386 int field_1924;
|
|
387 int field_1928;
|
|
388 int field_192C;
|
|
389 int field_1930;
|
|
390 unsigned __int16 uTimeToRecovery;
|
|
391 char field_1936;
|
|
392 char field_1937;
|
|
393 unsigned int uSkillPoints;
|
|
394 int sHealth;
|
|
395 int sMana;
|
|
396 unsigned int uBirthYear;
|
|
397 PlayerEquipment pEquipment;
|
|
398 int field_1988[49];
|
|
399 char field_1A4C;
|
|
400 char field_1A4D;
|
|
401 char field_1A4E;
|
|
402 unsigned __int8 uQuickSpell;
|
|
403 char field_1A50[64];
|
|
404 char _some_attack_bonus;
|
|
405 char field_1A91;
|
|
406 char _melee_dmg_bonus;
|
|
407 char field_1A93;
|
|
408 char _ranged_atk_bonus;
|
|
409 char field_1A95;
|
|
410 char _ranged_dmg_bonus;
|
|
411 char field_1A97;
|
|
412 char uFullHealthBonus;
|
|
413 char _health_related;
|
|
414 char uFullManaBonus;
|
|
415 char _mana_related;
|
|
416 unsigned __int16 uExpressionID;
|
|
417 unsigned __int16 uExpressionTimePassed;
|
|
418 unsigned __int16 uExpressionTimeLength;
|
|
419 __int16 field_1AA2;
|
|
420 int field_1AA4;
|
|
421 int field_1AA8;
|
|
422 LloydBeacon pInstalledBeacons[5];
|
|
423 char uNumDivineInterventionCastsThisDay;
|
|
424 char uNumArmageddonCasts;
|
|
425 char uNumFireSpikeCasts;
|
|
426 char field_1B3B;
|
|
427 };
|
|
428 #pragma pack(pop)
|