annotate Player.h @ 212:9f349addbe00

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