Always use static modifier when adding values to static lists and maps.

This commit is contained in:
MobiusDevelopment
2019-04-08 10:30:59 +00:00
parent d4993f701e
commit bc61b48a56
262 changed files with 27272 additions and 26968 deletions

View File

@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
private static final int LEOPARD_DRAGON = 23435;
// Locations
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
static
{
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));

View File

@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
}
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
static
{
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
}
private static final List<PlayerClass> dualClassList = new ArrayList<>();
static
{
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));

View File

@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
private static final int HEART = 13001; // Heart of Warding
private static final int CUBE = 31859; // Teleportation Cubic
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
static
{
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));

View File

@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
private static final int SUSCEPTOR = 29011;
// Spawns
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
static
{
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));

View File

@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
{
// NPCs
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
static
{
CLASS_MASTERS.add(31756); // Mr. Cat
CLASS_MASTERS.add(31757); // Queen of Hearts

View File

@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
private static final int MANAGER = 31688;
// Misc
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
static
{
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);

View File

@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
{
// skill data
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
static
{
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit

View File

@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
// skill data
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
static
{
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit

View File

@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
public class ChangeAttributeCrystal implements IItemHandler
{
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
static
{
ITEM_GRADES.put(33502, ItemGrade.S);
ITEM_GRADES.put(35749, ItemGrade.R);

View File

@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
private static final int MIN_LVL = 45;
// Reward
private static final Map<String, Integer> EARS = new HashMap<>();
static
{
EARS.put("cat", 6843); // Cat Ears
EARS.put("raccoon", 7680); // Raccoon ears

View File

@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
// Monsters
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
static
{
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior

View File

@@ -107,6 +107,7 @@ public final class Q00420_LittleWing extends Quest
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
// Drake Drops
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
static
{
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);

View File

@@ -49,6 +49,7 @@ public class Q10790_AMercenaryHelper extends Quest
private static final int NEEDLE_STAKATO_SOLDIER = 21515;
private static final int NEEDLE_STAKATO_DRONE = 21516;
private static final Map<Integer, Integer> MOBS_REQUIRED = new HashMap<>();
static
{
MOBS_REQUIRED.put(SPLINTER_STAKATO, 50);
}

View File

@@ -25,6 +25,7 @@ import java.util.List;
public class MountEnabledSkillList
{
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
static
{
ENABLED_SKILLS.add(4289); // Wyvern Breath
ENABLED_SKILLS.add(325); // Strider Siege Assault

View File

@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
public class ExChangeAttributeInfo implements IClientOutgoingPacket
{
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
static
{
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);

View File

@@ -27,7 +27,6 @@ public abstract class Operators
private static final int INDEX_UNARYPLUS = 7;
private static final Operator[] builtinOperators = new Operator[8];
static
{
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)

View File

@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
private static final int LEOPARD_DRAGON = 23435;
// Locations
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
static
{
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));

View File

@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
}
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
static
{
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
}
private static final List<PlayerClass> dualClassList = new ArrayList<>();
static
{
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));

View File

@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
private static final int HEART = 13001; // Heart of Warding
private static final int CUBE = 31859; // Teleportation Cubic
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
static
{
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));

View File

@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
private static final int SUSCEPTOR = 29011;
// Spawns
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
static
{
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));

View File

@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
{
// NPCs
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
static
{
CLASS_MASTERS.add(31756); // Mr. Cat
CLASS_MASTERS.add(31757); // Queen of Hearts

View File

@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
private static final int MANAGER = 31688;
// Misc
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
static
{
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);

View File

@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
{
// skill data
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
static
{
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit

View File

@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
// skill data
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
static
{
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit

View File

@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
public class ChangeAttributeCrystal implements IItemHandler
{
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
static
{
ITEM_GRADES.put(33502, ItemGrade.S);
ITEM_GRADES.put(35749, ItemGrade.R);

View File

@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
private static final int MIN_LVL = 45;
// Reward
private static final Map<String, Integer> EARS = new HashMap<>();
static
{
EARS.put("cat", 6843); // Cat Ears
EARS.put("raccoon", 7680); // Raccoon ears

View File

@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
// Monsters
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
static
{
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior

View File

@@ -104,6 +104,7 @@ public final class Q00420_LittleWing extends Quest
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
// Drake Drops
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
static
{
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);

View File

@@ -49,6 +49,7 @@ public class Q10790_AMercenaryHelper extends Quest
private static final int NEEDLE_STAKATO_SOLDIER = 21515;
private static final int NEEDLE_STAKATO_DRONE = 21516;
private static final Map<Integer, Integer> MOBS_REQUIRED = new HashMap<>();
static
{
MOBS_REQUIRED.put(SPLINTER_STAKATO, 50);
}

View File

@@ -25,6 +25,7 @@ import java.util.List;
public class MountEnabledSkillList
{
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
static
{
ENABLED_SKILLS.add(4289); // Wyvern Breath
ENABLED_SKILLS.add(325); // Strider Siege Assault

View File

@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
public class ExChangeAttributeInfo implements IClientOutgoingPacket
{
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
static
{
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);

View File

@@ -27,7 +27,6 @@ public abstract class Operators
private static final int INDEX_UNARYPLUS = 7;
private static final Operator[] builtinOperators = new Operator[8];
static
{
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)

View File

@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
private static final int LEOPARD_DRAGON = 23435;
// Locations
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
static
{
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));

View File

@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
}
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
static
{
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
}
private static final List<PlayerClass> dualClassList = new ArrayList<>();
static
{
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));

View File

@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
private static final int HEART = 13001; // Heart of Warding
private static final int CUBE = 31859; // Teleportation Cubic
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
static
{
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));

View File

@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
private static final int SUSCEPTOR = 29011;
// Spawns
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
static
{
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));

View File

@@ -76,6 +76,7 @@ public class AdventureGuildsman extends AbstractNpcAI
// Misc
//@formatter:off
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
static
{
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
@@ -89,6 +90,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
}
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
static
{
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
@@ -102,6 +104,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
}
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
static
{
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
@@ -115,6 +118,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
}
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
static
{
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);

View File

@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
{
// NPCs
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
static
{
CLASS_MASTERS.add(31756); // Mr. Cat
CLASS_MASTERS.add(31757); // Queen of Hearts

View File

@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
private static final int MANAGER = 31688;
// Misc
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
static
{
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);

View File

@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
{
// skill data
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
static
{
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit

View File

@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
// skill data
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
static
{
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit

View File

@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
public class ChangeAttributeCrystal implements IItemHandler
{
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
static
{
ITEM_GRADES.put(33502, ItemGrade.S);
ITEM_GRADES.put(35749, ItemGrade.R);

View File

@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
private static final int MIN_LVL = 45;
// Reward
private static final Map<String, Integer> EARS = new HashMap<>();
static
{
EARS.put("cat", 6843); // Cat Ears
EARS.put("raccoon", 7680); // Raccoon ears

View File

@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
// Monsters
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
static
{
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior

View File

@@ -104,6 +104,7 @@ public final class Q00420_LittleWing extends Quest
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
// Drake Drops
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
static
{
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);

View File

@@ -25,6 +25,7 @@ import java.util.List;
public class MountEnabledSkillList
{
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
static
{
ENABLED_SKILLS.add(4289); // Wyvern Breath
ENABLED_SKILLS.add(325); // Strider Siege Assault

View File

@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
public class ExChangeAttributeInfo implements IClientOutgoingPacket
{
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
static
{
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);

View File

@@ -27,7 +27,6 @@ public abstract class Operators
private static final int INDEX_UNARYPLUS = 7;
private static final Operator[] builtinOperators = new Operator[8];
static
{
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)

View File

@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
private static final int LEOPARD_DRAGON = 23435;
// Locations
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
static
{
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));

View File

@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
}
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
static
{
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
}
private static final List<PlayerClass> dualClassList = new ArrayList<>();
static
{
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));

View File

@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
private static final int HEART = 13001; // Heart of Warding
private static final int CUBE = 31859; // Teleportation Cubic
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
static
{
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));

View File

@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
private static final int SUSCEPTOR = 29011;
// Spawns
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
static
{
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));

View File

@@ -76,6 +76,7 @@ public class AdventureGuildsman extends AbstractNpcAI
// Misc
//@formatter:off
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
static
{
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
@@ -89,6 +90,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
}
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
static
{
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
@@ -102,6 +104,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
}
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
static
{
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
@@ -115,6 +118,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
}
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
static
{
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);

View File

@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
{
// NPCs
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
static
{
CLASS_MASTERS.add(31756); // Mr. Cat
CLASS_MASTERS.add(31757); // Queen of Hearts

View File

@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
private static final int MANAGER = 31688;
// Misc
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
static
{
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);

View File

@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
{
// skill data
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
static
{
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit

View File

@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
// skill data
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
static
{
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit

View File

@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
public class ChangeAttributeCrystal implements IItemHandler
{
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
static
{
ITEM_GRADES.put(33502, ItemGrade.S);
ITEM_GRADES.put(35749, ItemGrade.R);

View File

@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
private static final int MIN_LVL = 45;
// Reward
private static final Map<String, Integer> EARS = new HashMap<>();
static
{
EARS.put("cat", 6843); // Cat Ears
EARS.put("raccoon", 7680); // Raccoon ears

View File

@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
// Monsters
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
static
{
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior

View File

@@ -103,6 +103,7 @@ public final class Q00420_LittleWing extends Quest
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
// Drake Drops
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
static
{
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);

View File

@@ -25,6 +25,7 @@ import java.util.List;
public class MountEnabledSkillList
{
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
static
{
ENABLED_SKILLS.add(4289); // Wyvern Breath
ENABLED_SKILLS.add(325); // Strider Siege Assault

View File

@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
public class ExChangeAttributeInfo implements IClientOutgoingPacket
{
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
static
{
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);

View File

@@ -27,7 +27,6 @@ public abstract class Operators
private static final int INDEX_UNARYPLUS = 7;
private static final Operator[] builtinOperators = new Operator[8];
static
{
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)

View File

@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
private static final int LEOPARD_DRAGON = 23435;
// Locations
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
static
{
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));

View File

@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
}
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
static
{
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
}
private static final List<PlayerClass> dualClassList = new ArrayList<>();
static
{
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));

View File

@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
private static final int HEART = 13001; // Heart of Warding
private static final int CUBE = 31859; // Teleportation Cubic
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
static
{
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));

View File

@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
private static final int SUSCEPTOR = 29011;
// Spawns
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
static
{
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));

View File

@@ -74,6 +74,7 @@ public class AdventureGuildsman extends AbstractNpcAI
// Misc
//@formatter:off
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
static
{
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
@@ -87,6 +88,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
}
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
static
{
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
@@ -100,6 +102,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
}
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
static
{
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
@@ -113,6 +116,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
}
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
static
{
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);

View File

@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
{
// NPCs
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
static
{
CLASS_MASTERS.add(31756); // Mr. Cat
CLASS_MASTERS.add(31757); // Queen of Hearts

View File

@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
private static final int MANAGER = 31688;
// Misc
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
static
{
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);

View File

@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
{
// skill data
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
static
{
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit

View File

@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
// skill data
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
static
{
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit

View File

@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
public class ChangeAttributeCrystal implements IItemHandler
{
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
static
{
ITEM_GRADES.put(33502, ItemGrade.S);
ITEM_GRADES.put(35749, ItemGrade.R);

View File

@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
private static final int MIN_LVL = 45;
// Reward
private static final Map<String, Integer> EARS = new HashMap<>();
static
{
EARS.put("cat", 6843); // Cat Ears
EARS.put("raccoon", 7680); // Raccoon ears

View File

@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
// Monsters
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
static
{
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior

View File

@@ -103,6 +103,7 @@ public final class Q00420_LittleWing extends Quest
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
// Drake Drops
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
static
{
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);

View File

@@ -25,6 +25,7 @@ import java.util.List;
public class MountEnabledSkillList
{
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
static
{
ENABLED_SKILLS.add(4289); // Wyvern Breath
ENABLED_SKILLS.add(325); // Strider Siege Assault

View File

@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
public class ExChangeAttributeInfo implements IClientOutgoingPacket
{
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
static
{
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);

View File

@@ -27,7 +27,6 @@ public abstract class Operators
private static final int INDEX_UNARYPLUS = 7;
private static final Operator[] builtinOperators = new Operator[8];
static
{
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)

View File

@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
private static final int LEOPARD_DRAGON = 23435;
// Locations
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
static
{
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));

View File

@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
}
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
static
{
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
}
private static final List<PlayerClass> dualClassList = new ArrayList<>();
static
{
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));

View File

@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
private static final int HEART = 13001; // Heart of Warding
private static final int CUBE = 31859; // Teleportation Cubic
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
static
{
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));

View File

@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
private static final int SUSCEPTOR = 29011;
// Spawns
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
static
{
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));

View File

@@ -74,6 +74,7 @@ public class AdventureGuildsman extends AbstractNpcAI
// Misc
//@formatter:off
private static final Map<CategoryType, Integer> R_CLASS_TALISMAN = new HashMap<>();
static
{
R_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 735);
R_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 736);
@@ -87,6 +88,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 741);
}
private static final Map<CategoryType, Integer> R90_CLASS_TALISMAN = new HashMap<>();
static
{
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 743);
R90_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 744);
@@ -100,6 +102,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R90_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 749);
}
private static final Map<CategoryType, Integer> R95_CLASS_TALISMAN = new HashMap<>();
static
{
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 751);
R95_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 752);
@@ -113,6 +116,7 @@ public class AdventureGuildsman extends AbstractNpcAI
R95_CLASS_TALISMAN.put(CategoryType.ERTHEIA_WIZARD_GROUP, 757);
}
private static final Map<CategoryType, Integer> R99_CLASS_TALISMAN = new HashMap<>();
static
{
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_SIGEL_GROUP, 759);
R99_CLASS_TALISMAN.put(CategoryType.SIXTH_TIR_GROUP, 760);

View File

@@ -67,6 +67,7 @@ public final class ClassMaster extends AbstractNpcAI implements IXmlReader
{
// NPCs
private static final List<Integer> CLASS_MASTERS = new ArrayList<>();
static
{
CLASS_MASTERS.add(31756); // Mr. Cat
CLASS_MASTERS.add(31757); // Queen of Hearts

View File

@@ -56,6 +56,7 @@ public final class OlyManager extends AbstractNpcAI implements IBypassHandler
private static final int MANAGER = 31688;
// Misc
private static final Map<CategoryType, Integer> EQUIPMENT_MULTISELL = new HashMap<>();
static
{
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_SIGEL_GROUP, 917);
EQUIPMENT_MULTISELL.put(CategoryType.SIXTH_TIR_GROUP, 918);

View File

@@ -40,6 +40,7 @@ public final class AirBind extends AbstractEffect
{
// skill data
private static final Map<ClassId, Integer> _chainedAirSkills = new HashMap<>(36);
static
{
_chainedAirSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10249); // Heavy Hit
_chainedAirSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10249); // Heavy Hit

View File

@@ -56,6 +56,7 @@ public final class KnockBack extends AbstractEffect
// skill data
private static final Map<ClassId, Integer> _chainKnockSkills = new HashMap<>(36);
static
{
_chainKnockSkills.put(ClassId.SIGEL_PHOENIX_KNIGHT, 10250); // Heavy Hit
_chainKnockSkills.put(ClassId.SIGEL_HELL_KNIGHT, 10250); // Heavy Hit

View File

@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.attributechange.ExChangeAt
public class ChangeAttributeCrystal implements IItemHandler
{
private static final Map<Integer, ItemGrade> ITEM_GRADES = new HashMap<>();
static
{
ITEM_GRADES.put(33502, ItemGrade.S);
ITEM_GRADES.put(35749, ItemGrade.R);

View File

@@ -47,6 +47,7 @@ public final class Q00032_AnObviousLie extends Quest
private static final int MIN_LVL = 45;
// Reward
private static final Map<String, Integer> EARS = new HashMap<>();
static
{
EARS.put("cat", 6843); // Cat Ears
EARS.put("raccoon", 7680); // Raccoon ears

View File

@@ -45,7 +45,7 @@ public final class Q00344_1000YearsTheEndOfLamentation extends Quest
private static final ItemHolder CRUCIFIX = new ItemHolder(4273, 1);
// Monsters
private static final Map<Integer, Double> MONSTER_CHANCES = new HashMap<>();
static
{
MONSTER_CHANCES.put(20236, 0.58); // Cave Servant
MONSTER_CHANCES.put(20238, 0.75); // Cave Servant Warrior

View File

@@ -103,6 +103,7 @@ public final class Q00420_LittleWing extends Quest
private static final List<Integer> EGGS = Arrays.asList(EXARION_EGG, SUZET_EGG, KALIBRAN_EGG, SHAMHAI_EGG, ZWOV_EGG);
// Drake Drops
private static final Map<Integer, Integer> EGG_DROPS = new HashMap<>();
static
{
EGG_DROPS.put(LESSER_BASILISK, SHAMHAI_EGG);
EGG_DROPS.put(BASILISK, SHAMHAI_EGG);

View File

@@ -25,6 +25,7 @@ import java.util.List;
public class MountEnabledSkillList
{
private final static List<Integer> ENABLED_SKILLS = new ArrayList<>(2);
static
{
ENABLED_SKILLS.add(4289); // Wyvern Breath
ENABLED_SKILLS.add(325); // Strider Siege Assault

View File

@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
public class ExChangeAttributeInfo implements IClientOutgoingPacket
{
private static final Map<AttributeType, Byte> ATTRIBUTE_MASKS = new HashMap<>();
static
{
ATTRIBUTE_MASKS.put(AttributeType.FIRE, (byte) 1);
ATTRIBUTE_MASKS.put(AttributeType.WATER, (byte) 2);

View File

@@ -27,7 +27,6 @@ public abstract class Operators
private static final int INDEX_UNARYPLUS = 7;
private static final Operator[] builtinOperators = new Operator[8];
static
{
builtinOperators[INDEX_ADDITION] = new Operator("+", 2, true, Operator.PRECEDENCE_ADDITION)

View File

@@ -41,7 +41,7 @@ public final class LeopardDragonHachling extends AbstractNpcAI
private static final int LEOPARD_DRAGON = 23435;
// Locations
private static final List<Location> TRANSFORM_LOCATIONS = new ArrayList<>();
static
{
TRANSFORM_LOCATIONS.add(new Location(84199, 120022, -2944));
TRANSFORM_LOCATIONS.add(new Location(92138, 113735, -3076));

View File

@@ -110,6 +110,7 @@ public final class Raina extends AbstractNpcAI
}
private static final Map<CategoryType, Integer> classCloak = new HashMap<>();
static
{
classCloak.put(CategoryType.SIXTH_SIGEL_GROUP, 30310); // Abelius Cloak
classCloak.put(CategoryType.SIXTH_TIR_GROUP, 30311); // Sapyros Cloak Grade
@@ -122,6 +123,7 @@ public final class Raina extends AbstractNpcAI
}
private static final List<PlayerClass> dualClassList = new ArrayList<>();
static
{
dualClassList.addAll(Arrays.asList(PlayerClass.sigelPhoenixKnight, PlayerClass.sigelHellKnight, PlayerClass.sigelEvasTemplar, PlayerClass.sigelShilenTemplar));
dualClassList.addAll(Arrays.asList(PlayerClass.tyrrDuelist, PlayerClass.tyrrDreadnought, PlayerClass.tyrrTitan, PlayerClass.tyrrGrandKhavatari, PlayerClass.tyrrDoombringer));

View File

@@ -63,6 +63,7 @@ public final class Antharas extends AbstractNpcAI
private static final int HEART = 13001; // Heart of Warding
private static final int CUBE = 31859; // Teleportation Cubic
private static final Map<Integer, Location> INVISIBLE_NPC = new HashMap<>();
static
{
INVISIBLE_NPC.put(29077, new Location(177229, 113298, -7735));
INVISIBLE_NPC.put(29078, new Location(176707, 113585, -7735));

View File

@@ -50,6 +50,7 @@ public final class Core extends AbstractNpcAI
private static final int SUSCEPTOR = 29011;
// Spawns
private static final Map<Integer, Location> MINNION_SPAWNS = new HashMap<>();
static
{
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17191, 109298, -6488));
MINNION_SPAWNS.put(DEATH_KNIGHT, new Location(17564, 109548, -6488));

Some files were not shown because too many files have changed in this diff Show More