Mercurial > mm7
comparison Engine/Spells/Spells.h @ 2566:30eb6dcac768
big spell fx overhaul
author | a.parshin |
---|---|
date | Wed, 20 May 2015 21:05:07 +0200 |
parents | 68cdef6879a0 |
children |
comparison
equal
deleted
inserted
replaced
2565:117c219bf913 | 2566:30eb6dcac768 |
---|---|
1 #pragma once | 1 #pragma once |
2 | 2 |
3 #include <array> | 3 #include <array> |
4 | |
5 #include "Engine/Objects/SpriteObject.h" | |
4 | 6 |
5 #include "../VectorTypes.h" | 7 #include "../VectorTypes.h" |
6 | 8 |
7 /* 360 */ | 9 /* 360 */ |
8 enum SPELL_TYPE | 10 enum SPELL_TYPE |
9 { | 11 { |
12 SPELL_0 = 0, | |
13 | |
10 SPELL_FIRE_TORCH_LIGHT = 1, | 14 SPELL_FIRE_TORCH_LIGHT = 1, |
11 SPELL_FIRE_FIRE_BOLT = 2, | 15 SPELL_FIRE_FIRE_BOLT = 2, |
12 SPELL_FIRE_PROTECTION_FROM_FIRE = 3, | 16 SPELL_FIRE_PROTECTION_FROM_FIRE = 3, |
13 SPELL_FIRE_FIRE_AURA = 4, | 17 SPELL_FIRE_FIRE_AURA = 4, |
14 SPELL_FIRE_HASTE = 5, | 18 SPELL_FIRE_HASTE = 5, |
206 | 210 |
207 | 211 |
208 | 212 |
209 /* 364 */ | 213 /* 364 */ |
210 #pragma pack(push, 1) | 214 #pragma pack(push, 1) |
211 struct stru324_spell | 215 struct stru324_spell_id_to_sprite_mapping//stru324_spell |
212 { | 216 { |
213 __int16 uType; | 217 SPRITE_OBJECT_TYPE uSpriteType; |
214 __int16 field_2; | 218 __int16 field_2; |
215 }; | 219 }; |
216 #pragma pack(pop) | 220 #pragma pack(pop) |
217 | 221 |
218 /* 151 */ | 222 /* 151 */ |
279 | 283 |
280 extern struct SpellStats *pSpellStats; | 284 extern struct SpellStats *pSpellStats; |
281 | 285 |
282 extern std::array<std::array<struct SpellBookIconPos, 12>, 9> pIconPos; | 286 extern std::array<std::array<struct SpellBookIconPos, 12>, 9> pIconPos; |
283 | 287 |
284 extern std::array<stru324_spell, 103> stru_4E3ACC; | 288 extern std::array<stru324_spell_id_to_sprite_mapping, 103> spell_sprite_mapping; // 4E3ACC |
285 extern std::array<SpellData, 100> pSpellDatas; | 289 extern std::array<SpellData, 100> pSpellDatas; |
286 extern std::array<unsigned int, 25> wand_spell_ids; | 290 extern std::array<SPELL_TYPE, 25> wand_spell_ids; |
287 | 291 |
288 int _43AFE3_calc_spell_damage(int spellId, int spellLevel, signed int skillMastery, int currentHp); | 292 int _43AFE3_calc_spell_damage(int spellId, int spellLevel, signed int skillMastery, int currentHp); |
289 | 293 |
290 bool sub_427769_isSpellQuickCastableOnShiftClick(unsigned int uSpellID); | 294 bool sub_427769_isSpellQuickCastableOnShiftClick(unsigned int uSpellID); |
291 void __fastcall EventCastSpell(int uSpellID, int uSkillLevel, int uSkill, int fromx, int fromy, int fromz, int tox, int toy, int toz);//sub_448DF8 | 295 void __fastcall EventCastSpell(int uSpellID, int uSkillLevel, int uSkill, int fromx, int fromy, int fromz, int tox, int toy, int toz);//sub_448DF8 |