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