Removed onEvtThink method debug message.
This commit is contained in:
parent
3a373ee4d3
commit
43e04da970
@ -24,7 +24,6 @@ import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@ -1202,11 +1201,13 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LOGGER.log(Level.WARNING, this + " - " + getIntention().toString() + " - onEvtThink() failed", e);
|
||||
// LOGGER.warning(getClass().getSimpleName() + ": " + this.getActor().getName() + " - onEvtThink() failed!");
|
||||
}
|
||||
finally
|
||||
{
|
||||
// Stop thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
// Finish thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -784,7 +784,7 @@ public class L2Attackable extends L2Npc
|
||||
final AggroInfo ai = _aggroList.get(target);
|
||||
if (ai == null)
|
||||
{
|
||||
LOGGER.info("target " + target + " not present in aggro list of " + this);
|
||||
LOGGER.info("Target " + target + " not present in aggro list of " + this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,6 @@ import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@ -1169,13 +1168,8 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
@Override
|
||||
protected void onEvtThink()
|
||||
{
|
||||
// Check if the actor can't use skills
|
||||
if (getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Check if a thinking action isn't already in progress
|
||||
if (_thinking)
|
||||
// Check if the actor can't use skills and if a thinking action isn't already in progress
|
||||
if (_thinking || getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -1207,11 +1201,13 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LOGGER.log(Level.WARNING, this + " - " + getIntention().toString() + " - onEvtThink() failed", e);
|
||||
// LOGGER.warning(getClass().getSimpleName() + ": " + this.getActor().getName() + " - onEvtThink() failed!");
|
||||
}
|
||||
finally
|
||||
{
|
||||
// Stop thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
// Finish thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -780,7 +780,7 @@ public class L2Attackable extends L2Npc
|
||||
final AggroInfo ai = _aggroList.get(target);
|
||||
if (ai == null)
|
||||
{
|
||||
LOGGER.info("target " + target + " not present in aggro list of " + this);
|
||||
LOGGER.info("Target " + target + " not present in aggro list of " + this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,6 @@ import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@ -1169,13 +1168,8 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
@Override
|
||||
protected void onEvtThink()
|
||||
{
|
||||
// Check if the actor can't use skills
|
||||
if (getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Check if a thinking action isn't already in progress
|
||||
if (_thinking)
|
||||
// Check if the actor can't use skills and if a thinking action isn't already in progress
|
||||
if (_thinking || getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -1207,11 +1201,13 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LOGGER.log(Level.WARNING, this + " - " + getIntention().toString() + " - onEvtThink() failed", e);
|
||||
// LOGGER.warning(getClass().getSimpleName() + ": " + this.getActor().getName() + " - onEvtThink() failed!");
|
||||
}
|
||||
finally
|
||||
{
|
||||
// Stop thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
// Finish thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -780,7 +780,7 @@ public class L2Attackable extends L2Npc
|
||||
final AggroInfo ai = _aggroList.get(target);
|
||||
if (ai == null)
|
||||
{
|
||||
LOGGER.info("target " + target + " not present in aggro list of " + this);
|
||||
LOGGER.info("Target " + target + " not present in aggro list of " + this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,6 @@ import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@ -1169,13 +1168,8 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
@Override
|
||||
protected void onEvtThink()
|
||||
{
|
||||
// Check if the actor can't use skills
|
||||
if (getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Check if a thinking action isn't already in progress
|
||||
if (_thinking)
|
||||
// Check if the actor can't use skills and if a thinking action isn't already in progress
|
||||
if (_thinking || getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -1207,11 +1201,13 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LOGGER.log(Level.WARNING, this + " - " + getIntention().toString() + " - onEvtThink() failed", e);
|
||||
// LOGGER.warning(getClass().getSimpleName() + ": " + this.getActor().getName() + " - onEvtThink() failed!");
|
||||
}
|
||||
finally
|
||||
{
|
||||
// Stop thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
// Finish thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -780,7 +780,7 @@ public class L2Attackable extends L2Npc
|
||||
final AggroInfo ai = _aggroList.get(target);
|
||||
if (ai == null)
|
||||
{
|
||||
LOGGER.info("target " + target + " not present in aggro list of " + this);
|
||||
LOGGER.info("Target " + target + " not present in aggro list of " + this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,6 @@ import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@ -1169,13 +1168,8 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
@Override
|
||||
protected void onEvtThink()
|
||||
{
|
||||
// Check if the actor can't use skills
|
||||
if (getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Check if a thinking action isn't already in progress
|
||||
if (_thinking)
|
||||
// Check if the actor can't use skills and if a thinking action isn't already in progress
|
||||
if (_thinking || getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -1207,11 +1201,13 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LOGGER.log(Level.WARNING, this + " - " + getIntention().toString() + " - onEvtThink() failed", e);
|
||||
// LOGGER.warning(getClass().getSimpleName() + ": " + this.getActor().getName() + " - onEvtThink() failed!");
|
||||
}
|
||||
finally
|
||||
{
|
||||
// Stop thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
// Finish thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -780,7 +780,7 @@ public class L2Attackable extends L2Npc
|
||||
final AggroInfo ai = _aggroList.get(target);
|
||||
if (ai == null)
|
||||
{
|
||||
LOGGER.info("target " + target + " not present in aggro list of " + this);
|
||||
LOGGER.info("Target " + target + " not present in aggro list of " + this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,6 @@ import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@ -1169,13 +1168,8 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
@Override
|
||||
protected void onEvtThink()
|
||||
{
|
||||
// Check if the actor can't use skills
|
||||
if (getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Check if a thinking action isn't already in progress
|
||||
if (_thinking)
|
||||
// Check if the actor can't use skills and if a thinking action isn't already in progress
|
||||
if (_thinking || getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -1207,11 +1201,13 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LOGGER.log(Level.WARNING, this + " - " + getIntention().toString() + " - onEvtThink() failed", e);
|
||||
// LOGGER.warning(getClass().getSimpleName() + ": " + this.getActor().getName() + " - onEvtThink() failed!");
|
||||
}
|
||||
finally
|
||||
{
|
||||
// Stop thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
// Finish thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -780,7 +780,7 @@ public class L2Attackable extends L2Npc
|
||||
final AggroInfo ai = _aggroList.get(target);
|
||||
if (ai == null)
|
||||
{
|
||||
LOGGER.info("target " + target + " not present in aggro list of " + this);
|
||||
LOGGER.info("Target " + target + " not present in aggro list of " + this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,6 @@ import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@ -1169,13 +1168,8 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
@Override
|
||||
protected void onEvtThink()
|
||||
{
|
||||
// Check if the actor can't use skills
|
||||
if (getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
// Check if a thinking action isn't already in progress
|
||||
if (_thinking)
|
||||
// Check if the actor can't use skills and if a thinking action isn't already in progress
|
||||
if (_thinking || getActiveChar().isAllSkillsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -1207,11 +1201,13 @@ public class L2AttackableAI extends L2CharacterAI
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LOGGER.log(Level.WARNING, this + " - " + getIntention().toString() + " - onEvtThink() failed", e);
|
||||
// LOGGER.warning(getClass().getSimpleName() + ": " + this.getActor().getName() + " - onEvtThink() failed!");
|
||||
}
|
||||
finally
|
||||
{
|
||||
// Stop thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
// Finish thinking action
|
||||
_thinking = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -780,7 +780,7 @@ public class L2Attackable extends L2Npc
|
||||
final AggroInfo ai = _aggroList.get(target);
|
||||
if (ai == null)
|
||||
{
|
||||
LOGGER.info("target " + target + " not present in aggro list of " + this);
|
||||
LOGGER.info("Target " + target + " not present in aggro list of " + this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user