annotate Spells.h @ 110:430786d916d6

6.11.12 SaveLoad
author Ritor1
date Tue, 06 Nov 2012 17:30:24 +0600
parents 74940016abc8
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 /* 360 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 enum SPELL_TYPE
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 SPELL_FIRE_PROTECTION_FROM_FIRE = 0x3,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 SPELL_FIRE_HASTE = 0x5,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 SPELL_FIRE_FIRE_RING = 0x8,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 SPELL_AIR_FEATHER_FALL = 0xD,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 SPELL_AIR_PROTECTION_FROM_AIR = 0xE,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 SPELL_AIR_SHIELD = 0x11,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 SPELL_WATER_PROTECTION_FROM_WATER = 0x19,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 SPELL_WATER_WATER_WALK = 0x1B,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 SPELL_EARTH_PROTECTION_FROM_EARTH = 0x24,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 SPELL_EARTH_STONESKIN = 0x26,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 SPELL_SPIRIT_DETECT_LIFE = 0x2D,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 SPELL_SPIRIT_BLESS = 0x2E,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 SPELL_SPIRIT_DOOM = 0x2F,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 SPELL_SPIRIT_PRESERVE = 0x32,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 SPELL_SPIRIT_HEROISM = 0x33,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 SPELL_MIND_REMOVE_FEAR = 0x38,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 SPELL_MIND_PROTECTION_FROM_MIND = 0x3A,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 SPELL_MIND_CURE_PARALYSIS = 0x3D,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 SPELL_BODY_CURE_WEAKNESS = 0x43,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 SPELL_BODY_FIRST_AID = 0x44,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 SPELL_BODY_CURE_POISON = 0x48,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29 SPELL_BODY_HAMMERHANDS = 0x49,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30 SPELL_BODY_CURE_DISEASE = 0x4A,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 SPELL_BODY_PROTECTION_FROM_MAGIC = 0x4B,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 SPELL_DARK_PAIN_REFLECTION = 0x5F,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
35
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
38 /* 68 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 struct SpellBuff
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 {
24
74940016abc8 * on Players
Nomad
parents: 0
diff changeset
42 inline SpellBuff()
74940016abc8 * on Players
Nomad
parents: 0
diff changeset
43 {
74940016abc8 * on Players
Nomad
parents: 0
diff changeset
44 uExpireTime = 0;
74940016abc8 * on Players
Nomad
parents: 0
diff changeset
45 uPower = 0;
74940016abc8 * on Players
Nomad
parents: 0
diff changeset
46 uSkill = 0;
74940016abc8 * on Players
Nomad
parents: 0
diff changeset
47 uOverlayID = 0;
74940016abc8 * on Players
Nomad
parents: 0
diff changeset
48 uCaster = 0;
74940016abc8 * on Players
Nomad
parents: 0
diff changeset
49 uFlags = 0;
74940016abc8 * on Players
Nomad
parents: 0
diff changeset
50 }
74940016abc8 * on Players
Nomad
parents: 0
diff changeset
51
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 signed int Apply(unsigned __int64 uExpireTime, unsigned __int16 uSkillLevel, unsigned __int16 uPower, int a5, unsigned __int8 a6);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 void Reset();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 signed int _4585CA(__int64 a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55 bool NotExpired();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 unsigned __int64 uExpireTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 unsigned __int16 uPower;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 unsigned __int16 uSkill;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 unsigned __int16 uOverlayID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 unsigned __int8 uCaster;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 unsigned __int8 uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 struct SpellInfo
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 char *pName;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71 char *pShortName;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72 char *pDescription;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73 char *pBasicSkillDesc;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 char *pExpertSkillDesc;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 char *pMasterSkillDesc;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 char *pGrandmasterSkillDesc;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 unsigned int uSchool;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 int field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85 struct SpellStats
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 void Initialize();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89 SpellInfo pInfos[100];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 /* 364 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 struct stru324_spell
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 __int16 uItemType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 __int16 field_2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 /* 151 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 struct SpellData
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 unsigned __int16 uNormalLevelMana;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115 unsigned __int16 uExpertLevelMana;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 unsigned __int16 uMasterLevelMana;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 unsigned __int16 uMagisterLevelMana;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118 unsigned __int16 field_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119 __int16 field_A;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120 __int16 field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121 __int16 field_E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 __int16 field_10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123 char field_12;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124 char field_13;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 __int16 field_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
127 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
128
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
129
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
130
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
131
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
132 extern struct SpellStats *pSpellStats;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
133
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
134
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
135 extern stru324_spell stru_4E3ACC[];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
136 extern SpellData pSpellDatas[95];