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)
|
|
118 struct PlayerSpellbook
|
|
119 {
|
|
120 unsigned __int8 bIsSpellbookAvailable;
|
|
121 char bIsSpellAvailable[10];
|
|
122 };
|
|
123 #pragma pack(pop)
|
|
124
|
|
125
|
|
126
|
|
127 #pragma pack(push, 1)
|
|
128 union PlayerEquipment
|
|
129 {
|
|
130 union
|
|
131 {
|
|
132 struct
|
|
133 {
|
|
134 unsigned int uOffHand;
|
|
135 unsigned int uMainHand;
|
|
136 unsigned int uBow;
|
|
137 unsigned int uBody;
|
|
138 unsigned int uHelm;
|
|
139 unsigned int uBelt;
|
|
140 unsigned int uCloak;
|
|
141 unsigned int field_1C;
|
|
142 unsigned int field_20;
|
|
143 unsigned int field_24;
|
|
144 unsigned int field_28;
|
|
145 unsigned int field_2C;
|
|
146 unsigned int field_30;
|
|
147 unsigned int field_34;
|
|
148 unsigned int field_38;
|
|
149 unsigned int field_3C;
|
|
150 };
|
|
151 unsigned int pIndices[16];
|
|
152 };
|
|
153 };
|
|
154 #pragma pack(pop)
|
|
155
|
|
156
|
|
157
|
|
158 #pragma pack(push, 1)
|
|
159 struct Player
|
|
160 {
|
|
161 Player();
|
|
162
|
|
163 void SetVariable(enum VariableType var, signed int a3);
|
|
164 void AddVariable(enum VariableType var, signed int val);
|
|
165 void SubtractVariable(enum VariableType var, void *a3);
|
|
166 char CompareVariable(enum VariableType var, signed int a1);
|
|
167 void UseItem_DrinkPotion_etc(signed int a2, int a3);
|
|
168 bool AddItem(struct ItemGen *pItem);
|
|
169 int GetBaseStrength();
|
|
170 int GetBaseIntelligence();
|
|
171 int GetBaseWillpower();
|
|
172 int GetBaseEndurance();
|
|
173 int GetBaseAccuracy();
|
|
174 int GetBaseSpeed();
|
|
175 int GetBaseLuck();
|
|
176 int GetBaseLevel();
|
|
177 int GetActualLevel();
|
|
178 int GetActualMight();
|
|
179 int GetActualIntelligence();
|
|
180 int GetActualWillpower();
|
|
181 int GetActualEndurance();
|
|
182 int GetActualAccuracy();
|
|
183 int GetActualSpeed();
|
|
184 int GetActualLuck();
|
|
185 int GetActualAttack(int a2);
|
|
186 int GetMeleeDamageMinimal();
|
|
187 int GetMeleeDamageMaximal();
|
|
188 int CalculateMeleeDamageTo(int a2, int a3, unsigned int uTargetActorID);
|
|
189 int GetRangedAttack();
|
|
190 int GetRangedDamageMin();
|
|
191 int GetRangedDamageMax();
|
|
192 bool CalculateRangedDamageTo(int a2);
|
|
193 char *GetMeleeDamageString();
|
|
194 char *GetRangedDamageString();
|
|
195 bool CanTrainToNextLevel();
|
|
196 unsigned int GetExperienceDisplayColor();
|
|
197 int CalculateIncommingDamage(int resistance, signed int type);
|
|
198 int GetEquippedItemEquipType(unsigned int uEquipSlot);
|
|
199 int GetEquippedItemSkillType(enum ITEM_EQUIP_TYPE uEquipSlot);
|
|
200 bool IsUnarmed();
|
|
201 bool HasItemEquipped(enum ITEM_EQUIP_TYPE uEquipIndex);
|
|
202 int HasEnchantedItemEquipped(int uEnchantment);
|
|
203 bool WearsItem(int a1, signed int a2);
|
|
204 bool StealFromShop(struct ItemGen *a2, int a3, int a4, int a5, int *a6);
|
|
205 int StealFromActor(unsigned int uActorID, int _steal_perm, int reputation);
|
|
206 void Heal(int amount);
|
|
207 int ReceiveDamage(signed int type, int resistance);
|
|
208 int _48DCF6(int a2, struct Actor *pActor);
|
|
209 unsigned int GetSpellSchool(unsigned int uSpellID);
|
|
210 int GetAttackRecoveryTime(int a2);
|
|
211 int GetMaxHealth();
|
|
212 int GetMaxMana();
|
|
213 int GetBaseAC();
|
|
214 int GetActualAC();
|
|
215 unsigned int GetBaseAge();
|
|
216 unsigned int GetActualAge();
|
|
217 int GetBaseResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
218 int GetActualResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
219 void SetRecoveryTime(signed int sRecoveryTime);
|
|
220 void RandomizeName();
|
|
221 unsigned int GetMajorConditionrIdx();
|
|
222 int _48EA1B_get_static_effect(int a2);
|
|
223 int _48EA46_calc_special_bonus_by_items(int a2);
|
|
224 int GetItemsBonus(enum CHARACTER_ATTRIBUTE_TYPE attr, int a3);
|
|
225 int GetMagicalBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
226 char GetActualSkillLevel(enum PLAYER_SKILL_TYPE uSkillType);
|
|
227 int GetSkillBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
|
|
228 enum CHARACTER_RACE GetRace();
|
|
229 int GetSexByVoice();
|
|
230 void SetInitialStats();
|
|
231 int SetSexByVoice();
|
|
232 void Reset(unsigned __int8 uClass);
|
|
233 enum PLAYER_SKILL_TYPE GetSkillIdxByOrder(signed int order);
|
|
234 unsigned __int16 DecreaseAttribute(int eAttribute);
|
|
235 int IncreaseAttribute(int eAttribute);
|
|
236 void Player::Zero();
|
|
237 __int16 GetStatColor(unsigned int uStat);
|
|
238 bool DiscardConditionIfLastsLongerThan(unsigned int uCondition, unsigned __int64 uTime);
|
|
239 int _490EEE(ItemGen *pItem, int a3, int a4, int a5);
|
|
240 int GetBodybuilding();
|
|
241 int GetMediatation();
|
|
242 int CanIdentify(ItemGen *pItem);
|
|
243 int CanRepair(ItemGen *);
|
|
244 int GetMerchant();
|
|
245 int GetPerception();
|
|
246 int GetDisarmTrap();
|
|
247 char GetLearningPercent();
|
|
248 bool CanFitItem(unsigned int uSlot, unsigned int uItemID);
|
|
249 unsigned int FindFreeInventorySlot();
|
|
250 int CreateItemInInventory(unsigned int uSlot, unsigned int uItemID);
|
|
251 int HasSkill(unsigned int uSkillType);
|
|
252 int WearItem(unsigned int uItemID);
|
|
253 int AddItem(unsigned int uSlot, unsigned int uItemID);
|
|
254 int AddItem2(unsigned int uSlot, ItemGen *Src);
|
|
255 int CreateItemInInventory2(unsigned int uSlot, ItemGen *Src);
|
|
256 bool _49298B(ItemGen *a2, int a3, int a4);
|
|
257 unsigned int RemoveItemAtInventoryIndex(unsigned int uSlot);
|
|
258 bool CanAct();
|
|
259 bool CanSteal();
|
|
260 bool CanEquip_RaceAndAlignmentCheck(unsigned int uItemID);
|
|
261 int SetCondition(unsigned int uConditionIdx, int a3);
|
|
262 int _49327B(unsigned int uClass, int a3);
|
|
263 __int16 PlaySound(int a2, int a3);
|
|
264 __int16 PlayEmotion(int a2, int a3);
|
|
265 char _4160CA(int a2);
|
|
266 unsigned int GetItemIDAtInventoryIndex(int *a2);
|
|
267 int _4B6FF9();
|
|
268 int _4B824B(float a2);
|
|
269 int _4B8265(int a2, float a3);
|
|
270 int _4B8233(int a2, float a3);
|
|
271 int _4B8213(int a2, float a3);
|
|
272 int _4B81C3(int a2, float a3);
|
|
273 int _4B8179(float a2);
|
|
274 int _4B8142(int a2, float a3);
|
|
275 int _4B8102(int a2, float a3);
|
|
276 int _4B807C(float a2);
|
|
277 int _4B8040_condition_time(unsigned int uCondition);
|
|
278 bool _43EEF3();
|
|
279 void _4BE2DD(unsigned int a2, int a3, int _2devent_idx);
|
|
280 bool Recover(signed int a2);
|
|
281 bool CanCastSpell(unsigned int uRequiredMana);
|
|
282
|
|
283
|
|
284
|
|
285 __int64 pConditions[20];
|
|
286 unsigned __int64 uExperience;
|
|
287 char pName[16];
|
|
288 unsigned __int8 uSex;
|
|
289 unsigned __int8 uClass;
|
|
290 unsigned __int8 uFace;
|
|
291 char field_BB;
|
|
292 unsigned __int16 uMight;
|
|
293 unsigned __int16 uMightBonus;
|
|
294 unsigned __int16 uIntelligence;
|
|
295 unsigned __int16 uIntelligenceBonus;
|
|
296 unsigned __int16 uWillpower;
|
|
297 unsigned __int16 uWillpowerBonus;
|
|
298 unsigned __int16 uEndurance;
|
|
299 unsigned __int16 uEnduranceBonus;
|
|
300 unsigned __int16 uSpeed;
|
|
301 unsigned __int16 uSpeedBonus;
|
|
302 unsigned __int16 uAccuracy;
|
|
303 unsigned __int16 uAccuracyBonus;
|
|
304 unsigned __int16 uLuck;
|
|
305 unsigned __int16 uLuckBonus;
|
|
306 __int16 sACModifier;
|
|
307 unsigned __int16 uLevel;
|
|
308 __int16 sLevelModifier;
|
|
309 __int16 sAgeModifier;
|
|
310 int field_E0;
|
|
311 int field_E4;
|
|
312 int field_E8;
|
|
313 int field_EC;
|
|
314 int field_F0;
|
|
315 int field_F4;
|
|
316 int field_F8;
|
|
317 int field_FC;
|
|
318 int field_100;
|
|
319 int field_104;
|
|
320 unsigned __int16 pActiveSkills[37];
|
|
321 char field_152[64];
|
|
322 PlayerSpellbook pFileSpellbook;
|
|
323 PlayerSpellbook pAirSpellbook;
|
|
324 PlayerSpellbook pWaterSpellbook;
|
|
325 PlayerSpellbook pEarthSpellbook;
|
|
326 PlayerSpellbook pSpiritSpellbook;
|
|
327 PlayerSpellbook pMindSpellbook;
|
|
328 PlayerSpellbook pBodySpellbook;
|
|
329 PlayerSpellbook pLightSpellbook;
|
|
330 PlayerSpellbook pDarkSpellbook;
|
|
331 char field_1F5[31];
|
|
332 ItemGen pInventoryItems[126];
|
|
333 ItemGen pEquippedItems[12];
|
|
334 int pInventoryIndices[126];
|
|
335 __int16 sResFireBase;
|
|
336 __int16 sResAirBase;
|
|
337 __int16 sResWaterBase;
|
|
338 __int16 sResEarthBase;
|
|
339 __int16 field_177C;
|
|
340 __int16 sResMagicBase;
|
|
341 __int16 sResSpiritBase;
|
|
342 __int16 sResMindBase;
|
|
343 __int16 sResBodyBase;
|
|
344 __int16 sResLightBase;
|
|
345 __int16 sResDarkBase;
|
|
346 __int16 sResFireBonus;
|
|
347 __int16 sResAirBonus;
|
|
348 __int16 sResWaterBonus;
|
|
349 __int16 sResEarthBonus;
|
|
350 __int16 field_1792;
|
|
351 __int16 sResMagicBonus;
|
|
352 __int16 sResSpiritBonus;
|
|
353 __int16 sResMindBonus;
|
|
354 __int16 sResBodyBonus;
|
|
355 __int16 sResLightBonus;
|
|
356 __int16 sResDarkBonus;
|
|
357 SpellBuff pPlayerBuffs[24];
|
|
358 unsigned int uVoiceID;
|
|
359 int field_1924;
|
|
360 int field_1928;
|
|
361 int field_192C;
|
|
362 int field_1930;
|
|
363 unsigned __int16 uTimeToRecovery;
|
|
364 char field_1936;
|
|
365 char field_1937;
|
|
366 unsigned int uSkillPoints;
|
|
367 int sHealth;
|
|
368 int sMana;
|
|
369 unsigned int uBirthYear;
|
|
370 PlayerEquipment pEquipment;
|
|
371 int field_1988[49];
|
|
372 char field_1A4C;
|
|
373 char field_1A4D;
|
|
374 char field_1A4E;
|
|
375 unsigned __int8 uQuickSpell;
|
|
376 char field_1A50[64];
|
|
377 char _some_attack_bonus;
|
|
378 char field_1A91;
|
|
379 char _melee_dmg_bonus;
|
|
380 char field_1A93;
|
|
381 char _ranged_atk_bonus;
|
|
382 char field_1A95;
|
|
383 char _ranged_dmg_bonus;
|
|
384 char field_1A97;
|
|
385 char uFullHealthBonus;
|
|
386 char _health_related;
|
|
387 char uFullManaBonus;
|
|
388 char _mana_related;
|
|
389 unsigned __int16 uExpressionID;
|
|
390 unsigned __int16 uExpressionTimePassed;
|
|
391 unsigned __int16 uExpressionTimeLength;
|
|
392 __int16 field_1AA2;
|
|
393 int field_1AA4;
|
|
394 int field_1AA8;
|
|
395 LloydBeacon pInstalledBeacons[5];
|
|
396 char uNumDivineInterventionCastsThisDay;
|
|
397 char uNumArmageddonCasts;
|
|
398 char uNumFireSpikeCasts;
|
|
399 char field_1B3B;
|
|
400 };
|
|
401 #pragma pack(pop)
|