Visibility changes.

This commit is contained in:
MobiusDev
2016-01-29 14:13:33 +00:00
parent 6e536fc2dd
commit 13507ad46c
298 changed files with 563 additions and 595 deletions

View File

@@ -52,7 +52,7 @@ public class EnergySeeds extends AbstractNpcAI
private static final int RESPAWN = 480000;
private static final int RANDOM_RESPAWN_OFFSET = 180000;
private static final Map<Integer, ESSpawn> SPAWNS = new HashMap<>();
protected static final Map<L2Npc, Integer> _spawnedNpcs = new ConcurrentHashMap<>();
static final Map<L2Npc, Integer> _spawnedNpcs = new ConcurrentHashMap<>();
private static final int TEMPORARY_TELEPORTER = 32602;
// @formatter:off
@@ -100,7 +100,7 @@ public class EnergySeeds extends AbstractNpcAI
startAI();
}
protected boolean isSeedActive(GraciaSeeds seed)
boolean isSeedActive(GraciaSeeds seed)
{
switch (seed)
{
@@ -290,7 +290,7 @@ public class EnergySeeds extends AbstractNpcAI
return super.onEnterZone(character, zone);
}
public void startAI()
private void startAI()
{
// spawn all NPCs
for (ESSpawn spawn : SPAWNS.values())
@@ -302,7 +302,7 @@ public class EnergySeeds extends AbstractNpcAI
}
}
public void startAI(GraciaSeeds type)
private void startAI(GraciaSeeds type)
{
// spawn all NPCs
for (ESSpawn spawn : SPAWNS.values())
@@ -314,7 +314,7 @@ public class EnergySeeds extends AbstractNpcAI
}
}
public void stopAI(GraciaSeeds type)
private void stopAI(GraciaSeeds type)
{
for (L2Npc seed : _spawnedNpcs.keySet())
{
@@ -325,7 +325,7 @@ public class EnergySeeds extends AbstractNpcAI
}
}
public void seedCollectEvent(L2PcInstance player, L2Npc seedEnergy, GraciaSeeds seedType)
private void seedCollectEvent(L2PcInstance player, L2Npc seedEnergy, GraciaSeeds seedType)
{
if (player == null)
{

View File

@@ -108,13 +108,13 @@ public class Lindvior extends AbstractNpcAI
return super.onAdvEvent(event, npc, player);
}
public void scheduleNextLindviorVisit()
private void scheduleNextLindviorVisit()
{
final long delay = (ALT_MODE) ? ALT_MODE_MIN * 60000 : scheduleNextLindviorDate();
startQuestTimer("start", delay, null, null);
}
protected long scheduleNextLindviorDate()
private long scheduleNextLindviorDate()
{
final GregorianCalendar date = new GregorianCalendar();
date.set(Calendar.MINUTE, RESET_MIN);

View File

@@ -94,7 +94,7 @@ public class SeedOfAnnihilation extends AbstractNpcAI
startEffectZonesControl();
}
public void loadSeedRegionData()
private void loadSeedRegionData()
{
// Bistakon data
_regionsData[0] = new SeedRegion(new int[]

View File

@@ -44,7 +44,7 @@ import gracia.vehicles.SoIController.SoIController;
* Gracia class-loader.
* @author Pandragon
*/
public final class GraciaLoader
final class GraciaLoader
{
private static final Logger _log = Logger.getLogger(GraciaLoader.class.getName());

View File

@@ -30,7 +30,7 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
*/
public final class SecretArea extends Quest
{
protected class SAWorld extends InstanceWorld
class SAWorld extends InstanceWorld
{
}
@@ -53,7 +53,7 @@ public final class SecretArea extends Quest
addTalkId(LELRIKIA);
}
protected void enterInstance(L2PcInstance player)
private void enterInstance(L2PcInstance player)
{
InstanceWorld world = InstanceManager.getInstance().getPlayerWorld(player);

View File

@@ -74,24 +74,24 @@ import com.l2jmobius.gameserver.util.Util;
*/
public final class Stage1 extends Quest
{
protected class SOD1World extends InstanceWorld
class SOD1World extends InstanceWorld
{
public Map<L2Npc, Boolean> npcList = new HashMap<>();
public int deviceSpawnedMobCount = 0;
public Lock lock = new ReentrantLock();
final Map<L2Npc, Boolean> npcList = new HashMap<>();
int deviceSpawnedMobCount = 0;
final Lock lock = new ReentrantLock();
}
protected static class SODSpawn
static class SODSpawn
{
public boolean isZone = false;
public boolean isNeededNextFlag = false;
public int npcId;
public int x = 0;
public int y = 0;
public int z = 0;
public int h = 0;
public int zone = 0;
public int count = 0;
boolean isZone = false;
boolean isNeededNextFlag = false;
int npcId;
int x = 0;
int y = 0;
int z = 0;
int h = 0;
int zone = 0;
int count = 0;
}
private static final int INSTANCEID = 110; // this is the client number
@@ -517,7 +517,7 @@ public final class Stage1 extends Quest
return true;
}
protected int enterInstance(L2PcInstance player, String template, Location loc)
private int enterInstance(L2PcInstance player, String template, Location loc)
{
int instanceId = 0;
// check for existing instances for this player
@@ -570,7 +570,7 @@ public final class Stage1 extends Quest
return instanceId;
}
protected boolean checkKillProgress(L2Npc mob, SOD1World world)
private boolean checkKillProgress(L2Npc mob, SOD1World world)
{
if (world.npcList.containsKey(mob))
{
@@ -625,7 +625,7 @@ public final class Stage1 extends Quest
}
}
protected boolean spawnState(SOD1World world)
private boolean spawnState(SOD1World world)
{
if (world.lock.tryLock())
{
@@ -709,7 +709,7 @@ public final class Stage1 extends Quest
return false;
}
protected void spawn(SOD1World world, int npcId, int x, int y, int z, int h, boolean addToKillTable)
private void spawn(SOD1World world, int npcId, int x, int y, int z, int h, boolean addToKillTable)
{
// traps
if ((npcId >= 18720) && (npcId <= 18774))
@@ -762,7 +762,7 @@ public final class Stage1 extends Quest
}
}
protected void setInstanceTimeRestrictions(SOD1World world)
private void setInstanceTimeRestrictions(SOD1World world)
{
final Calendar reenter = Calendar.getInstance();
reenter.set(Calendar.MINUTE, RESET_MIN);

View File

@@ -51,17 +51,17 @@ import ai.npc.AbstractNpcAI;
*/
public final class HallOfSuffering extends AbstractNpcAI
{
protected class HSWorld extends InstanceWorld
class HSWorld extends InstanceWorld
{
public Map<L2Npc, Boolean> npcList = new HashMap<>();
public L2Npc klodekus = null;
public L2Npc klanikus = null;
public boolean isBossesAttacked = false;
public long startTime = 0;
public String ptLeaderName = "";
public int rewardItemId = -1;
public String rewardHtm = "";
public boolean isRewarded = false;
final Map<L2Npc, Boolean> npcList = new HashMap<>();
L2Npc klodekus = null;
L2Npc klanikus = null;
boolean isBossesAttacked = false;
long startTime = 0;
String ptLeaderName = "";
int rewardItemId = -1;
String rewardHtm = "";
boolean isRewarded = false;
}
// NPCs

View File

@@ -42,7 +42,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public abstract class AirShipController extends Quest
{
protected final class DecayTask implements Runnable
final class DecayTask implements Runnable
{
@Override
public void run()
@@ -54,7 +54,7 @@ public abstract class AirShipController extends Quest
}
}
protected final class DepartTask implements Runnable
final class DepartTask implements Runnable
{
@Override
public void run()
@@ -73,14 +73,14 @@ public abstract class AirShipController extends Quest
}
}
public static final Logger _log = Logger.getLogger(AirShipController.class.getName());
private static final Logger _log = Logger.getLogger(AirShipController.class.getName());
protected int _dockZone = 0;
protected int _shipSpawnX = 0;
protected int _shipSpawnY = 0;
protected int _shipSpawnZ = 0;
protected int _shipHeading = 0;
private final int _shipHeading = 0;
protected Location _oustLoc = null;
protected int _locationId = 0;
@@ -93,8 +93,8 @@ public abstract class AirShipController extends Quest
protected int _movieId = 0;
protected boolean _isBusy = false;
protected L2ControllableAirShipInstance _dockedShip = null;
private boolean _isBusy = false;
L2ControllableAirShipInstance _dockedShip = null;
private final Runnable _decayTask = new DecayTask();
private final Runnable _departTask = new DepartTask();