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