annotate Player.h @ 2106:b52c09e01e7e

PlaySound() blv_door and other sounds
author Ritor1
date Fri, 20 Dec 2013 00:37:39 +0600
parents 62a27b2cfcc2
children 385040580292
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2 #include "Items.h"
Ritor1
parents:
diff changeset
3 #include "Spells.h"
1361
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
4 #include "Conditions.h"
0
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7
1605
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
8 enum PLAYER_BUFFS
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
9 {
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
10 PLAYER_BUFF_RESIST_AIR = 0,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
11 PLAYER_BUFF_BLESS = 1,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
12 PLAYER_BUFF_RESIST_BODY = 2,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
13 PLAYER_BUFF_RESIST_EARTH = 3,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
14 PLAYER_BUFF_FATE = 4,
1822
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
15 PLAYER_BUFF_RESIST_FIRE = 5,
1605
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
16 PLAYER_BUFF_HAMMERHANDS = 6,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
17 PLAYER_BUFF_HASTE = 7,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
18 PLAYER_BUFF_HEROISM = 8,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
19 PLAYER_BUFF_RESIST_MIND = 9,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
20 PLAYER_BUFF_PAIN_REFLECTION = 10,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
21 PLAYER_BUFF_PRESERVATION = 11,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
22 PLAYER_BUFF_REGENERATION = 12,
1822
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
23 PLAYER_BUFF_SHIELD = 13,
1605
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
24 PLAYER_BUFF_STONESKIN = 14,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
25 PLAYER_BUFF_ACCURACY = 15,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
26 PLAYER_BUFF_ENDURANCE = 16,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
27 PLAYER_BUFF_INTELLIGENCE = 17,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
28 PLAYER_BUFF_LUCK = 18,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
29 PLAYER_BUFF_STRENGTH = 19,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
30 PLAYER_BUFF_WILLPOWER = 20,
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
31 PLAYER_BUFF_SPEED = 21,
1822
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
32 PLAYER_BUFF_RESIST_WATER = 22,
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
33 PLAYER_BUFF_WATER_WALK = 23
1605
434b796cdfd3 Player::GetMagicalBonus cleaned up, identified a few player only effect spells used in mm6
Grumpy7
parents: 1604
diff changeset
34 };
187
49728858c35e On player voices
Nomad
parents: 135
diff changeset
35
49728858c35e On player voices
Nomad
parents: 135
diff changeset
36
949
Nomad
parents: 947
diff changeset
37 #define PLAYER_GUILD_BITS__SPIRIT_MEMBERSHIP 58
Nomad
parents: 947
diff changeset
38 #define PLAYER_GUILD_BITS__ARCOMAGE_WIN 103
Nomad
parents: 947
diff changeset
39 #define PLAYER_GUILD_BITS__ARCOMAGE_LOSE 104
735
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 652
diff changeset
40
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 652
diff changeset
41
187
49728858c35e On player voices
Nomad
parents: 135
diff changeset
42 /* 301 */
49728858c35e On player voices
Nomad
parents: 135
diff changeset
43 enum PlayerSpeech
49728858c35e On player voices
Nomad
parents: 135
diff changeset
44 {
49728858c35e On player voices
Nomad
parents: 135
diff changeset
45 SPEECH_1 = 1,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
46 SPEECH_2 = 2,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
47 SPEECH_3 = 3,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
48 SPEECH_4 = 4,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
49 SPEECH_5 = 5,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
50 SPEECH_6 = 6,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
51 SPEECH_7 = 7,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
52 SPEECH_8 = 8,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
53 SPEECH_9 = 9,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
54 SPEECH_10 = 10,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
55 SPEECH_11 = 11,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
56 SPEECH_12 = 12,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
57 SPEECH_14 = 14,
201
30aa44013f7a On Items
Nomad
parents: 198
diff changeset
58 SPEECH_NoRoom = 15, // when placing to inventory
1729
f44b6e02e81c pop-up window in character(paperdill) window, alchemy
Ritor1
parents: 1724
diff changeset
59 SPEECH_DO_POTION_FINE = 16,
187
49728858c35e On player voices
Nomad
parents: 135
diff changeset
60 SPEECH_17 = 17,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
61 SPEECH_18 = 18,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
62 SPEECH_19 = 19,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
63 SPEECH_20 = 20,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
64 SPEECH_21 = 21,
201
30aa44013f7a On Items
Nomad
parents: 198
diff changeset
65 SPEECH_GoodDay = 22, // greets on dialogue start
188
207b2492e14b AddItem crash
Nomad
parents: 187
diff changeset
66 SPEECH_GoodEvening = 23,
187
49728858c35e On player voices
Nomad
parents: 135
diff changeset
67 SPEECH_24 = 24,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
68 SPEECH_25 = 25,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
69 SPEECH_26 = 26,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
70 SPEECH_27 = 27,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
71 SPEECH_28 = 28,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
72 SPEECH_29 = 29,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
73 SPEECH_30 = 30,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
74 SPEECH_31 = 31,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
75 SPEECH_32 = 32,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
76 SPEECH_33 = 33,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
77 SPEECH_34 = 34,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
78 SPEECH_35 = 35,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
79 SPEECH_36 = 36,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
80 SPEECH_37 = 37,
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 232
diff changeset
81 SPEECH_NotEnoughGold = 38,
187
49728858c35e On player voices
Nomad
parents: 135
diff changeset
82 SPEECH_39 = 39,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
83 SPEECH_40 = 40,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
84 SPEECH_41 = 41,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
85 SPEECH_42 = 42,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
86 SPEECH_43 = 43,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
87 SPEECH_44 = 44,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
88 SPEECH_45 = 45,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
89 SPEECH_46 = 46,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
90 SPEECH_47 = 47,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
91 SPEECH_48 = 48,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
92 SPEECH_49 = 49,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
93 SPEECH_50 = 50,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
94 SPEECH_51 = 51,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
95 SPEECH_52 = 52,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
96 SPEECH_53 = 53,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
97 SPEECH_54 = 54,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
98 SPEECH_55 = 55,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
99 SPEECH_56 = 56,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
100 SPEECH_57 = 57,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
101 SPEECH_58 = 58,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
102 SPEECH_59 = 59,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
103 SPEECH_60 = 60,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
104 SPEECH_61 = 61,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
105 SPEECH_62 = 62,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
106 SPEECH_63 = 63,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
107 SPEECH_64 = 64,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
108 SPEECH_Yell = 65,
2023
beb97b20c3ed ODM_ProcessPartyActions() continued refactoring
Ritor1
parents: 1888
diff changeset
109 SPEECH_Falling_scream = 66,
187
49728858c35e On player voices
Nomad
parents: 135
diff changeset
110 SPEECH_67 = 67,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
111 SPEECH_68 = 68,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
112 SPEECH_69 = 69,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
113 SPEECH_70 = 70,
652
1ff57450f090 * Some fixes to TravelByTransport
Nomad
parents: 607
diff changeset
114 SPEECH_CarriageReady = 71, // travelling by carriage
1ff57450f090 * Some fixes to TravelByTransport
Nomad
parents: 607
diff changeset
115 SPEECH_SetSail = 72, // travelling by sea
187
49728858c35e On player voices
Nomad
parents: 135
diff changeset
116 SPEECH_73 = 73,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
117 SPEECH_74 = 74,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
118 SPEECH_75 = 75,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
119 SPEECH_76 = 76,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
120 SPEECH_77 = 77,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
121 SPEECH_78 = 78,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
122 SPEECH_79 = 79,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
123 SPEECH_80 = 80,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
124 SPEECH_81 = 81,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
125 SPEECH_82 = 82,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
126 SPEECH_83 = 83,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
127 SPEECH_84 = 84,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
128 SPEECH_85 = 85,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
129 SPEECH_86 = 86,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
130 SPEECH_87 = 87,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
131 SPEECH_88 = 88,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
132 SPEECH_89 = 89,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
133 SPEECH_90 = 90,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
134 SPEECH_91 = 91,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
135 SPEECH_92 = 92,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
136 SPEECH_93 = 93,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
137 SPEECH_94 = 94,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
138 SPEECH_95 = 95,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
139 SPEECH_96 = 96,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
140 SPEECH_97 = 97,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
141 SPEECH_98 = 98,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
142 SPEECH_99 = 99,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
143 SPEECH_100 = 100,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
144 SPEECH_101 = 101,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
145 SPEECH_PickMe = 102,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
146 SPEECH_103 = 103,
1720
Ritor1
parents: 1695
diff changeset
147 SPEECH_IDENTIFY_MONSTER_WEAKER = 104,
Ritor1
parents: 1695
diff changeset
148 SPEECH_IDENTIFY_MONSTER_STRONGER = 105,
Ritor1
parents: 1695
diff changeset
149 SPEECH_IDENTIFY_MONSTER_106 = 106,
187
49728858c35e On player voices
Nomad
parents: 135
diff changeset
150 SPEECH_107 = 107,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
151 SPEECH_108 = 108,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
152 SPEECH_109 = 109,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
153 SPEECH_110 = 110,
49728858c35e On player voices
Nomad
parents: 135
diff changeset
154 };
49728858c35e On player voices
Nomad
parents: 135
diff changeset
155
49728858c35e On player voices
Nomad
parents: 135
diff changeset
156
49728858c35e On player voices
Nomad
parents: 135
diff changeset
157
0
Ritor1
parents:
diff changeset
158 /* 339 */
Ritor1
parents:
diff changeset
159 enum CHARACTER_RACE
Ritor1
parents:
diff changeset
160 {
991
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 949
diff changeset
161 CHARACTER_RACE_HUMAN = 0,
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 949
diff changeset
162 CHARACTER_RACE_ELF = 1,
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 949
diff changeset
163 CHARACTER_RACE_GOBLIN = 2,
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 949
diff changeset
164 CHARACTER_RACE_DWARF = 3,
0
Ritor1
parents:
diff changeset
165 };
130
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
166
0
Ritor1
parents:
diff changeset
167 /* 332 */
Ritor1
parents:
diff changeset
168 enum CHARACTER_ATTRIBUTE_TYPE
Ritor1
parents:
diff changeset
169 {
1040
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
170 CHARACTER_ATTRIBUTE_STRENGTH = 0,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
171 CHARACTER_ATTRIBUTE_INTELLIGENCE = 1,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
172 CHARACTER_ATTRIBUTE_WILLPOWER = 2,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
173 CHARACTER_ATTRIBUTE_ENDURANCE = 3,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
174 CHARACTER_ATTRIBUTE_ACCURACY = 4,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
175 CHARACTER_ATTRIBUTE_SPEED = 5,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
176 CHARACTER_ATTRIBUTE_LUCK = 6,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
177 CHARACTER_ATTRIBUTE_HEALTH = 7,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
178 CHARACTER_ATTRIBUTE_MANA = 8,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
179 CHARACTER_ATTRIBUTE_AC_BONUS = 9,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
180
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
181 CHARACTER_ATTRIBUTE_RESIST_FIRE = 10,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
182 CHARACTER_ATTRIBUTE_RESIST_AIR = 11,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
183 CHARACTER_ATTRIBUTE_RESIST_WATER = 12,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
184 CHARACTER_ATTRIBUTE_RESIST_EARTH = 13,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
185 CHARACTER_ATTRIBUTE_RESIST_MIND = 14,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
186 CHARACTER_ATTRIBUTE_RESIST_BODY = 15,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
187
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
188 CHARACTER_ATTRIBUTE_SKILL_ALCHEMY = 16,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
189 CHARACTER_ATTRIBUTE_SKILL_STEALING = 17,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
190 CHARACTER_ATTRIBUTE_SKILL_TRAP_DISARM = 18,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
191 CHARACTER_ATTRIBUTE_SKILL_ITEM_ID = 19,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
192 CHARACTER_ATTRIBUTE_SKILL_MONSTER_ID = 20,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
193 CHARACTER_ATTRIBUTE_SKILL_ARMSMASTER = 21,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
194 CHARACTER_ATTRIBUTE_SKILL_DODGE = 22,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
195 CHARACTER_ATTRIBUTE_SKILL_UNARMED = 23,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
196
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
197 CHARACTER_ATTRIBUTE_LEVEL = 24,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
198 CHARACTER_ATTRIBUTE_ATTACK = 25,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
199 CHARACTER_ATTRIBUTE_MELEE_DMG_BONUS = 26,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
200 CHARACTER_ATTRIBUTE_MELEE_DMG_MIN = 27,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
201 CHARACTER_ATTRIBUTE_MELEE_DMG_MAX = 28,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
202 CHARACTER_ATTRIBUTE_RANGED_ATTACK = 29,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
203 CHARACTER_ATTRIBUTE_RANGED_DMG_BONUS = 30,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
204 CHARACTER_ATTRIBUTE_RANGED_DMG_MIN = 31,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
205 CHARACTER_ATTRIBUTE_RANGED_DMG_MAX = 32,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
206 CHARACTER_ATTRIBUTE_RESIST_SPIRIT = 33,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
207
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
208 CHARACTER_ATTRIBUTE_SKILL_FIRE = 34,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
209 CHARACTER_ATTRIBUTE_SKILL_AIR = 35,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
210 CHARACTER_ATTRIBUTE_SKILL_WATER = 36,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
211 CHARACTER_ATTRIBUTE_SKILL_EARTH = 37,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
212 CHARACTER_ATTRIBUTE_SKILL_SPIRIT = 38,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
213 CHARACTER_ATTRIBUTE_SKILL_MIND = 39,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
214 CHARACTER_ATTRIBUTE_SKILL_BODY = 40,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
215 CHARACTER_ATTRIBUTE_SKILL_LIGHT = 41,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
216 CHARACTER_ATTRIBUTE_SKILL_DARK = 42,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
217 CHARACTER_ATTRIBUTE_SKILL_MEDITATION = 43,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
218 CHARACTER_ATTRIBUTE_SKILL_BOW = 44,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
219 CHARACTER_ATTRIBUTE_SKILL_SHIELD = 45,
4430136083a6 CHARACTER_ATTRIBUTE_ GetItemsBonus
Gloval
parents: 1036
diff changeset
220 CHARACTER_ATTRIBUTE_SKILL_LEARNING = 46
0
Ritor1
parents:
diff changeset
221 };
Ritor1
parents:
diff changeset
222
1888
cbeb25a148ad getting rid of "signed value is out of range for enum constant" errors for Tileset_NULL and PLAYER_SKILL_INVALID
Grumpy7
parents: 1826
diff changeset
223 #pragma warning( push )
cbeb25a148ad getting rid of "signed value is out of range for enum constant" errors for Tileset_NULL and PLAYER_SKILL_INVALID
Grumpy7
parents: 1826
diff changeset
224 #pragma warning( disable: 4341 )
0
Ritor1
parents:
diff changeset
225 /* 328 */
1160
502b8b2e36b4 font cleaning
Gloval
parents: 1091
diff changeset
226 enum PLAYER_SKILL_TYPE: signed __int8
0
Ritor1
parents:
diff changeset
227 {
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
228 PLAYER_SKILL_STAFF = 0,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
229 PLAYER_SKILL_SWORD = 1,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
230 PLAYER_SKILL_DAGGER = 2,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
231 PLAYER_SKILL_AXE = 3,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
232 PLAYER_SKILL_SPEAR = 4,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
233 PLAYER_SKILL_BOW = 5,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
234 PLAYER_SKILL_MACE = 6,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
235 PLAYER_SKILL_BLASTER = 7,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
236 PLAYER_SKILL_SHIELD = 8,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
237 PLAYER_SKILL_LEATHER = 9,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
238 PLAYER_SKILL_CHAIN = 10,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
239 PLAYER_SKILL_PLATE = 11,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
240 PLAYER_SKILL_FIRE = 12,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
241 PLAYER_SKILL_AIR = 13,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
242 PLAYER_SKILL_WATER = 14,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
243 PLAYER_SKILL_EARTH = 15,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
244 PLAYER_SKILL_SPIRIT = 16,
198
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
245 PLAYER_SKILL_MIND = 17,
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
246 PLAYER_SKILL_BODY = 18,
198
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
247 PLAYER_SKILL_LIGHT = 19,
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
248 PLAYER_SKILL_DARK = 20,
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
249 PLAYER_SKILL_ITEM_ID = 21,
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
250 PLAYER_SKILL_MERCHANT = 22,
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
251 PLAYER_SKILL_REPAIR = 23,
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
252 PLAYER_SKILL_BODYBUILDING = 24,
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
253 PLAYER_SKILL_MEDITATION = 25,
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
254 PLAYER_SKILL_PERCEPTION = 26,
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
255 PLAYER_SKILL_DIPLOMACY = 27,
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
256 PLAYER_SKILL_TIEVERY = 28,
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
257 PLAYER_SKILL_TRAP_DISARM = 29,
198
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
258 PLAYER_SKILL_DODGE = 30,
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
259 PLAYER_SKILL_UNARMED = 31,
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
260 PLAYER_SKILL_MONSTER_ID = 32,
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
261 PLAYER_SKILL_ARMSMASTER = 33,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
262 PLAYER_SKILL_STEALING = 34,
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
263 PLAYER_SKILL_ALCHEMY = 35,
198
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
264 PLAYER_SKILL_LEARNING = 36,
374
Gloval
parents: 304
diff changeset
265 PLAYER_SKILL_CLUB = 37,
385
b509ef97807a additional dmg
Gloval
parents: 374
diff changeset
266 PLAYER_SKILL_MISC = 38,
201
30aa44013f7a On Items
Nomad
parents: 198
diff changeset
267 PLAYER_SKILL_INVALID = -1
0
Ritor1
parents:
diff changeset
268 };
1888
cbeb25a148ad getting rid of "signed value is out of range for enum constant" errors for Tileset_NULL and PLAYER_SKILL_INVALID
Grumpy7
parents: 1826
diff changeset
269 #pragma warning( pop )
0
Ritor1
parents:
diff changeset
270
Ritor1
parents:
diff changeset
271 /* 329 */
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
272 enum PLAYER_CLASS_TYPE: unsigned __int8
0
Ritor1
parents:
diff changeset
273 {
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
274 PLAYER_CLASS_KNIGHT = 0,
255
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
275 PLAYER_CLASS_CHEVALIER = 1,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
276 PLAYER_CLASS_CHAMPION = 2,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
277 PLAYER_CLASS_BLACK_KNIGHT = 3,
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
278 PLAYER_CLASS_THEIF = 4,
255
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
279 PLAYER_CLASS_ROGUE = 5,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
280 PLAYER_CLASS_SPY = 6,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
281 PLAYER_CLASS_ASSASSIN = 7,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
282 PLAYER_CLASS_MONK = 8,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
283 PLAYER_CLASS_INITIATE = 9,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
284 PLAYER_CLASS_MASTER = 10,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
285 PLAYER_CLASS_NINJA = 11,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
286 PLAYER_CLASS_PALADIN = 12,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
287 PLAYER_CLASS_CRUSADER = 13,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
288 PLAYER_CLASS_HERO = 14,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
289 PLAYER_CLASS_VILLIAN = 15,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
290 PLAYER_CLASS_ARCHER = 16,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
291 PLAYER_CLASS_WARRIOR_MAGE = 17,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
292 PLAYER_CLASS_MASTER_ARCHER = 18,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
293 PLAYER_CLASS_SNIPER = 19,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
294 PLAYER_CLASS_RANGER = 20,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
295 PLAYER_CLASS_HUNTER = 21,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
296 PLAYER_CLASS_RANGER_LORD = 22,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
297 PLAYER_CLASS_BOUNTY_HUNTER = 23,
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
298 PLAYER_CLASS_CLERIC = 24,
255
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
299 PLAYER_CLASS_PRIEST = 25,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
300 PLAYER_CLASS_PRIEST_OF_SUN = 26,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
301 PLAYER_CLASS_PRIEST_OF_MOON = 27,
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
302 PLAYER_CLASS_DRUID = 28,
255
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
303 PLAYER_CLASS_GREAT_DRUID = 29,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
304 PLAYER_CLASS_ARCH_DRUID = 30,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
305 PLAYER_CLASS_WARLOCK = 31,
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
306 PLAYER_CLASS_SORCERER = 32,
255
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
307 PLAYER_CLASS_WIZARD = 33,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
308 PLAYER_CLASS_ARCHMAGE = 34,
0a37a56e9f02 sprintfex & classes enum
Nomad
parents: 248
diff changeset
309 PLAYER_CLASS_LICH = 35
0
Ritor1
parents:
diff changeset
310 };
Ritor1
parents:
diff changeset
311
Ritor1
parents:
diff changeset
312
Ritor1
parents:
diff changeset
313
Ritor1
parents:
diff changeset
314
Ritor1
parents:
diff changeset
315 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
316 struct LloydBeacon
Ritor1
parents:
diff changeset
317 {
Ritor1
parents:
diff changeset
318 unsigned __int64 uBeaconTime;
1430
71a2cf416478 LloydBeacons
Ritor1
parents: 1384
diff changeset
319 int PartyPos_X;
71a2cf416478 LloydBeacons
Ritor1
parents: 1384
diff changeset
320 int PartyPos_Y;
71a2cf416478 LloydBeacons
Ritor1
parents: 1384
diff changeset
321 int PartyPos_Z;
71a2cf416478 LloydBeacons
Ritor1
parents: 1384
diff changeset
322 __int16 PartyRot_X;
71a2cf416478 LloydBeacons
Ritor1
parents: 1384
diff changeset
323 __int16 PartyRot_Y;
71a2cf416478 LloydBeacons
Ritor1
parents: 1384
diff changeset
324 int SaveFileID;
0
Ritor1
parents:
diff changeset
325 };
Ritor1
parents:
diff changeset
326 #pragma pack(pop)
Ritor1
parents:
diff changeset
327
Ritor1
parents:
diff changeset
328
Ritor1
parents:
diff changeset
329
Ritor1
parents:
diff changeset
330 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
331 struct PlayerSpellbookChapter
Ritor1
parents:
diff changeset
332 {
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
333 std::array<char, 11> bIsSpellAvailable;
0
Ritor1
parents:
diff changeset
334 };
Ritor1
parents:
diff changeset
335 #pragma pack(pop)
Ritor1
parents:
diff changeset
336
Ritor1
parents:
diff changeset
337 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
338 struct PlayerSpells
Ritor1
parents:
diff changeset
339 {
Ritor1
parents:
diff changeset
340 union
Ritor1
parents:
diff changeset
341 {
Ritor1
parents:
diff changeset
342 struct
Ritor1
parents:
diff changeset
343 {
Ritor1
parents:
diff changeset
344 PlayerSpellbookChapter pFireSpellbook;
Ritor1
parents:
diff changeset
345 PlayerSpellbookChapter pAirSpellbook;
Ritor1
parents:
diff changeset
346 PlayerSpellbookChapter pWaterSpellbook;
Ritor1
parents:
diff changeset
347 PlayerSpellbookChapter pEarthSpellbook;
Ritor1
parents:
diff changeset
348 PlayerSpellbookChapter pSpiritSpellbook;
Ritor1
parents:
diff changeset
349 PlayerSpellbookChapter pMindSpellbook;
Ritor1
parents:
diff changeset
350 PlayerSpellbookChapter pBodySpellbook;
Ritor1
parents:
diff changeset
351 PlayerSpellbookChapter pLightSpellbook;
Ritor1
parents:
diff changeset
352 PlayerSpellbookChapter pDarkSpellbook;
232
c879446b4a22 inventory indexing fixed
zipi
parents: 231
diff changeset
353 char _pad_0;
0
Ritor1
parents:
diff changeset
354 };
Ritor1
parents:
diff changeset
355 struct
Ritor1
parents:
diff changeset
356 {
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
357 std::array<PlayerSpellbookChapter, 9> pChapters;
232
c879446b4a22 inventory indexing fixed
zipi
parents: 231
diff changeset
358 char _pad_1;
0
Ritor1
parents:
diff changeset
359 };
1021
67e33708d815 player use item continue cleanup
Gloval
parents: 1019
diff changeset
360 struct
67e33708d815 player use item continue cleanup
Gloval
parents: 1019
diff changeset
361 {
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
362 std::array<char, 99> bHaveSpell;
1021
67e33708d815 player use item continue cleanup
Gloval
parents: 1019
diff changeset
363 char _pad_1;
67e33708d815 player use item continue cleanup
Gloval
parents: 1019
diff changeset
364 };
0
Ritor1
parents:
diff changeset
365 };
Ritor1
parents:
diff changeset
366 };
Ritor1
parents:
diff changeset
367 #pragma pack(pop)
Ritor1
parents:
diff changeset
368
Ritor1
parents:
diff changeset
369
Ritor1
parents:
diff changeset
370
Ritor1
parents:
diff changeset
371 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
372 union PlayerEquipment
Ritor1
parents:
diff changeset
373 {
Ritor1
parents:
diff changeset
374 union
Ritor1
parents:
diff changeset
375 {
Ritor1
parents:
diff changeset
376 struct
Ritor1
parents:
diff changeset
377 {
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 886
diff changeset
378 unsigned int uShield;
0
Ritor1
parents:
diff changeset
379 unsigned int uMainHand;
Ritor1
parents:
diff changeset
380 unsigned int uBow;
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 886
diff changeset
381 unsigned int uArmor;
0
Ritor1
parents:
diff changeset
382 unsigned int uHelm;
Ritor1
parents:
diff changeset
383 unsigned int uBelt;
Ritor1
parents:
diff changeset
384 unsigned int uCloak;
910
Ritor1
parents: 906
diff changeset
385 unsigned int uGlove;
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 886
diff changeset
386 unsigned int uBoot;
910
Ritor1
parents: 906
diff changeset
387 unsigned int uAmulet;
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
388 std::array<unsigned int, 6> uRings;
910
Ritor1
parents: 906
diff changeset
389 //unsigned int field_2C;
Ritor1
parents: 906
diff changeset
390 //unsigned int field_30;
Ritor1
parents: 906
diff changeset
391 //unsigned int field_34;
Ritor1
parents: 906
diff changeset
392 //unsigned int field_38;
Ritor1
parents: 906
diff changeset
393 //unsigned int field_3C;
0
Ritor1
parents:
diff changeset
394 };
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
395 std::array<unsigned int, 16> pIndices;
0
Ritor1
parents:
diff changeset
396 };
Ritor1
parents:
diff changeset
397 };
Ritor1
parents:
diff changeset
398 #pragma pack(pop)
Ritor1
parents:
diff changeset
399
Ritor1
parents:
diff changeset
400
Ritor1
parents:
diff changeset
401
Ritor1
parents:
diff changeset
402
Ritor1
parents:
diff changeset
403
130
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
404 enum CHARACTER_EXPRESSION_ID: unsigned __int16
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
405 {
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
406 CHARACTER_EXPRESSION_INVALID = 0,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
407 CHARACTER_EXPRESSION_1 = 1,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
408 CHARACTER_EXPRESSION_CURSED = 2,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
409 CHARACTER_EXPRESSION_WEAK = 3,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
410 CHARACTER_EXPRESSION_SLEEP = 4,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
411 CHARACTER_EXPRESSION_FEAR = 5,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
412 CHARACTER_EXPRESSION_DRUNK = 6,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
413 CHARACTER_EXPRESSION_INSANE = 7,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
414 CHARACTER_EXPRESSION_POISONED = 8,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
415 CHARACTER_EXPRESSION_DISEASED = 9,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
416 CHARACTER_EXPRESSION_PARALYZED = 10,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
417 CHARACTER_EXPRESSION_UNCONCIOUS = 11,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
418 CHARACTER_EXPRESSION_PERTIFIED = 12,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
419 CHARACTER_EXPRESSION_13 = 13,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
420 CHARACTER_EXPRESSION_14 = 14,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
421 CHARACTER_EXPRESSION_15 = 15,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
422 CHARACTER_EXPRESSION_16 = 16,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
423 CHARACTER_EXPRESSION_17 = 17,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
424 CHARACTER_EXPRESSION_18 = 18,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
425 CHARACTER_EXPRESSION_19 = 19,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
426 CHARACTER_EXPRESSION_20 = 20,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
427 CHARACTER_EXPRESSION_21 = 21,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
428 CHARACTER_EXPRESSION_22 = 22,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
429 CHARACTER_EXPRESSION_23 = 23,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
430 CHARACTER_EXPRESSION_24 = 24,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
431 CHARACTER_EXPRESSION_25 = 25,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
432 CHARACTER_EXPRESSION_26 = 26,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
433 CHARACTER_EXPRESSION_27 = 27,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
434 CHARACTER_EXPRESSION_28 = 28,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
435 CHARACTER_EXPRESSION_29 = 29,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
436 CHARACTER_EXPRESSION_30 = 30,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
437 CHARACTER_EXPRESSION_31 = 31,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
438 CHARACTER_EXPRESSION_32 = 32,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
439 CHARACTER_EXPRESSION_33 = 33,
1352
88f80476c99c Player::PlayEmotion simplified main condition, renamed a few expression enum vals
Grumpy7
parents: 1348
diff changeset
440 CHARACTER_EXPRESSION_DMGRECVD_MINOR = 34,
88f80476c99c Player::PlayEmotion simplified main condition, renamed a few expression enum vals
Grumpy7
parents: 1348
diff changeset
441 CHARACTER_EXPRESSION_DMGRECVD_MODERATE = 35,
88f80476c99c Player::PlayEmotion simplified main condition, renamed a few expression enum vals
Grumpy7
parents: 1348
diff changeset
442 CHARACTER_EXPRESSION_DMGRECVD_MAJOR = 36,
130
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
443 CHARACTER_EXPRESSION_37 = 37,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
444 CHARACTER_EXPRESSION_38 = 38,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
445 CHARACTER_EXPRESSION_39 = 39,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
446
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
447 // ?
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
448
831
9c3f28b31b4a Party actions in blv
Nomad
parents: 821
diff changeset
449 CHARACTER_EXPRESSION_SCARED = 46, // like falling
130
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
450
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
451 CHARACTER_EXPRESSION_54 = 54,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
452 CHARACTER_EXPRESSION_55 = 55,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
453 CHARACTER_EXPRESSION_56 = 56,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
454 CHARACTER_EXPRESSION_57 = 57,
1352
88f80476c99c Player::PlayEmotion simplified main condition, renamed a few expression enum vals
Grumpy7
parents: 1348
diff changeset
455 CHARACTER_EXPRESSION_FALLING = 58,
130
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
456
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
457 // ?
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
458
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
459 CHARACTER_EXPRESSION_DEAD = 98,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
460 CHARACTER_EXPRESSION_ERADICATED = 99,
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
461 };
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
462
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
463
0
Ritor1
parents:
diff changeset
464 enum PLAYER_SEX: unsigned __int8
Ritor1
parents:
diff changeset
465 {
Ritor1
parents:
diff changeset
466 SEX_MALE = 0,
Ritor1
parents:
diff changeset
467 SEX_FEMALE = 1
Ritor1
parents:
diff changeset
468 };
Ritor1
parents:
diff changeset
469
Ritor1
parents:
diff changeset
470 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
471 struct Player
Ritor1
parents:
diff changeset
472 {
1363
fd661c9e7f97 Player::CanFitItem refactored
Grumpy7
parents: 1362
diff changeset
473 static const unsigned int INVETORYSLOTSWIDTH = 14;
fd661c9e7f97 Player::CanFitItem refactored
Grumpy7
parents: 1362
diff changeset
474 static const unsigned int INVETORYSLOTSHEIGHT = 9;
fd661c9e7f97 Player::CanFitItem refactored
Grumpy7
parents: 1362
diff changeset
475
0
Ritor1
parents:
diff changeset
476
Ritor1
parents:
diff changeset
477 Player();
Ritor1
parents:
diff changeset
478
Ritor1
parents:
diff changeset
479 void SetVariable(enum VariableType var, signed int a3);
Ritor1
parents:
diff changeset
480 void AddVariable(enum VariableType var, signed int val);
1820
af7f08135ffb Player::SubtractVariable changing return val to void, finishing cleanup
Grumpy7
parents: 1818
diff changeset
481 void SubtractVariable(enum VariableType VarNum, signed int pValue);
484
4bd56919f075 avard quest guild bits
Gloval
parents: 469
diff changeset
482 bool CompareVariable(enum VariableType VarNum, signed int pValue);
0
Ritor1
parents:
diff changeset
483 void UseItem_DrinkPotion_etc(signed int a2, int a3);
Ritor1
parents:
diff changeset
484 bool AddItem(struct ItemGen *pItem);
1552
d253172de469 Player::CanFitItem, AddItem, AddItem2 changed changed the retarded 2 dimensional array traversal, changed GetActualAttribute input parameters to get rid of the attrid case
Grumpy7
parents: 1551
diff changeset
485 int GetActualAttribute(CHARACTER_ATTRIBUTE_TYPE attrId, unsigned short Player::* attrValue, unsigned short Player::* attrBonus);
0
Ritor1
parents:
diff changeset
486 int GetBaseStrength();
Ritor1
parents:
diff changeset
487 int GetBaseIntelligence();
Ritor1
parents:
diff changeset
488 int GetBaseWillpower();
Ritor1
parents:
diff changeset
489 int GetBaseEndurance();
Ritor1
parents:
diff changeset
490 int GetBaseAccuracy();
Ritor1
parents:
diff changeset
491 int GetBaseSpeed();
Ritor1
parents:
diff changeset
492 int GetBaseLuck();
Ritor1
parents:
diff changeset
493 int GetBaseLevel();
Ritor1
parents:
diff changeset
494 int GetActualLevel();
Ritor1
parents:
diff changeset
495 int GetActualMight();
Ritor1
parents:
diff changeset
496 int GetActualIntelligence();
Ritor1
parents:
diff changeset
497 int GetActualWillpower();
Ritor1
parents:
diff changeset
498 int GetActualEndurance();
Ritor1
parents:
diff changeset
499 int GetActualAccuracy();
Ritor1
parents:
diff changeset
500 int GetActualSpeed();
Ritor1
parents:
diff changeset
501 int GetActualLuck();
1684
f84b8b2a875c Fixing a few warnings in Players.cpp
Grumpy7
parents: 1683
diff changeset
502 int GetActualAttack(bool a2);
0
Ritor1
parents:
diff changeset
503 int GetMeleeDamageMinimal();
Ritor1
parents:
diff changeset
504 int GetMeleeDamageMaximal();
1550
cdb7fafede0c Player::CalculateMeleeDamageTo extracted 2 almost identical sections to a separate function, variable cleanup, changed parameter types
Grumpy7
parents: 1537
diff changeset
505 int CalculateMeleeDamageTo(bool ignoreSkillBonus, bool ignoreOffhand, unsigned int uTargetActorID);
0
Ritor1
parents:
diff changeset
506 int GetRangedAttack();
Ritor1
parents:
diff changeset
507 int GetRangedDamageMin();
Ritor1
parents:
diff changeset
508 int GetRangedDamageMax();
1551
a9e8d2a7abb5 Player::CalculateRangedDamageTo, finishing cleanup accidentally commited in previous commit
Grumpy7
parents: 1550
diff changeset
509 int CalculateRangedDamageTo(int a2);
0
Ritor1
parents:
diff changeset
510 char *GetMeleeDamageString();
Ritor1
parents:
diff changeset
511 char *GetRangedDamageString();
Ritor1
parents:
diff changeset
512 bool CanTrainToNextLevel();
Ritor1
parents:
diff changeset
513 unsigned int GetExperienceDisplayColor();
1036
7f8be9f9769e player recieve damage
Gloval
parents: 1022
diff changeset
514 int CalculateIncommingDamage(DAMAGE_TYPE dmg_type, int amount);
821
5e3f4bf3b8e6 * UpdateActorAI clean
zipi
parents: 816
diff changeset
515 ITEM_EQUIP_TYPE GetEquippedItemEquipType(ITEM_EQUIP_TYPE uEquipSlot);
5e3f4bf3b8e6 * UpdateActorAI clean
zipi
parents: 816
diff changeset
516 PLAYER_SKILL_TYPE GetEquippedItemSkillType(ITEM_EQUIP_TYPE uEquipSlot);
0
Ritor1
parents:
diff changeset
517 bool IsUnarmed();
821
5e3f4bf3b8e6 * UpdateActorAI clean
zipi
parents: 816
diff changeset
518 bool HasItemEquipped(ITEM_EQUIP_TYPE uEquipIndex);
0
Ritor1
parents:
diff changeset
519 bool HasEnchantedItemEquipped(int uEnchantment);
1080
9456f2ed5ff9 getskillbonus continue cleaning
Gloval
parents: 1040
diff changeset
520 bool WearsItem(int item_id, ITEM_EQUIP_TYPE equip_type);
1686
df30a0c901e5 Player::StealFromShop finishing cleanup
Grumpy7
parents: 1685
diff changeset
521 int StealFromShop( ItemGen *itemToSteal, int a3, int reputation, int a5, int *fineIfFailed);
0
Ritor1
parents:
diff changeset
522 int StealFromActor(unsigned int uActorID, int _steal_perm, int reputation);
Ritor1
parents:
diff changeset
523 void Heal(int amount);
1036
7f8be9f9769e player recieve damage
Gloval
parents: 1022
diff changeset
524 int ReceiveDamage(signed int amount, DAMAGE_TYPE dmg_type);
1695
33df22a5e376 Player::ReceiveSpecialAttackEffect finishing cleanup, special attack type enum created
Grumpy7
parents: 1686
diff changeset
525 int ReceiveSpecialAttackEffect(int attType, struct Actor *pActor);
0
Ritor1
parents:
diff changeset
526 unsigned int GetSpellSchool(unsigned int uSpellID);
816
cfc65feef029 * Player Recovery Times
Nomad
parents: 766
diff changeset
527 int GetAttackRecoveryTime(bool bRangedAttack);
0
Ritor1
parents:
diff changeset
528 int GetMaxHealth();
Ritor1
parents:
diff changeset
529 int GetMaxMana();
Ritor1
parents:
diff changeset
530 int GetBaseAC();
Ritor1
parents:
diff changeset
531 int GetActualAC();
Ritor1
parents:
diff changeset
532 unsigned int GetBaseAge();
Ritor1
parents:
diff changeset
533 unsigned int GetActualAge();
Ritor1
parents:
diff changeset
534 int GetBaseResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
Ritor1
parents:
diff changeset
535 int GetActualResistance(enum CHARACTER_ATTRIBUTE_TYPE a2);
Ritor1
parents:
diff changeset
536 void SetRecoveryTime(signed int sRecoveryTime);
Ritor1
parents:
diff changeset
537 void RandomizeName();
Ritor1
parents:
diff changeset
538 unsigned int GetMajorConditionIdx();
1036
7f8be9f9769e player recieve damage
Gloval
parents: 1022
diff changeset
539 int GetParameterBonus(int player_parameter);
1597
33a82b36c3e8 Player::GetActualResistance cleaned up, some minor changes in Player::Recover, _48EA46_calc_special_bonus_by_items renamed to GetSpecialItemBonus
Grumpy7
parents: 1595
diff changeset
540 int GetSpecialItemBonus(int enchantmentId);
1595
a52a01aaf439 Player::GetBaseResistance cleanup, setting default parameter to Player::GetItemsBonus
Grumpy7
parents: 1593
diff changeset
541 int GetItemsBonus(enum CHARACTER_ATTRIBUTE_TYPE attr, bool a3 = false);
0
Ritor1
parents:
diff changeset
542 int GetMagicalBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
1008
446175a32a15 player math fix
Gloval
parents: 1006
diff changeset
543 int GetActualSkillLevel(PLAYER_SKILL_TYPE uSkillType);
0
Ritor1
parents:
diff changeset
544 int GetSkillBonus(enum CHARACTER_ATTRIBUTE_TYPE a2);
Ritor1
parents:
diff changeset
545 enum CHARACTER_RACE GetRace();
187
49728858c35e On player voices
Nomad
parents: 135
diff changeset
546 PLAYER_SEX GetSexByVoice();
0
Ritor1
parents:
diff changeset
547 void SetInitialStats();
1022
Gloval
parents: 1021
diff changeset
548 void SetSexByVoice();
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
549 void Reset(PLAYER_CLASS_TYPE classType);
821
5e3f4bf3b8e6 * UpdateActorAI clean
zipi
parents: 816
diff changeset
550 PLAYER_SKILL_TYPE GetSkillIdxByOrder(signed int order);
0
Ritor1
parents:
diff changeset
551 void DecreaseAttribute(int eAttribute);
1273
fbb7428fa58c PlayerCreation_ComputeAttributeBonus cleanup
Grumpy7
parents: 1259
diff changeset
552 void IncreaseAttribute(int eAttribute);
0
Ritor1
parents:
diff changeset
553 void Player::Zero();
297
Ritor1
parents: 255
diff changeset
554 unsigned int GetStatColor(int uStat);
0
Ritor1
parents:
diff changeset
555 bool DiscardConditionIfLastsLongerThan(unsigned int uCondition, unsigned __int64 uTime);
917
ae9e2a339b09 disappear items fix
Ritor1
parents: 916
diff changeset
556 int SelectPhrasesTransaction(ItemGen *pItem, int building_type, int BuildID_2Events, int a5);
0
Ritor1
parents:
diff changeset
557 int GetBodybuilding();
607
cfca6297e4ae ArmorShop fixes
Gloval
parents: 554
diff changeset
558 int GetMeditation();
1553
b98812ead5d9 Get(skillname) functions cleaned up, using GetMultiplierForSkillLevel instead of nested conditions
Grumpy7
parents: 1552
diff changeset
559 bool CanIdentify(ItemGen *pItem);
b98812ead5d9 Get(skillname) functions cleaned up, using GetMultiplierForSkillLevel instead of nested conditions
Grumpy7
parents: 1552
diff changeset
560 bool CanRepair(ItemGen *pItem);
0
Ritor1
parents:
diff changeset
561 int GetMerchant();
Ritor1
parents:
diff changeset
562 int GetPerception();
Ritor1
parents:
diff changeset
563 int GetDisarmTrap();
Ritor1
parents:
diff changeset
564 char GetLearningPercent();
Ritor1
parents:
diff changeset
565 bool CanFitItem(unsigned int uSlot, unsigned int uItemID);
1384
b51332ab228f changed a few member variables in Player to slightly less confusing names
Grumpy7
parents: 1383
diff changeset
566 int FindFreeInventoryListSlot();
0
Ritor1
parents:
diff changeset
567 int CreateItemInInventory(unsigned int uSlot, unsigned int uItemID);
Ritor1
parents:
diff changeset
568 int HasSkill(unsigned int uSkillType);
1382
132a6a0d5cef Player::AddItem2, Player::CreateItemInInventory2 cleanup
Grumpy7
parents: 1365
diff changeset
569 void WearItem(unsigned int uItemID);
1014
a704435d3285 comtinue player cleaning
Gloval
parents: 1012
diff changeset
570 int AddItem(int uSlot, unsigned int uItemID);
a704435d3285 comtinue player cleaning
Gloval
parents: 1012
diff changeset
571 int AddItem2(int uSlot, ItemGen *Src);
1384
b51332ab228f changed a few member variables in Player to slightly less confusing names
Grumpy7
parents: 1383
diff changeset
572 int CreateItemInInventory2(unsigned int index, ItemGen *Src);
b51332ab228f changed a few member variables in Player to slightly less confusing names
Grumpy7
parents: 1383
diff changeset
573 void PutItemArInventoryIndex(int uItemID, int itemListPos, int uSlot);
1006
e865f349aa41 ui cleanup
Gloval
parents: 991
diff changeset
574 void RemoveItemAtInventoryIndex(unsigned int uSlot);
0
Ritor1
parents:
diff changeset
575 bool CanAct();
Ritor1
parents:
diff changeset
576 bool CanSteal();
Ritor1
parents:
diff changeset
577 bool CanEquip_RaceAndAlignmentCheck(unsigned int uItemID);
1361
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
578 void SetCondition(unsigned int uConditionIdx, int a3);
1355
af2fc30d765f Player::CanAct, Player::CanSteal shortened a bit
Grumpy7
parents: 1354
diff changeset
579 bool ProfessionOrGuildFlagsCorrect(unsigned int uClass, int a3);
187
49728858c35e On player voices
Nomad
parents: 135
diff changeset
580 void PlaySound(PlayerSpeech speech, int a3);
49728858c35e On player voices
Nomad
parents: 135
diff changeset
581 void PlayEmotion(CHARACTER_EXPRESSION_ID expression, int a3);
1012
9e823ad5eaa6 second msg_queue returned
Gloval
parents: 1008
diff changeset
582 void ItemsEnchant(int enchant_count);
0
Ritor1
parents:
diff changeset
583 unsigned int GetItemIDAtInventoryIndex(int *a2);
1348
3ed6dcf82912 Player::IsPlayerHealableByTemple final version
Grumpy7
parents: 1346
diff changeset
584 bool IsPlayerHealableByTemple();
1275
7569c88d9cb0 renamed a few unnamed functions
Grumpy7
parents: 1274
diff changeset
585 int GetBaseIdentifyPrice(float a2);
7569c88d9cb0 renamed a few unnamed functions
Grumpy7
parents: 1274
diff changeset
586 int GetBaseRepairPrice(int a2, float a3);
7569c88d9cb0 renamed a few unnamed functions
Grumpy7
parents: 1274
diff changeset
587 int GetBaseBuyingPrice(int a2, float a3);
7569c88d9cb0 renamed a few unnamed functions
Grumpy7
parents: 1274
diff changeset
588 int GetBaseSellingPrice(int a2, float a3);
916
897b10712a1a UIShop_Buy_Identify_Repair little clean and rename
Ritor1
parents: 910
diff changeset
589 int GetPriceRepair(int a2, float a3);
897b10712a1a UIShop_Buy_Identify_Repair little clean and rename
Ritor1
parents: 910
diff changeset
590 int GetPriceIdentification(float a2);
749
f39fbeb65b28 Fixed bought items not disappearing from Armourer.
Nomad
parents: 735
diff changeset
591 int GetBuyingPrice(unsigned int uRealValue, float price_multiplier);
917
ae9e2a339b09 disappear items fix
Ritor1
parents: 916
diff changeset
592 int GetPriceSell(int uRealValue, float price_multiplier);
1274
351bc06722f2 Player::_4B807C changed to Player::GetTempleHealCostModifier, cleaned up
Grumpy7
parents: 1273
diff changeset
593 int GetTempleHealCostModifier(float a2);
1036
7f8be9f9769e player recieve damage
Gloval
parents: 1022
diff changeset
594 int GetConditionDayOfWeek(unsigned int uCondition);
1346
1434b36f4bdb Player::_43EEF3 renamed to NothingOrJustBlastersEquipped
Grumpy7
parents: 1325
diff changeset
595 bool NothingOrJustBlastersEquipped();
1014
a704435d3285 comtinue player cleaning
Gloval
parents: 1012
diff changeset
596 void SalesProcess(unsigned int inventory_idnx, int item_index, int _2devent_idx);//0x4BE2DD
0
Ritor1
parents:
diff changeset
597 bool Recover(signed int a2);
Ritor1
parents:
diff changeset
598 bool CanCastSpell(unsigned int uRequiredMana);
1822
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
599 void PlayAwardSound();
1276
f11651288371 changed sub_467E7F_EquipBody to Player::EquipBody, some more header file stuff
Grumpy7
parents: 1275
diff changeset
600 void EquipBody(ITEM_EQUIP_TYPE uEquipType);
1620
61ea994a1812 sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped to Player::HasUnderwaterSuitEquipped, sub_43EDB9_get_some_race_sex_relation_2 to ShouldLoadTexturesForRaceAndGender, Player_has_item to Player::HasItem
Grumpy7
parents: 1605
diff changeset
601 bool HasUnderwaterSuitEquipped();
1822
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
602 bool HasItem(unsigned int uItemID, bool checkHeldItem);
1683
96d567a7d15f moving OnInventoryLeftClick to Player::
Grumpy7
parents: 1620
diff changeset
603 void OnInventoryLeftClick();
0
Ritor1
parents:
diff changeset
604
1553
b98812ead5d9 Get(skillname) functions cleaned up, using GetMultiplierForSkillLevel instead of nested conditions
Grumpy7
parents: 1552
diff changeset
605 unsigned int GetMultiplierForSkillLevel(unsigned int skillValue, int mult1, int mult2, int mult3, int mult4);
1550
cdb7fafede0c Player::CalculateMeleeDamageTo extracted 2 almost identical sections to a separate function, variable cleanup, changed parameter types
Grumpy7
parents: 1537
diff changeset
606 int CalculateMeleeDmgToEnemyWithWeapon( ItemGen * weapon, unsigned int uTargetActorID , bool addOneDice);
1563
0311debb684c splitting Player::WearsItem into two functions
Grumpy7
parents: 1553
diff changeset
607 bool WearsItemAnyWhere(int item_id);
1593
5658d0f3b5ee Player::GetAttackRecoveryTime removing label, fixing shield skill being ignored, fixing haste being ignored
Grumpy7
parents: 1567
diff changeset
608 float GetArmorRecoveryMultiplierFromSkillLevel( unsigned char armour_skill_type, float param2, float param3, float param4, float param5 );
1822
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
609 void SetSkillByEvent(unsigned __int16 Player::* skillToSet, unsigned __int16 skillValue);
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
610 void AddSkillByEvent( unsigned __int16 Player::* skillToSet, unsigned __int16 addSkillValue);
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
611 void PlayAwardSound_Anim();
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
612 void PlayAwardSound_Anim_Face(PlayerSpeech speech);
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
613 void PlayAwardSound_Anim97();
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
614 void PlayAwardSound_Anim97_Face(PlayerSpeech speech);
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
615 void PlayAwardSound_Anim98();
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
616 void PlayAwardSound_Anim98_Face(PlayerSpeech speech);
1550
cdb7fafede0c Player::CalculateMeleeDamageTo extracted 2 almost identical sections to a separate function, variable cleanup, changed parameter types
Grumpy7
parents: 1537
diff changeset
617
1362
d6cf8ead9242 Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents: 1361
diff changeset
618 bool IsWeak();
d6cf8ead9242 Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents: 1361
diff changeset
619 bool IsDead();
d6cf8ead9242 Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents: 1361
diff changeset
620 bool IsEradicated();
d6cf8ead9242 Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents: 1361
diff changeset
621 bool IsZombie();
d6cf8ead9242 Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents: 1361
diff changeset
622 bool IsCursed();
d6cf8ead9242 Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents: 1361
diff changeset
623 bool IsPertified();
d6cf8ead9242 Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents: 1361
diff changeset
624 bool IsUnconcious();
d6cf8ead9242 Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents: 1361
diff changeset
625 bool IsAsleep();
d6cf8ead9242 Condition checking functions slightly renamed, some final changes in Player::SetCondition
Grumpy7
parents: 1361
diff changeset
626 bool IsParalyzed();
1685
2a309997c42f Player::StealFromShop started cleanup, fixing a few errors caused by not commiting everything
Grumpy7
parents: 1684
diff changeset
627 bool IsDrunk();
0
Ritor1
parents:
diff changeset
628
1361
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
629 void SetCursed(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
630 void SetWeak(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
631 void SetAsleep(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
632 void SetAfraid(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
633 void SetDrunk(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
634 void SetInsane(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
635 void SetPoison1(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
636 void SetDisease1(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
637 void SetPoison2(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
638 void SetDisease2(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
639 void SetPoison3(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
640 void SetDisease3(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
641 void SetParalyzed(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
642 void SetUnconcious(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
643 void SetDead(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
644 void SetPertified(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
645 void SetEradicated(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
646 void SetZombie(bool state);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
647
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
648 void SetCondWeakWithBlockCheck (int blockable);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
649 void SetCondInsaneWithBlockCheck (int blockable);
b3ac17fd12de Moved condition checking to a separate class, extracted it from player::SetCondition
Grumpy7
parents: 1357
diff changeset
650 void SetCondDeadWithBlockCheck (int blockable);
1567
9f8b3e904e14 Player::ReceiveDamage, very small edits; prepended "Is" to item functions returning bool values (broken, indetified, stolen)
Grumpy7
parents: 1563
diff changeset
651 void SetCondUnconsciousWithBlockCheck( int blockable );
1357
06926081358f Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents: 1355
diff changeset
652
06926081358f Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents: 1355
diff changeset
653 inline bool IsRaceHuman() {return GetRace() == CHARACTER_RACE_HUMAN;}
06926081358f Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents: 1355
diff changeset
654 inline bool IsRaceDwarf() {return GetRace() == CHARACTER_RACE_DWARF;}
06926081358f Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents: 1355
diff changeset
655 inline bool IsRaceElf() {return GetRace() == CHARACTER_RACE_ELF;}
06926081358f Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents: 1355
diff changeset
656 inline bool IsRaceGoblin() {return GetRace() == CHARACTER_RACE_GOBLIN;}
06926081358f Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents: 1355
diff changeset
657
06926081358f Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents: 1355
diff changeset
658 inline bool IsMale() { return GetSexByVoice() == SEX_MALE;}
06926081358f Player::CanEquip_RaceAndAlignmentCheck fixed 3 missing return values, started using new race and gender functions, moved everything to a switch
Grumpy7
parents: 1355
diff changeset
659 inline bool IsFemale() { return !IsMale();}
1714
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
660
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
661 ItemGen* GetMainHandItem();
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
662 ItemGen* GetOffHandItem();
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
663 ItemGen* GetBowItem();
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
664 ItemGen* GetArmorItem();
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
665 ItemGen* GetHelmItem();
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
666 ItemGen* GetBeltItem();
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
667 ItemGen* GetCloakItem();
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
668 ItemGen* GetGloveItem();
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
669 ItemGen* GetBootItem();
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
670 ItemGen* GetAmuletItem();
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
671 ItemGen* GetNthRingItem(int ringNum);
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
672 ItemGen* GetNthEquippedIndexItem(int index);
bafc79e65a4d Item getter functions to reduce the number of ugly array accesses, fixing a bug with Player::setrecoverytime
Grumpy7
parents: 1695
diff changeset
673 ItemGen* GetItem(unsigned int PlayerEquipment::* itemPos);
1822
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
674 int GetPlayerIndex();
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
675
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
676 std::array<__int64, 20> pConditions;
0
Ritor1
parents:
diff changeset
677 unsigned __int64 uExperience;
Ritor1
parents:
diff changeset
678 char pName[16];
Ritor1
parents:
diff changeset
679 PLAYER_SEX uSex;
135
9b0d651821f1 Party creation screen: sorcerer class icon fixed
Nomad
parents: 130
diff changeset
680 PLAYER_CLASS_TYPE classType;
1014
a704435d3285 comtinue player cleaning
Gloval
parents: 1012
diff changeset
681 unsigned __int8 uCurrentFace;
0
Ritor1
parents:
diff changeset
682 char field_BB;
Ritor1
parents:
diff changeset
683 unsigned __int16 uMight;
Ritor1
parents:
diff changeset
684 unsigned __int16 uMightBonus;
Ritor1
parents:
diff changeset
685 unsigned __int16 uIntelligence;
Ritor1
parents:
diff changeset
686 unsigned __int16 uIntelligenceBonus;
Ritor1
parents:
diff changeset
687 unsigned __int16 uWillpower;
Ritor1
parents:
diff changeset
688 unsigned __int16 uWillpowerBonus;
Ritor1
parents:
diff changeset
689 unsigned __int16 uEndurance;
Ritor1
parents:
diff changeset
690 unsigned __int16 uEnduranceBonus;
Ritor1
parents:
diff changeset
691 unsigned __int16 uSpeed;
Ritor1
parents:
diff changeset
692 unsigned __int16 uSpeedBonus;
Ritor1
parents:
diff changeset
693 unsigned __int16 uAccuracy;
Ritor1
parents:
diff changeset
694 unsigned __int16 uAccuracyBonus;
Ritor1
parents:
diff changeset
695 unsigned __int16 uLuck;
Ritor1
parents:
diff changeset
696 unsigned __int16 uLuckBonus;
Ritor1
parents:
diff changeset
697 __int16 sACModifier;
Ritor1
parents:
diff changeset
698 unsigned __int16 uLevel;
Ritor1
parents:
diff changeset
699 __int16 sLevelModifier;
Ritor1
parents:
diff changeset
700 __int16 sAgeModifier;
Ritor1
parents:
diff changeset
701 int field_E0;
Ritor1
parents:
diff changeset
702 int field_E4;
Ritor1
parents:
diff changeset
703 int field_E8;
Ritor1
parents:
diff changeset
704 int field_EC;
Ritor1
parents:
diff changeset
705 int field_F0;
Ritor1
parents:
diff changeset
706 int field_F4;
Ritor1
parents:
diff changeset
707 int field_F8;
Ritor1
parents:
diff changeset
708 int field_FC;
Ritor1
parents:
diff changeset
709 int field_100;
Ritor1
parents:
diff changeset
710 int field_104;
Ritor1
parents:
diff changeset
711 union
Ritor1
parents:
diff changeset
712 {
Ritor1
parents:
diff changeset
713 struct
Ritor1
parents:
diff changeset
714 {
Ritor1
parents:
diff changeset
715 unsigned __int16 skillStaff;
Ritor1
parents:
diff changeset
716 unsigned __int16 skillSword;
Ritor1
parents:
diff changeset
717 unsigned __int16 skillDagger;
Ritor1
parents:
diff changeset
718 unsigned __int16 skillAxe;
Ritor1
parents:
diff changeset
719 unsigned __int16 skillSpear;
Ritor1
parents:
diff changeset
720 unsigned __int16 skillBow;
Ritor1
parents:
diff changeset
721 unsigned __int16 skillMace;
Ritor1
parents:
diff changeset
722 unsigned __int16 skillBlaster;
Ritor1
parents:
diff changeset
723 unsigned __int16 skillShield;
Ritor1
parents:
diff changeset
724 unsigned __int16 skillLeather;
Ritor1
parents:
diff changeset
725 unsigned __int16 skillChain;
Ritor1
parents:
diff changeset
726 unsigned __int16 skillPlate;
Ritor1
parents:
diff changeset
727 unsigned __int16 skillFire;
Ritor1
parents:
diff changeset
728 unsigned __int16 skillAir;
Ritor1
parents:
diff changeset
729 unsigned __int16 skillWater;
Ritor1
parents:
diff changeset
730 unsigned __int16 skillEarth;
Ritor1
parents:
diff changeset
731 unsigned __int16 skillSpirit;
Ritor1
parents:
diff changeset
732 unsigned __int16 skillMind;
Ritor1
parents:
diff changeset
733 unsigned __int16 skillBody;
Ritor1
parents:
diff changeset
734 unsigned __int16 skillLight;
Ritor1
parents:
diff changeset
735 unsigned __int16 skillDark;
Ritor1
parents:
diff changeset
736 unsigned __int16 skillItemId;
Ritor1
parents:
diff changeset
737 unsigned __int16 skillMerchant;
Ritor1
parents:
diff changeset
738 unsigned __int16 skillRepair;
Ritor1
parents:
diff changeset
739 unsigned __int16 skillBodybuilding;
Ritor1
parents:
diff changeset
740 unsigned __int16 skillMeditation;
Ritor1
parents:
diff changeset
741 unsigned __int16 skillPerception;
Ritor1
parents:
diff changeset
742 unsigned __int16 skillDiplomacy;
Ritor1
parents:
diff changeset
743 unsigned __int16 skillThievery;
Ritor1
parents:
diff changeset
744 unsigned __int16 skillDisarmTrap;
Ritor1
parents:
diff changeset
745 unsigned __int16 skillDodge;
Ritor1
parents:
diff changeset
746 unsigned __int16 skillUnarmed;
Ritor1
parents:
diff changeset
747 unsigned __int16 skillMonsterId;
Ritor1
parents:
diff changeset
748 unsigned __int16 skillArmsmaster;
Ritor1
parents:
diff changeset
749 unsigned __int16 skillStealing;
Ritor1
parents:
diff changeset
750 unsigned __int16 skillAlchemy;
Ritor1
parents:
diff changeset
751 unsigned __int16 skillLearning;
Ritor1
parents:
diff changeset
752 };
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
753 std::array<unsigned __int16, 37> pActiveSkills;
0
Ritor1
parents:
diff changeset
754 };
1460
ff2118028c71 renaming _guilds_member_bits to _achieved_awards_bits
Gloval
parents: 1430
diff changeset
755 unsigned char _achieved_awards_bits[64];
0
Ritor1
parents:
diff changeset
756 PlayerSpells spellbook;
1019
32ec62bbaa2c player use item part cleanup
Gloval
parents: 1014
diff changeset
757 char field__1F5[2]; // used to be [31]
32ec62bbaa2c player use item part cleanup
Gloval
parents: 1014
diff changeset
758 int pure_luck_used;
32ec62bbaa2c player use item part cleanup
Gloval
parents: 1014
diff changeset
759 int pure_speed_used;
32ec62bbaa2c player use item part cleanup
Gloval
parents: 1014
diff changeset
760 int pure_intellect_used;
32ec62bbaa2c player use item part cleanup
Gloval
parents: 1014
diff changeset
761 int pure_endurance_used;
32ec62bbaa2c player use item part cleanup
Gloval
parents: 1014
diff changeset
762 int pure_willpower_used;
32ec62bbaa2c player use item part cleanup
Gloval
parents: 1014
diff changeset
763 int pure_accuracy_used;
32ec62bbaa2c player use item part cleanup
Gloval
parents: 1014
diff changeset
764 int pure_might_used;
32ec62bbaa2c player use item part cleanup
Gloval
parents: 1014
diff changeset
765 union //214h
1012
9e823ad5eaa6 second msg_queue returned
Gloval
parents: 1008
diff changeset
766 {
9e823ad5eaa6 second msg_queue returned
Gloval
parents: 1008
diff changeset
767 struct
9e823ad5eaa6 second msg_queue returned
Gloval
parents: 1008
diff changeset
768 {
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
769 std::array<ItemGen, 126> pInventoryItemList;
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
770 std::array<ItemGen, 12> pEquippedItems;
1012
9e823ad5eaa6 second msg_queue returned
Gloval
parents: 1008
diff changeset
771 };
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
772 std::array<ItemGen, 138> pOwnItems;
1012
9e823ad5eaa6 second msg_queue returned
Gloval
parents: 1008
diff changeset
773 };
9e823ad5eaa6 second msg_queue returned
Gloval
parents: 1008
diff changeset
774
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
775 std::array<int, 126> pInventoryMatrix;
0
Ritor1
parents:
diff changeset
776 __int16 sResFireBase;
Ritor1
parents:
diff changeset
777 __int16 sResAirBase;
Ritor1
parents:
diff changeset
778 __int16 sResWaterBase;
Ritor1
parents:
diff changeset
779 __int16 sResEarthBase;
Ritor1
parents:
diff changeset
780 __int16 field_177C;
Ritor1
parents:
diff changeset
781 __int16 sResMagicBase;
Ritor1
parents:
diff changeset
782 __int16 sResSpiritBase;
Ritor1
parents:
diff changeset
783 __int16 sResMindBase;
Ritor1
parents:
diff changeset
784 __int16 sResBodyBase;
Ritor1
parents:
diff changeset
785 __int16 sResLightBase;
Ritor1
parents:
diff changeset
786 __int16 sResDarkBase;
Ritor1
parents:
diff changeset
787 __int16 sResFireBonus;
Ritor1
parents:
diff changeset
788 __int16 sResAirBonus;
Ritor1
parents:
diff changeset
789 __int16 sResWaterBonus;
Ritor1
parents:
diff changeset
790 __int16 sResEarthBonus;
Ritor1
parents:
diff changeset
791 __int16 field_1792;
Ritor1
parents:
diff changeset
792 __int16 sResMagicBonus;
Ritor1
parents:
diff changeset
793 __int16 sResSpiritBonus;
Ritor1
parents:
diff changeset
794 __int16 sResMindBonus;
Ritor1
parents:
diff changeset
795 __int16 sResBodyBonus;
Ritor1
parents:
diff changeset
796 __int16 sResLightBonus;
Ritor1
parents:
diff changeset
797 __int16 sResDarkBonus;
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
798 std::array<SpellBuff, 24> pPlayerBuffs;
0
Ritor1
parents:
diff changeset
799 unsigned int uVoiceID;
1014
a704435d3285 comtinue player cleaning
Gloval
parents: 1012
diff changeset
800 int uPrevVoiceID;
a704435d3285 comtinue player cleaning
Gloval
parents: 1012
diff changeset
801 int uPrevFace;
0
Ritor1
parents:
diff changeset
802 int field_192C;
Ritor1
parents:
diff changeset
803 int field_1930;
Ritor1
parents:
diff changeset
804 unsigned __int16 uTimeToRecovery;
Ritor1
parents:
diff changeset
805 char field_1936;
Ritor1
parents:
diff changeset
806 char field_1937;
Ritor1
parents:
diff changeset
807 unsigned int uSkillPoints;
Ritor1
parents:
diff changeset
808 int sHealth;
Ritor1
parents:
diff changeset
809 int sMana;
Ritor1
parents:
diff changeset
810 unsigned int uBirthYear;
Ritor1
parents:
diff changeset
811 PlayerEquipment pEquipment;
Ritor1
parents:
diff changeset
812 int field_1988[49];
Ritor1
parents:
diff changeset
813 char field_1A4C;
Ritor1
parents:
diff changeset
814 char field_1A4D;
198
e6e348d66a75 Some work on spellbook
Nomad
parents: 188
diff changeset
815 char lastOpenedSpellbookPage;
0
Ritor1
parents:
diff changeset
816 unsigned __int8 uQuickSpell;
1822
5f9eeb7bf8e6 Finishing Player.cpp, fixing some bugs
Grumpy7
parents: 1820
diff changeset
817 char playerEventBits[64];
0
Ritor1
parents:
diff changeset
818 char _some_attack_bonus;
Ritor1
parents:
diff changeset
819 char field_1A91;
Ritor1
parents:
diff changeset
820 char _melee_dmg_bonus;
Ritor1
parents:
diff changeset
821 char field_1A93;
Ritor1
parents:
diff changeset
822 char _ranged_atk_bonus;
Ritor1
parents:
diff changeset
823 char field_1A95;
Ritor1
parents:
diff changeset
824 char _ranged_dmg_bonus;
Ritor1
parents:
diff changeset
825 char field_1A97;
Ritor1
parents:
diff changeset
826 char uFullHealthBonus;
Ritor1
parents:
diff changeset
827 char _health_related;
Ritor1
parents:
diff changeset
828 char uFullManaBonus;
Ritor1
parents:
diff changeset
829 char _mana_related;
130
1c471f3629fb Party expressions update
Nomad
parents: 0
diff changeset
830 CHARACTER_EXPRESSION_ID expression;
0
Ritor1
parents:
diff changeset
831 unsigned __int16 uExpressionTimePassed;
Ritor1
parents:
diff changeset
832 unsigned __int16 uExpressionTimeLength;
Ritor1
parents:
diff changeset
833 __int16 field_1AA2;
554
9caf59edb1ee Cave and Temple load and even doesn't crash (for a while).
Nomad
parents: 501
diff changeset
834 int _expression21_animtime;
9caf59edb1ee Cave and Temple load and even doesn't crash (for a while).
Nomad
parents: 501
diff changeset
835 int _expression21_frameset;
1826
bdac32c645c5 Changing arrays in class Player to std::array
Grumpy7
parents: 1822
diff changeset
836 std::array<LloydBeacon, 5> pInstalledBeacons;
0
Ritor1
parents:
diff changeset
837 char uNumDivineInterventionCastsThisDay;
Ritor1
parents:
diff changeset
838 char uNumArmageddonCasts;
Ritor1
parents:
diff changeset
839 char uNumFireSpikeCasts;
Ritor1
parents:
diff changeset
840 char field_1B3B;
Ritor1
parents:
diff changeset
841 };
Ritor1
parents:
diff changeset
842 #pragma pack(pop)
2054
62a27b2cfcc2 Player.swig
Nomad
parents: 2023
diff changeset
843
62a27b2cfcc2 Player.swig
Nomad
parents: 2023
diff changeset
844 extern NZIArray<struct Player *, 5> pPlayers;