0
|
1 #pragma once
|
|
2
|
|
3
|
|
4
|
|
5 /* 360 */
|
|
6 enum SPELL_TYPE
|
|
7 {
|
|
8 SPELL_FIRE_PROTECTION_FROM_FIRE = 0x3,
|
|
9 SPELL_FIRE_HASTE = 0x5,
|
|
10 SPELL_FIRE_FIRE_RING = 0x8,
|
|
11 SPELL_AIR_FEATHER_FALL = 0xD,
|
|
12 SPELL_AIR_PROTECTION_FROM_AIR = 0xE,
|
|
13 SPELL_AIR_SHIELD = 0x11,
|
|
14 SPELL_WATER_PROTECTION_FROM_WATER = 0x19,
|
|
15 SPELL_WATER_WATER_WALK = 0x1B,
|
|
16 SPELL_EARTH_PROTECTION_FROM_EARTH = 0x24,
|
|
17 SPELL_EARTH_STONESKIN = 0x26,
|
|
18 SPELL_SPIRIT_DETECT_LIFE = 0x2D,
|
|
19 SPELL_SPIRIT_BLESS = 0x2E,
|
|
20 SPELL_SPIRIT_DOOM = 0x2F,
|
|
21 SPELL_SPIRIT_PRESERVE = 0x32,
|
|
22 SPELL_SPIRIT_HEROISM = 0x33,
|
|
23 SPELL_MIND_REMOVE_FEAR = 0x38,
|
|
24 SPELL_MIND_PROTECTION_FROM_MIND = 0x3A,
|
|
25 SPELL_MIND_CURE_PARALYSIS = 0x3D,
|
|
26 SPELL_BODY_CURE_WEAKNESS = 0x43,
|
|
27 SPELL_BODY_FIRST_AID = 0x44,
|
|
28 SPELL_BODY_CURE_POISON = 0x48,
|
|
29 SPELL_BODY_HAMMERHANDS = 0x49,
|
|
30 SPELL_BODY_CURE_DISEASE = 0x4A,
|
|
31 SPELL_BODY_PROTECTION_FROM_MAGIC = 0x4B,
|
|
32 SPELL_DARK_PAIN_REFLECTION = 0x5F,
|
|
33 };
|
|
34
|
|
35
|
192
|
36 enum SPELL_SCHOOL : int
|
|
37 {
|
|
38 SPELL_SCHOOL_FIRE = 0,
|
|
39 SPELL_SCHOOL_AIR = 1,
|
|
40 SPELL_SCHOOL_WATER = 2,
|
|
41 SPELL_SCHOOL_EARTH = 3,
|
|
42 SPELL_SCHOOL_NONE = 4,
|
|
43 SPELL_SCHOOL_MAGIC = 5,
|
|
44 SPELL_SCHOOL_SPIRIT = 6,
|
|
45 SPELL_SCHOOL_MIND = 7,
|
|
46 SPELL_SCHOOL_BODY = 8,
|
|
47 SPELL_SCHOOL_LIGHT = 9,
|
|
48 SPELL_SCHOOL_DARK = 10
|
|
49 };
|
|
50
|
0
|
51
|
|
52
|
|
53 /* 68 */
|
|
54 #pragma pack(push, 1)
|
|
55 struct SpellBuff
|
|
56 {
|
|
57 inline SpellBuff()
|
|
58 {
|
|
59 uExpireTime = 0;
|
|
60 uPower = 0;
|
|
61 uSkill = 0;
|
|
62 uOverlayID = 0;
|
|
63 uCaster = 0;
|
|
64 uFlags = 0;
|
|
65 }
|
|
66
|
|
67 signed int Apply(unsigned __int64 uExpireTime, unsigned __int16 uSkillLevel, unsigned __int16 uPower, int a5, unsigned __int8 a6);
|
|
68 void Reset();
|
|
69 signed int _4585CA(__int64 a2);
|
|
70 bool NotExpired();
|
|
71
|
|
72 unsigned __int64 uExpireTime;
|
|
73 unsigned __int16 uPower;
|
|
74 unsigned __int16 uSkill;
|
|
75 unsigned __int16 uOverlayID;
|
|
76 unsigned __int8 uCaster;
|
|
77 unsigned __int8 uFlags;
|
|
78 };
|
|
79 #pragma pack(pop)
|
|
80
|
|
81
|
|
82 #pragma pack(push, 1)
|
|
83 struct SpellInfo
|
|
84 {
|
|
85 char *pName;
|
|
86 char *pShortName;
|
|
87 char *pDescription;
|
|
88 char *pBasicSkillDesc;
|
|
89 char *pExpertSkillDesc;
|
|
90 char *pMasterSkillDesc;
|
|
91 char *pGrandmasterSkillDesc;
|
192
|
92 SPELL_SCHOOL uSchool;
|
0
|
93 int field_20;
|
|
94 };
|
|
95 #pragma pack(pop)
|
|
96
|
|
97
|
|
98
|
|
99 #pragma pack(push, 1)
|
|
100 struct SpellStats
|
|
101 {
|
|
102 void Initialize();
|
|
103
|
|
104 SpellInfo pInfos[100];
|
|
105 };
|
|
106 #pragma pack(pop)
|
|
107
|
|
108
|
|
109
|
|
110
|
|
111
|
|
112
|
|
113
|
|
114
|
|
115
|
|
116 /* 364 */
|
|
117 #pragma pack(push, 1)
|
|
118 struct stru324_spell
|
|
119 {
|
|
120 __int16 uItemType;
|
|
121 __int16 field_2;
|
|
122 };
|
|
123 #pragma pack(pop)
|
|
124
|
|
125 /* 151 */
|
|
126 #pragma pack(push, 1)
|
|
127 struct SpellData
|
|
128 {
|
363
|
129 union
|
|
130 {
|
|
131 unsigned __int16 mana_per_skill[4];
|
|
132 struct
|
|
133 {
|
0
|
134 unsigned __int16 uNormalLevelMana;
|
|
135 unsigned __int16 uExpertLevelMana;
|
|
136 unsigned __int16 uMasterLevelMana;
|
|
137 unsigned __int16 uMagisterLevelMana;
|
363
|
138 };
|
|
139 };
|
0
|
140 unsigned __int16 field_8;
|
|
141 __int16 field_A;
|
|
142 __int16 field_C;
|
|
143 __int16 field_E;
|
|
144 __int16 field_10;
|
192
|
145 __int16 field_12;
|
|
146 // char field_12;
|
|
147 // char field_13;
|
189
|
148 // __int16 field_14;
|
0
|
149 };
|
|
150 #pragma pack(pop)
|
|
151
|
357
|
152 #pragma pack(push, 1)
|
|
153 struct SpellBookIconPos
|
|
154 {
|
|
155 unsigned int Xpos;
|
|
156 unsigned int Ypos;
|
|
157 };
|
0
|
158
|
357
|
159 #pragma pack(pop)
|
0
|
160
|
|
161
|
|
162 extern struct SpellStats *pSpellStats;
|
|
163
|
363
|
164 extern struct SpellBookIconPos pIconPos[9][12];
|
0
|
165
|
|
166 extern stru324_spell stru_4E3ACC[];
|
192
|
167 extern SpellData pSpellDatas[100]; |