Code style changes.

This commit is contained in:
MobiusDev
2016-04-26 19:21:19 +00:00
parent 6a13705766
commit fc070c9238
768 changed files with 3338 additions and 4252 deletions

View File

@@ -61,7 +61,7 @@ public final class ExperienceGain implements IVoicedCommandHandler
private TerminateReturn onExperienceReceived(L2Playable playable, long exp)
{
if (playable.isPlayer() && (playable.getActingPlayer().isDead()))
if (playable.isPlayer() && playable.getActingPlayer().isDead())
{
return new TerminateReturn(false, false, false);
}

View File

@@ -56,7 +56,7 @@ public class Unstuck implements IUserCommandHandler
return false;
}
final int unstuckTimer = (activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000);
final int unstuckTimer = activeChar.getAccessLevel().isGm() ? 1000 : Config.UNSTUCK_INTERVAL * 1000;
if (activeChar.isInOlympiadMode())
{
@@ -87,16 +87,13 @@ public class Unstuck implements IUserCommandHandler
activeChar.doCast(escape);
return true;
}
else if (Config.UNSTUCK_INTERVAL > 100)
{
activeChar.sendMessage("You use Escape: " + (unstuckTimer / 60000) + " minutes.");
}
else
{
if (Config.UNSTUCK_INTERVAL > 100)
{
activeChar.sendMessage("You use Escape: " + (unstuckTimer / 60000) + " minutes.");
}
else
{
activeChar.sendMessage("You use Escape: " + (unstuckTimer / 1000) + " seconds.");
}
activeChar.sendMessage("You use Escape: " + (unstuckTimer / 1000) + " seconds.");
}
activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
// SoE Animation section