Minor improvements for L2TeleporterInstance.

This commit is contained in:
MobiusDev
2017-07-31 18:17:06 +00:00
parent 36426fa06f
commit 4aa3c12daf
3 changed files with 6 additions and 6 deletions

View File

@@ -228,7 +228,7 @@ public final class L2TeleporterInstance extends L2Npc
{ {
if (type == TeleportType.NORMAL) if (type == TeleportType.NORMAL)
{ {
if (!player.isSubClassActive() && (player.getLevel() < (Config.MAX_FREE_TELEPORT_LEVEL + 1))) if (!player.isSubClassActive() && (player.getLevel() <= Config.MAX_FREE_TELEPORT_LEVEL))
{ {
return 0; return 0;
} }
@@ -497,7 +497,7 @@ public final class L2TeleporterInstance extends L2Npc
final Calendar cal = Calendar.getInstance(); final Calendar cal = Calendar.getInstance();
int price = list.getPrice(); int price = list.getPrice();
if (player.getLevel() < 41) if (player.getLevel() <= Config.MAX_FREE_TELEPORT_LEVEL)
{ {
price = 0; price = 0;
} }

View File

@@ -228,7 +228,7 @@ public final class L2TeleporterInstance extends L2Npc
{ {
if (type == TeleportType.NORMAL) if (type == TeleportType.NORMAL)
{ {
if (!player.isSubClassActive() && (player.getLevel() < (Config.MAX_FREE_TELEPORT_LEVEL + 1))) if (!player.isSubClassActive() && (player.getLevel() <= Config.MAX_FREE_TELEPORT_LEVEL))
{ {
return 0; return 0;
} }
@@ -497,7 +497,7 @@ public final class L2TeleporterInstance extends L2Npc
final Calendar cal = Calendar.getInstance(); final Calendar cal = Calendar.getInstance();
int price = list.getPrice(); int price = list.getPrice();
if (player.getLevel() < 41) if (player.getLevel() <= Config.MAX_FREE_TELEPORT_LEVEL)
{ {
price = 0; price = 0;
} }

View File

@@ -228,7 +228,7 @@ public final class L2TeleporterInstance extends L2Npc
{ {
if (type == TeleportType.NORMAL) if (type == TeleportType.NORMAL)
{ {
if (!player.isSubClassActive() && (player.getLevel() < (Config.MAX_FREE_TELEPORT_LEVEL + 1))) if (!player.isSubClassActive() && (player.getLevel() <= Config.MAX_FREE_TELEPORT_LEVEL))
{ {
return 0; return 0;
} }
@@ -497,7 +497,7 @@ public final class L2TeleporterInstance extends L2Npc
final Calendar cal = Calendar.getInstance(); final Calendar cal = Calendar.getInstance();
int price = list.getPrice(); int price = list.getPrice();
if (player.getLevel() < 41) if (player.getLevel() <= Config.MAX_FREE_TELEPORT_LEVEL)
{ {
price = 0; price = 0;
} }