diff options
author | megamage <none@none> | 2009-04-03 16:36:20 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-04-03 16:36:20 -0600 |
commit | cb8b3fe5db781788304f35bfd82b9a6579dd42db (patch) | |
tree | a7216e5dffae51c1e9cfc8ab1f849181c02f2463 /src/game/SpellMgr.cpp | |
parent | f7cc04e9dd71a00d4aa79654a93060871af2d154 (diff) |
[7607] Improvements in support some generic achievement classes Author: VladimirMangos
* Implement support achievements with refAchievement field != 0, that have criterias stored in achievement refAchievement.
* Implement support achievement complete req. with specific count of completed critirias.
* Avoid full achievement list scan at search achievement associated with criteria.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 46e6970e74b..88f8e242bf6 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -876,7 +876,7 @@ void SpellMgr::LoadSpellTargetPositions() bar.step(); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell target coordinates", count ); return; } @@ -942,7 +942,7 @@ void SpellMgr::LoadSpellTargetPositions() delete result; - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell teleport coordinates", count ); } @@ -961,7 +961,7 @@ void SpellMgr::LoadSpellAffects() bar.step(); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell affect definitions", count ); return; } @@ -1022,7 +1022,7 @@ void SpellMgr::LoadSpellAffects() delete result; - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u custom spell affect definitions", count ); for (uint32 id = 0; id < sSpellStore.GetNumRows(); ++id) @@ -1082,7 +1082,7 @@ void SpellMgr::LoadSpellProcEvents() { barGoLink bar( 1 ); bar.step(); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell proc event conditions", count ); return; } @@ -1133,7 +1133,7 @@ void SpellMgr::LoadSpellProcEvents() delete result; - sLog.outString(""); + sLog.outString(); if (customProc) sLog.outString( ">> Loaded %u extra spell proc event conditions +%u custom", count, customProc ); else @@ -1150,7 +1150,7 @@ void SpellMgr::LoadSpellBonusess() { barGoLink bar( 1 ); bar.step(); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell bonus data", count); return; } @@ -1180,7 +1180,7 @@ void SpellMgr::LoadSpellBonusess() delete result; - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u extra spell bonus data", count); } @@ -1264,7 +1264,7 @@ void SpellMgr::LoadSpellElixirs() bar.step(); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell elixir definitions", count ); return; } @@ -1295,7 +1295,7 @@ void SpellMgr::LoadSpellElixirs() delete result; - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell elixir definitions", count ); } @@ -1306,7 +1306,7 @@ void SpellMgr::LoadSpellThreats() sSpellThreatStore.Load(); sLog.outString( ">> Loaded %u aggro generating spells", sSpellThreatStore.RecordCount ); - sLog.outString(""); + sLog.outString(); } bool SpellMgr::IsRankSpellDueToSpell(SpellEntry const *spellInfo_1,uint32 spellId_2) const @@ -1568,7 +1568,7 @@ void SpellMgr::LoadSpellRequired() barGoLink bar( 1 ); bar.step(); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded 0 spell required records" ); sLog.outErrorDb("`spell_required` table is empty!"); return; @@ -1590,7 +1590,7 @@ void SpellMgr::LoadSpellRequired() } while( result->NextRow() ); delete result; - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell required records", rows ); } @@ -1886,7 +1886,7 @@ void SpellMgr::LoadSpellChains() //for (UNORDERED_MAP<uint32, SpellChainNode>::iterator itr=mSpellChains.begin();itr!=mSpellChains.end();itr++) //sLog.outString( "Id: %u, Rank: %d , %s, %u, %u, %u, %u",itr->first,itr->second.rank, sSpellStore.LookupEntry(itr->first)->Rank[sWorld.GetDefaultDbcLocale()], itr->second.first, itr->second.last,itr->second.next ,itr->second.prev); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell chains",count); } @@ -1926,7 +1926,7 @@ void SpellMgr::LoadSpellLearnSkills() } } - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u Spell Learn Skills from DBC", dbc_count ); } @@ -1941,7 +1941,7 @@ void SpellMgr::LoadSpellLearnSpells() barGoLink bar( 1 ); bar.step(); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded 0 spell learn spells" ); sLog.outErrorDb("`spell_learn_spell` table is empty!"); return; @@ -2031,7 +2031,7 @@ void SpellMgr::LoadSpellLearnSpells() } } - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell learn spells + %u found in DBC", count, dbc_count ); } @@ -2049,7 +2049,7 @@ void SpellMgr::LoadSpellScriptTarget() bar.step(); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded 0 spell script target" ); sLog.outErrorDb("`spell_script_target` table is empty!"); return; @@ -2168,7 +2168,7 @@ void SpellMgr::LoadSpellScriptTarget() } */ - sLog.outString(""); + sLog.outString(); sLog.outString(">> Loaded %u Spell Script Targets", count); } @@ -2187,7 +2187,7 @@ void SpellMgr::LoadSpellPetAuras() bar.step(); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell pet auras", count ); return; } @@ -2246,7 +2246,7 @@ void SpellMgr::LoadSpellPetAuras() delete result; - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell pet auras", count ); } @@ -2431,7 +2431,7 @@ void SpellMgr::LoadSpellLinked() { barGoLink bar( 1 ); bar.step(); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u linked spells", count ); return; } @@ -2489,7 +2489,7 @@ void SpellMgr::LoadSpellLinked() delete result; - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u linked spells", count ); } @@ -2529,7 +2529,7 @@ void SpellMgr::LoadPetLevelupSpellMap() } } - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u pet levelup spells", count ); } @@ -2627,7 +2627,7 @@ void SpellMgr::LoadSpellAreas() bar.step(); - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell area requirements", count ); return; } @@ -2815,7 +2815,7 @@ void SpellMgr::LoadSpellAreas() delete result; - sLog.outString(""); + sLog.outString(); sLog.outString( ">> Loaded %u spell area requirements", count ); } @@ -2936,7 +2936,7 @@ void SpellMgr::LoadSkillLineAbilityMap() ++count; } - sLog.outString(""); + sLog.outString(); sLog.outString(">> Loaded %u SkillLineAbility MultiMap Data", count); } |