Removed AltOlyMaxBuffs config.

This commit is contained in:
MobiusDev
2017-12-01 05:30:57 +00:00
parent 1bf4ffab7e
commit c4d0af1a7b
21 changed files with 0 additions and 147 deletions

View File

@@ -17,10 +17,6 @@ AltOlyStartTime = 18
# Default: 00
AltOlyMin = 00
# Maximum number of buffs.
# Default: 5
AltOlyMaxBuffs = 5
# Olympiad Competition Period, Default 6 hours.
# (If set different, should be increment by 10mins)
# Default: 21600000

View File

@@ -502,7 +502,6 @@ public final class Config
public static Duration WORLD_CHAT_INTERVAL;
public static int ALT_OLY_START_TIME;
public static int ALT_OLY_MIN;
public static int ALT_OLY_MAX_BUFFS;
public static long ALT_OLY_CPERIOD;
public static long ALT_OLY_BATTLE;
public static long ALT_OLY_WPERIOD;
@@ -2145,7 +2144,6 @@ public final class Config
ALT_OLY_START_TIME = Olympiad.getInt("AltOlyStartTime", 18);
ALT_OLY_MIN = Olympiad.getInt("AltOlyMin", 0);
ALT_OLY_MAX_BUFFS = Olympiad.getInt("AltOlyMaxBuffs", 5);
ALT_OLY_CPERIOD = Olympiad.getLong("AltOlyCPeriod", 21600000);
ALT_OLY_BATTLE = Olympiad.getLong("AltOlyBattle", 300000);
ALT_OLY_WPERIOD = Olympiad.getLong("AltOlyWPeriod", 604800000);

View File

@@ -827,18 +827,6 @@ public class L2Npc extends L2Character
}
break;
}
case 36402:
{
if (player.getOlympiadBuffCount() > 0)
{
filename = (player.getOlympiadBuffCount() == Config.ALT_OLY_MAX_BUFFS ? Olympiad.OLYMPIAD_HTML_PATH + "olympiad_buffs.htm" : Olympiad.OLYMPIAD_HTML_PATH + "olympiad_5buffs.htm");
}
else
{
filename = Olympiad.OLYMPIAD_HTML_PATH + "olympiad_nobuffs.htm";
}
break;
}
case 30298: // Blacksmith Pinter
{
if (player.isAcademyMember())

View File

@@ -483,8 +483,6 @@ public final class L2PcInstance extends L2Playable
private boolean _OlympiadStart = false;
private int _olympiadGameId = -1;
private int _olympiadSide = -1;
/** Olympiad buff count. */
private int _olyBuffsCount = 0;
/** Duel */
private boolean _isInDuel = false;
@@ -9066,24 +9064,6 @@ public final class L2PcInstance extends L2Playable
return _olympiadGameId;
}
/**
* Gets the player's olympiad buff count.
* @return the olympiad's buff count
*/
public int getOlympiadBuffCount()
{
return _olyBuffsCount;
}
/**
* Sets the player's olympiad buff count.
* @param buffs the olympiad's buff count
*/
public void setOlympiadBuffCount(int buffs)
{
_olyBuffsCount = buffs;
}
public Location getLastLocation()
{
return _lastLoc;

View File

@@ -181,7 +181,6 @@ public abstract class AbstractOlympiadGame
player.setIsInOlympiadMode(true);
player.setIsOlympiadStart(false);
player.setOlympiadSide(par.getSide());
player.setOlympiadBuffCount(Config.ALT_OLY_MAX_BUFFS);
player.teleToLocation(loc, instance);
player.sendPacket(new ExOlympiadMode(2));
}