0
|
1 #pragma once
|
|
2 #include "Player.h"
|
|
3 #include "NPC.h"
|
|
4 #include "Spells.h"
|
|
5 #include "VectorTypes.h"
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
11
|
|
12
|
|
13
|
|
14
|
|
15
|
|
16 /* 355 */
|
|
17 enum PARTY_FLAGS_2 : __int32
|
|
18 {
|
|
19 PARTY_FLAGS_2_RUNNING = 0x2,
|
|
20 };
|
|
21
|
|
22 /* 347 */
|
|
23 enum PARTY_BUFF_INDEX
|
|
24 {
|
|
25 PARTY_BUFF_RESIST_AIR = 0x0,
|
|
26 PARTY_BUFF_RESIST_BODY = 0x1,
|
|
27 PARTY_BUFF_DAY_OF_GODS = 0x2,
|
|
28 PARTY_BUFF_DETECT_LIFE = 0x3,
|
|
29 PARTY_BUFF_RESIST_EARTH = 0x4,
|
|
30 PARTY_BUFF_FEATHER_FALL = 0x5,
|
|
31 PARTY_BUFF_RESIST_FIRE = 0x6,
|
|
32 PARTY_BUFF_FLY = 0x7,
|
|
33 PARTY_BUFF_HASTE = 0x8,
|
|
34 PARTY_BUFF_HEROISM = 0x9,
|
|
35 PARTY_BUFF_IMMOLATION = 0xA,
|
|
36 PARTY_BUFF_INVISIBILITY = 0xB,
|
|
37 PARTY_BUFF_RESIST_MIND = 0xC,
|
|
38 PARTY_BUFF_PROTECTION_FROM_MAGIC = 0xD,
|
|
39 PARTY_BUFF_SHIELD = 0xE,
|
|
40 PARTY_BUFF_STONE_SKIN = 0xF,
|
|
41 PARTY_BUFF_TORCHLIGHT = 0x10,
|
|
42 PARTY_BUFF_RESIST_WATER = 0x11,
|
|
43 PARTY_BUFF_WATER_WALK = 0x12,
|
|
44 PARTY_BUFF_WIZARD_EYE = 0x13,
|
|
45 };
|
|
46
|
|
47
|
|
48
|
|
49 /* 300 */
|
|
50 enum PartyAction: unsigned __int32
|
|
51 {
|
|
52 PARTY_INVALID = 0,
|
|
53 PARTY_TurnLeft = 0x1,
|
|
54 PARTY_TurnRight = 0x2,
|
|
55 PARTY_StrafeLeft = 0x3,
|
|
56 PARTY_StrafeRight = 0x4,
|
|
57 PARTY_WalkForward = 0x5,
|
|
58 PARTY_WalkBackward = 0x6,
|
|
59 PARTY_LookUp = 0x7,
|
|
60 PARTY_LookDown = 0x8,
|
|
61 PARTY_CenterView = 0x9,
|
|
62 PARTY_unkA = 0xA,
|
|
63 PARTY_unkB = 0xB,
|
|
64 PARTY_Jump = 0xC,
|
|
65 PARTY_FlyUp = 0xD,
|
|
66 PARTY_FlyDown = 0xE,
|
|
67 PARTY_Land = 0xF,
|
|
68 PARTY_RunForward = 0x10,
|
|
69 PARTY_RunBackward = 0x11,
|
|
70 PARTY_FastTurnLeft = 0x12,
|
|
71 PARTY_FastTurnRight = 0x13,
|
|
72
|
|
73 PARTY_dword = 0xFFFFFFFF
|
|
74 };
|
|
75
|
|
76
|
|
77
|
|
78 /* 135 */
|
|
79 #pragma pack(push, 1)
|
|
80 struct ActionQueue
|
|
81 {
|
|
82 void Add(PartyAction action);
|
|
83 PartyAction Next();
|
|
84
|
|
85 unsigned int uNumActions;
|
|
86 PartyAction pActions[30];
|
|
87 };
|
|
88 #pragma pack(pop)
|
|
89
|
|
90
|
|
91
|
|
92
|
|
93
|
|
94
|
|
95
|
|
96
|
|
97
|
|
98
|
|
99 /* 208 */
|
|
100 #pragma pack(push, 1)
|
|
101 struct Party_stru0
|
|
102 {
|
|
103 int field_0[20];
|
|
104 int field_50[170];
|
|
105 int _shop_ban_times[82];
|
|
106 int field_440[44];
|
|
107 int field_4F0[38];
|
|
108 char field_588[2];
|
|
109 char pIsArtifactFound[238];
|
|
110 };
|
|
111 #pragma pack(pop)
|
|
112
|
|
113 /* 207 */
|
|
114 #pragma pack(push, 1)
|
|
115 struct Party
|
|
116 {
|
|
117 Party():
|
|
118 uTimePlayed(0)
|
|
119 {
|
|
120 uCurrentYear = 0;
|
|
121 uCurrentMonth = 0;
|
|
122 uCurrentMonthWeek = 0;
|
|
123 uDaysPlayed = 0;
|
|
124 uCurrentHour = 0;
|
|
125 uCurrentMinute = 0;
|
|
126 uCurrentTimeSecond = 0;
|
|
127
|
|
128 field_6FC = 0;
|
|
129 field_764 = 0;
|
|
130 }
|
|
131
|
|
132 void _4909F4();
|
|
133 void RestAndHeal();
|
|
134 unsigned int GetPartyFame();
|
|
135 void CreateDefaultParty(char bGiveItems);
|
|
136 int Reset();
|
|
137 void ResetPosMiscAndSpellBuffs();
|
|
138 bool HasItem(unsigned int uItemID);
|
|
139 void SetHoldingItem(ItemGen *pItem);
|
|
140 int GetNextActiveCharacter();
|
|
141 bool _497FC5_check_party_perception_against_level();
|
|
142 bool AddItem(ItemGen *pItem);
|
|
143 void Yell();
|
|
144
|
|
145 static void SetGold(unsigned int uNumGold);
|
|
146 static void TakeGold(unsigned int uNumGold);
|
|
147 static __int16 SetFood(unsigned int uNumFood);
|
|
148 static void TakeFood(unsigned int uNumFood);
|
|
149 static __int16 GiveFood(unsigned int _this);
|
|
150
|
|
151 inline bool WizardEyeActive() {return pPartyBuffs[PARTY_BUFF_WIZARD_EYE].uExpireTime > 0;}
|
|
152 inline int WizardEyeSkillLevel() {return pPartyBuffs[PARTY_BUFF_WIZARD_EYE].uSkill;}
|
|
153 inline bool TorchlightActive() {return pPartyBuffs[PARTY_BUFF_TORCHLIGHT].uExpireTime > 0;}
|
|
154 inline bool FlyActive() {return pPartyBuffs[PARTY_BUFF_FLY].uExpireTime > 0;}
|
|
155 inline bool WaterWalkActive() {return pPartyBuffs[PARTY_BUFF_WATER_WALK].uExpireTime > 0;}
|
|
156 inline bool ImmolationActive() {return pPartyBuffs[PARTY_BUFF_IMMOLATION].uExpireTime > 0;}
|
|
157 inline bool ImmolationSkillLevel() {return pPartyBuffs[PARTY_BUFF_IMMOLATION].uSkill;}
|
|
158 inline bool FeatherFallActive() {return pPartyBuffs[PARTY_BUFF_FEATHER_FALL].uExpireTime > 0;}
|
|
159
|
|
160
|
|
161 int field_0;
|
|
162 unsigned int uPartyHeight;
|
|
163 unsigned int uDefaultPartyHeight;
|
|
164 int sEyelevel;
|
|
165 unsigned int uDefaultEyelevel;
|
|
166 int field_14;
|
|
167 int field_18;
|
|
168 unsigned int uWalkSpeed;
|
|
169 int field_20_prolly_turn_speed;
|
|
170 int field_24;
|
|
171 int field_28;
|
|
172 unsigned __int64 uTimePlayed;
|
|
173 __int64 uLastRegenerationTime;
|
|
174 Party_stru0 field_3C;
|
|
175 Vec3_int_ vPosition;
|
|
176 int sRotationY;
|
|
177 int sRotationX;
|
|
178 Vec3_int_ vPrevPosition;
|
|
179 int sPrevRotationY;
|
|
180 int sPrevRotationX;
|
|
181 int sPrevEyelevel;
|
|
182 int field_6E0;
|
|
183 int field_6E4;
|
|
184 int uFallSpeed;
|
|
185 int field_6EC;
|
|
186 int field_6F0;
|
|
187 int field_6F4_packedid;
|
|
188 int field_6F8;
|
|
189 int field_6FC;
|
|
190 int uFallStartY;
|
|
191 unsigned int bFlying;
|
|
192 char field_708;
|
|
193 char field_709;
|
|
194 char field_70A;
|
|
195 char field_70B;
|
|
196 unsigned int uCurrentYear;
|
|
197 unsigned int uCurrentMonth;
|
|
198 unsigned int uCurrentMonthWeek;
|
|
199 unsigned int uDaysPlayed;
|
|
200 unsigned int uCurrentHour;
|
|
201 unsigned int uCurrentMinute;
|
|
202 unsigned int uCurrentTimeSecond;
|
|
203 unsigned int uNumFoodRations;
|
|
204 int field_72C;
|
|
205 int field_730;
|
|
206 unsigned int uNumGold;
|
|
207 unsigned int uNumGoldInBank;
|
|
208 unsigned int uNumDeaths;
|
|
209 int field_740;
|
|
210 int uNumPrisonTerms;
|
|
211 unsigned int uNumBountiesCollected;
|
|
212 int field_74C;
|
|
213 __int16 field_750[5];
|
|
214 __int16 field_75A[5];
|
|
215 char field_764; // num hours resting or some sort of.
|
|
216 unsigned __int8 _award_bits[64];
|
|
217 unsigned __int8 pArcomageWins[16];
|
|
218 char field_7B5_in_arena_quest;
|
|
219 char uNumArenaPageWins;
|
|
220 char uNumArenaSquireWins;
|
|
221 char uNumArenaKnightWins;
|
|
222 char uNumArenaLordWins;
|
|
223 char field_7BA[12];
|
|
224 char pArtifactsFound[56];
|
|
225 unsigned char _autonote_bits[12];
|
|
226 char field_80A[74];
|
|
227 char field_854[32];
|
|
228 int field_874;
|
|
229 int field_878;
|
|
230 unsigned int bTurnBasedModeOn;
|
|
231 int field_880;
|
|
232 int uFlags2;
|
|
233 unsigned int uAlignment;
|
|
234 SpellBuff pPartyBuffs[20];
|
|
235 Player pPlayers[4];
|
|
236 NPCData pHirelings[2];
|
|
237 ItemGen pPickedItem;
|
|
238 unsigned int uFlags;
|
|
239 int field_777C[1000];
|
|
240 int field_871C[1000];
|
|
241 int field_96BC[1000];
|
|
242 int field_A65C[1000];
|
|
243 int field_B5FC[1000];
|
|
244 int field_C59C[1000];
|
|
245 int field_D53C[1000];
|
|
246 int field_E4DC[300];
|
|
247 int field_E98C[13];
|
|
248 int dword_E9C0;
|
|
249 int dword_E9C4;
|
|
250 char field_E9C8[5000];
|
|
251 char field_FD50[5000];
|
|
252 char field_110D8[5000];
|
|
253 char field_12460[5000];
|
|
254 char field_137E8[5000];
|
|
255 char field_14B70[5000];
|
|
256 char field_15EF8[250];
|
|
257 char field_15FF2[130];
|
|
258 char pHireling1Name[100];
|
|
259 char pHireling2Name[100];
|
|
260 int field_1613C;
|
|
261 int field_16140;
|
|
262 int pTurnBasedPlayerRecoveryTimes[4];
|
|
263 char field_16154[212];
|
|
264 int uFine;
|
|
265 float flt_TorchlightColorR;
|
|
266 float flt_TorchlightColorG;
|
|
267 float flt_TorchlightColorB;
|
|
268 };
|
|
269 #pragma pack(pop)
|
|
270
|
|
271
|
|
272
|
|
273 extern Party *pParty; // idb
|
|
274
|
|
275
|
|
276 extern struct ActionQueue *pPartyActionQueue; |