Port mlog AA category to new log system

This commit is contained in:
Akkadius 2015-01-17 01:59:18 -06:00
parent b06d1b9050
commit aec39d2650
3 changed files with 9 additions and 9 deletions

View File

@ -951,7 +951,7 @@ void Client::SendAAStats() {
void Client::BuyAA(AA_Action* action) void Client::BuyAA(AA_Action* action)
{ {
mlog(AA__MESSAGE, "Starting to buy AA %d", action->ability); logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::AA, "Starting to buy AA %d", action->ability);
//find the AA information from the database //find the AA information from the database
SendAA_Struct* aa2 = zone->FindAA(action->ability); SendAA_Struct* aa2 = zone->FindAA(action->ability);
@ -963,7 +963,7 @@ void Client::BuyAA(AA_Action* action)
a = action->ability - i; a = action->ability - i;
if(a <= 0) if(a <= 0)
break; break;
mlog(AA__MESSAGE, "Could not find AA %d, trying potential parent %d", action->ability, a); logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::AA, "Could not find AA %d, trying potential parent %d", action->ability, a);
aa2 = zone->FindAA(a); aa2 = zone->FindAA(a);
if(aa2 != nullptr) if(aa2 != nullptr)
break; break;
@ -980,7 +980,7 @@ void Client::BuyAA(AA_Action* action)
uint32 cur_level = GetAA(aa2->id); uint32 cur_level = GetAA(aa2->id);
if((aa2->id + cur_level) != action->ability) { //got invalid AA if((aa2->id + cur_level) != action->ability) { //got invalid AA
mlog(AA__ERROR, "Unable to find or match AA %d (found %d + lvl %d)", action->ability, aa2->id, cur_level); logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::AA, "Unable to find or match AA %d (found %d + lvl %d)", action->ability, aa2->id, cur_level);
return; return;
} }
@ -1011,7 +1011,7 @@ void Client::BuyAA(AA_Action* action)
if (m_pp.aapoints >= real_cost && cur_level < aa2->max_level) { if (m_pp.aapoints >= real_cost && cur_level < aa2->max_level) {
SetAA(aa2->id, cur_level + 1); SetAA(aa2->id, cur_level + 1);
mlog(AA__MESSAGE, "Set AA %d to level %d", aa2->id, cur_level + 1); logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::AA, "Set AA %d to level %d", aa2->id, cur_level + 1);
m_pp.aapoints -= real_cost; m_pp.aapoints -= real_cost;

View File

@ -1898,7 +1898,7 @@ void Client::Handle_0x0193(const EQApplicationPacket *app)
void Client::Handle_OP_AAAction(const EQApplicationPacket *app) void Client::Handle_OP_AAAction(const EQApplicationPacket *app)
{ {
mlog(AA__IN, "Received OP_AAAction"); logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::AA, "Received OP_AAAction");
if (app->size != sizeof(AA_Action)){ if (app->size != sizeof(AA_Action)){
printf("Error! OP_AAAction size didnt match!\n"); printf("Error! OP_AAAction size didnt match!\n");
@ -1907,7 +1907,7 @@ void Client::Handle_OP_AAAction(const EQApplicationPacket *app)
AA_Action* action = (AA_Action*)app->pBuffer; AA_Action* action = (AA_Action*)app->pBuffer;
if (action->action == aaActionActivate) {//AA Hotkey if (action->action == aaActionActivate) {//AA Hotkey
mlog(AA__MESSAGE, "Activating AA %d", action->ability); logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::AA, "Activating AA %d", action->ability);
ActivateAA((aaID)action->ability); ActivateAA((aaID)action->ability);
} }
else if (action->action == aaActionBuy) { else if (action->action == aaActionBuy) {

View File

@ -1391,7 +1391,7 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce
&& (IsGrouped() // still self only if not grouped && (IsGrouped() // still self only if not grouped
|| IsRaidGrouped()) || IsRaidGrouped())
&& (HasProjectIllusion())){ && (HasProjectIllusion())){
mlog(AA__MESSAGE, "Project Illusion overwrote target caster: %s spell id: %d was ON", GetName(), spell_id); logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::AA, "Project Illusion overwrote target caster: %s spell id: %d was ON", GetName(), spell_id);
targetType = ST_GroupClientAndPet; targetType = ST_GroupClientAndPet;
} }
@ -2067,11 +2067,11 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, uint16 slot, uint16
if(IsPlayerIllusionSpell(spell_id) if(IsPlayerIllusionSpell(spell_id)
&& IsClient() && IsClient()
&& (HasProjectIllusion())){ && (HasProjectIllusion())){
mlog(AA__MESSAGE, "Effect Project Illusion for %s on spell id: %d was ON", GetName(), spell_id); logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::AA, "Effect Project Illusion for %s on spell id: %d was ON", GetName(), spell_id);
SetProjectIllusion(false); SetProjectIllusion(false);
} }
else{ else{
mlog(AA__MESSAGE, "Effect Project Illusion for %s on spell id: %d was OFF", GetName(), spell_id); logger.DebugCategory(EQEmuLogSys::Detail, EQEmuLogSys::AA, "Effect Project Illusion for %s on spell id: %d was OFF", GetName(), spell_id);
} }
break; break;
} }