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