comparison Engine/Spells/Spells.cpp @ 2549:3121fb54a110

Rest & Spelbook refactored into class
author a.parshin
date Tue, 12 May 2015 11:07:32 +0200
parents a902abdfc7f2
children 30eb6dcac768
comparison
equal deleted inserted replaced
2548:87e5590d034b 2549:3121fb54a110
197 SPELL_WATER_ICE_BLAST, SPELL_BODY_FLYING_FIST, SPELL_EARTH_ROCK_BLAST, SPELL_LIGHT_PARALYZE, SPELL_DARK_TOXIC_CLOUD, 197 SPELL_WATER_ICE_BLAST, SPELL_BODY_FLYING_FIST, SPELL_EARTH_ROCK_BLAST, SPELL_LIGHT_PARALYZE, SPELL_DARK_TOXIC_CLOUD,
198 // 155 Mystic Wand of Implosion 156 Mystic Wand of Distortion 157 Mystic Wand of Sharpmetal 158 Mystic Wand of Shrinking 159 Mystic Wand of Incineration 198 // 155 Mystic Wand of Implosion 156 Mystic Wand of Distortion 157 Mystic Wand of Sharpmetal 158 Mystic Wand of Shrinking 159 Mystic Wand of Incineration
199 SPELL_AIR_IMPLOSION, SPELL_EARTH_MASS_DISTORTION, SPELL_DARK_SHARPMETAL, SPELL_DARK_SHRINKING_RAY, SPELL_FIRE_INCINERATE 199 SPELL_AIR_IMPLOSION, SPELL_EARTH_MASS_DISTORTION, SPELL_DARK_SHARPMETAL, SPELL_DARK_SHRINKING_RAY, SPELL_FIRE_INCINERATE
200 }; 200 };
201 201
202
203 std::array<std::array<unsigned char, 12>, 9> pSpellbookSpellIndices = // 4E2430
204 {{ //0 1 2 3 4 5 6 7 8 9 10 11
205 {0, 3, 1, 8, 11, 7, 4, 10, 6, 2, 5, 9},
206 {0, 11, 2, 9, 6, 8, 5, 10, 3, 7, 1, 4},
207 {0, 4, 8, 9, 1, 10, 3, 11, 7, 6, 2, 5},
208 {0, 7, 10, 8, 2, 11, 1, 5, 3, 6, 4, 9},
209 {0, 5, 10, 11, 7, 2, 8, 1, 4, 9, 3, 6},
210 {0, 5, 9, 8, 3, 7, 6, 4, 1, 11, 2, 10},
211 {0, 1, 6, 9, 3, 5, 8, 11, 7, 10, 4, 2},
212 {0, 1, 10, 11, 9, 4, 3, 6, 5, 7, 8, 2},
213 {0, 9, 3, 7, 1, 5, 2, 10, 11, 8, 6, 4}
214 }};
215 202
216 std::array<std::array<struct SpellBookIconPos, 12>, 9> pIconPos={{ 203 std::array<std::array<struct SpellBookIconPos, 12>, 9> pIconPos={{
217 204
218 { 0, 0, 17, 13, 115, 2, 217, 15, 205 { 0, 0, 17, 13, 115, 2, 217, 15,
219 299, 6, 28, 125, 130, 133, 294, 114, 206 299, 6, 28, 125, 130, 133, 294, 114,