mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 21:51:29 +00:00
Remove some mlog related functions in Mob::
This commit is contained in:
parent
79ac3f9b44
commit
d21466566e
@ -3538,35 +3538,6 @@ bool EntityList::LimitCheckName(const char *npc_name)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntityList::RadialSetLogging(Mob *around, bool enabled, bool clients,
|
|
||||||
bool non_clients, float range)
|
|
||||||
{
|
|
||||||
float range2 = range * range;
|
|
||||||
|
|
||||||
auto it = mob_list.begin();
|
|
||||||
while (it != mob_list.end()) {
|
|
||||||
Mob *mob = it->second;
|
|
||||||
|
|
||||||
++it;
|
|
||||||
|
|
||||||
if (mob->IsClient()) {
|
|
||||||
if (!clients)
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
if (!non_clients)
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (around->DistNoRoot(*mob) > range2)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (enabled)
|
|
||||||
mob->EnableLogging();
|
|
||||||
else
|
|
||||||
mob->DisableLogging();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void EntityList::UpdateHoTT(Mob *target)
|
void EntityList::UpdateHoTT(Mob *target)
|
||||||
{
|
{
|
||||||
auto it = client_list.begin();
|
auto it = client_list.begin();
|
||||||
|
|||||||
@ -318,8 +318,6 @@ public:
|
|||||||
void MassGroupBuff(Mob *caster, Mob *center, uint16 spell_id, bool affect_caster = true);
|
void MassGroupBuff(Mob *caster, Mob *center, uint16 spell_id, bool affect_caster = true);
|
||||||
void AEBardPulse(Mob *caster, Mob *center, uint16 spell_id, bool affect_caster = true);
|
void AEBardPulse(Mob *caster, Mob *center, uint16 spell_id, bool affect_caster = true);
|
||||||
|
|
||||||
void RadialSetLogging(Mob *around, bool enabled, bool clients, bool non_clients, float range = 0);
|
|
||||||
|
|
||||||
//trap stuff
|
//trap stuff
|
||||||
Mob* GetTrapTrigger(Trap* trap);
|
Mob* GetTrapTrigger(Trap* trap);
|
||||||
void SendAlarm(Trap* trap, Mob* currenttarget, uint8 kos);
|
void SendAlarm(Trap* trap, Mob* currenttarget, uint8 kos);
|
||||||
|
|||||||
@ -535,12 +535,6 @@ public:
|
|||||||
bool HasProcs() const;
|
bool HasProcs() const;
|
||||||
bool IsCombatProc(uint16 spell_id);
|
bool IsCombatProc(uint16 spell_id);
|
||||||
|
|
||||||
//Logging
|
|
||||||
bool IsLoggingEnabled() const { return(logging_enabled); }
|
|
||||||
void EnableLogging() { logging_enabled = true; }
|
|
||||||
void DisableLogging() { logging_enabled = false; }
|
|
||||||
|
|
||||||
|
|
||||||
//More stuff to sort:
|
//More stuff to sort:
|
||||||
virtual bool IsRaidTarget() const { return false; };
|
virtual bool IsRaidTarget() const { return false; };
|
||||||
virtual bool IsAttackAllowed(Mob *target, bool isSpellAttack = false);
|
virtual bool IsAttackAllowed(Mob *target, bool isSpellAttack = false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user