Use of configurations for remote class masters.
Contributed by G-hamsteR.
This commit is contained in:
parent
c36f76a743
commit
4a071c9252
@ -177,15 +177,15 @@ public class PlayerStat extends PlayableStat
|
|||||||
if (masterInstance != null)
|
if (masterInstance != null)
|
||||||
{
|
{
|
||||||
final int curLevel = getActiveChar().getClassId().level();
|
final int curLevel = getActiveChar().getClassId().level();
|
||||||
if ((getLevel() >= 20) && (curLevel == 0))
|
if ((getLevel() >= 20) && (curLevel == 0) && Config.ALLOW_CLASS_MASTERS_FIRST_CLASS)
|
||||||
{
|
{
|
||||||
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
||||||
}
|
}
|
||||||
else if ((getLevel() >= 40) && (curLevel == 1))
|
else if ((getLevel() >= 40) && (curLevel == 1) && Config.ALLOW_CLASS_MASTERS_SECOND_CLASS)
|
||||||
{
|
{
|
||||||
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
||||||
}
|
}
|
||||||
else if ((getLevel() >= 76) && (curLevel == 2))
|
else if ((getLevel() >= 76) && (curLevel == 2) && Config.ALLOW_CLASS_MASTERS_THIRD_CLASS)
|
||||||
{
|
{
|
||||||
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
||||||
}
|
}
|
||||||
|
@ -177,15 +177,15 @@ public class PlayerStat extends PlayableStat
|
|||||||
if (masterInstance != null)
|
if (masterInstance != null)
|
||||||
{
|
{
|
||||||
final int curLevel = getActiveChar().getClassId().level();
|
final int curLevel = getActiveChar().getClassId().level();
|
||||||
if ((getLevel() >= 20) && (curLevel == 0))
|
if ((getLevel() >= 20) && (curLevel == 0) && Config.ALLOW_CLASS_MASTERS_FIRST_CLASS)
|
||||||
{
|
{
|
||||||
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
||||||
}
|
}
|
||||||
else if ((getLevel() >= 40) && (curLevel == 1))
|
else if ((getLevel() >= 40) && (curLevel == 1) && Config.ALLOW_CLASS_MASTERS_SECOND_CLASS)
|
||||||
{
|
{
|
||||||
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
||||||
}
|
}
|
||||||
else if ((getLevel() >= 76) && (curLevel == 2))
|
else if ((getLevel() >= 76) && (curLevel == 2) && Config.ALLOW_CLASS_MASTERS_THIRD_CLASS)
|
||||||
{
|
{
|
||||||
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
ClassMasterInstance.getInstance().onAction(getActiveChar());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user