annotate Spells.h @ 6:82f81d5b7221

Слияние
author Серик@ПончиК
date Tue, 09 Oct 2012 20:00:24 +0600
parents 8b8875f5b359
children 74940016abc8
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 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 signed int Apply(unsigned __int64 uExpireTime, unsigned __int16 uSkillLevel, unsigned __int16 uPower, int a5, unsigned __int8 a6);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43 void Reset();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
44 signed int _4585CA(__int64 a2);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 bool NotExpired();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 unsigned __int64 uExpireTime;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 unsigned __int16 uPower;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 unsigned __int16 uSkill;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 unsigned __int16 uOverlayID;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 unsigned __int8 uCaster;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 unsigned __int8 uFlags;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
53 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
55
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 struct SpellInfo
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
59 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 char *pName;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
61 char *pShortName;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 char *pDescription;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 char *pBasicSkillDesc;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 char *pExpertSkillDesc;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
65 char *pMasterSkillDesc;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 char *pGrandmasterSkillDesc;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
67 unsigned int uSchool;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
68 int field_20;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
69 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
70 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
71
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
72
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
73
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 struct SpellStats
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
77 void Initialize();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
79 SpellInfo pInfos[100];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
83
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
85
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
89
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
91 /* 364 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 struct stru324_spell
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
95 __int16 uItemType;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 __int16 field_2;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 /* 151 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 struct SpellData
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
103 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 unsigned __int16 uNormalLevelMana;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 unsigned __int16 uExpertLevelMana;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 unsigned __int16 uMasterLevelMana;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107 unsigned __int16 uMagisterLevelMana;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108 unsigned __int16 field_8;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 __int16 field_A;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 __int16 field_C;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 __int16 field_E;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
112 __int16 field_10;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
113 char field_12;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
114 char field_13;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
115 __int16 field_14;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
116 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
117 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
118
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
119
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
120
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
121
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
122 extern struct SpellStats *pSpellStats;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
123
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
124
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
125 extern stru324_spell stru_4E3ACC[];
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
126 extern SpellData pSpellDatas[95];