StatsSet properly named as StatSet.
This commit is contained in:
@@ -18,7 +18,7 @@ package ai.areas.BeastFarm;
|
||||
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
@@ -133,7 +133,7 @@ public class ImprovedBabyPets extends AbstractNpcAI
|
||||
private boolean castBuff(Summon summon, int stepNumber, int buffNumber)
|
||||
{
|
||||
final PlayerInstance owner = summon.getOwner();
|
||||
final StatsSet parameters = summon.getTemplate().getParameters();
|
||||
final StatSet parameters = summon.getTemplate().getParameters();
|
||||
final SkillHolder skill = parameters.getObject("step" + stepNumber + "_buff0" + buffNumber, SkillHolder.class);
|
||||
|
||||
if ((skill != null) && (owner != null))
|
||||
@@ -177,7 +177,7 @@ public class ImprovedBabyPets extends AbstractNpcAI
|
||||
{
|
||||
final boolean previousFollowStatus = summon.getFollowStatus();
|
||||
final PlayerInstance owner = summon.getOwner();
|
||||
final StatsSet parameters = summon.getTemplate().getParameters();
|
||||
final StatSet parameters = summon.getTemplate().getParameters();
|
||||
final SkillHolder skill = parameters.getObject("step" + stepNumber + "_heal0" + healNumber, SkillHolder.class);
|
||||
final int targetType = parameters.getInt("step" + stepNumber + "_heal_target0" + healNumber, 0);
|
||||
|
||||
|
@@ -28,7 +28,7 @@ import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
@@ -138,7 +138,7 @@ public class Antharas extends AbstractNpcAI
|
||||
addAttackId(ANTHARAS, BOMBER, BEHEMOTH, TERASQUE);
|
||||
addKillId(ANTHARAS, TERASQUE, BEHEMOTH);
|
||||
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(ANTHARAS);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(ANTHARAS);
|
||||
final double curr_hp = info.getDouble("currentHP");
|
||||
final double curr_mp = info.getDouble("currentMP");
|
||||
final int loc_x = info.getInt("loc_x");
|
||||
@@ -761,7 +761,7 @@ public class Antharas extends AbstractNpcAI
|
||||
|
||||
private void setRespawn(long respawnTime)
|
||||
{
|
||||
GrandBossManager.getInstance().getStatsSet(ANTHARAS).set("respawn_time", System.currentTimeMillis() + respawnTime);
|
||||
GrandBossManager.getInstance().getStatSet(ANTHARAS).set("respawn_time", System.currentTimeMillis() + respawnTime);
|
||||
}
|
||||
|
||||
private final void refreshAiParams(PlayerInstance attacker, int damage)
|
||||
|
@@ -25,7 +25,7 @@ import org.l2jmobius.gameserver.enums.MountType;
|
||||
import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
@@ -112,7 +112,7 @@ public class Baium extends AbstractNpcAI
|
||||
addSeeCreatureId(BAIUM);
|
||||
addSpellFinishedId(BAIUM);
|
||||
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(BAIUM);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(BAIUM);
|
||||
|
||||
switch (getStatus())
|
||||
{
|
||||
@@ -666,7 +666,7 @@ public class Baium extends AbstractNpcAI
|
||||
|
||||
private void setRespawn(long respawnTime)
|
||||
{
|
||||
GrandBossManager.getInstance().getStatsSet(BAIUM).set("respawn_time", (System.currentTimeMillis() + respawnTime));
|
||||
GrandBossManager.getInstance().getStatSet(BAIUM).set("respawn_time", (System.currentTimeMillis() + respawnTime));
|
||||
}
|
||||
|
||||
private void manageSkills(Npc npc)
|
||||
|
@@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
||||
@@ -85,7 +85,7 @@ public class Core extends AbstractNpcAI
|
||||
registerMobs(CORE, DEATH_KNIGHT, DOOM_WRAITH, SUSCEPTOR);
|
||||
|
||||
_firstAttacked = false;
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(CORE);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(CORE);
|
||||
if (GrandBossManager.getInstance().getBossStatus(CORE) == DEAD)
|
||||
{
|
||||
// Load the unlock date and time for Core from DB.
|
||||
@@ -205,9 +205,9 @@ public class Core extends AbstractNpcAI
|
||||
final long respawnTime = (Config.CORE_SPAWN_INTERVAL + getRandom(-Config.CORE_SPAWN_RANDOM, Config.CORE_SPAWN_RANDOM)) * 3600000;
|
||||
startQuestTimer("core_unlock", respawnTime, null, null);
|
||||
// Also save the respawn time so that the info is maintained past reboots.
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(CORE);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(CORE);
|
||||
info.set("respawn_time", System.currentTimeMillis() + respawnTime);
|
||||
GrandBossManager.getInstance().setStatsSet(CORE, info);
|
||||
GrandBossManager.getInstance().setStatSet(CORE, info);
|
||||
startQuestTimer("despawn_minions", 20000, null, null);
|
||||
cancelQuestTimers("spawn_minion");
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
||||
@@ -63,7 +63,7 @@ public class DrChaos extends AbstractNpcAI
|
||||
addKillId(CHAOS_GOLEM); // Message + despawn.
|
||||
addAttackId(CHAOS_GOLEM); // Random messages when he attacks.
|
||||
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(CHAOS_GOLEM);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(CHAOS_GOLEM);
|
||||
final int status = GrandBossManager.getInstance().getBossStatus(CHAOS_GOLEM);
|
||||
|
||||
// Load the reset date and time for Dr. Chaos from DB.
|
||||
@@ -257,9 +257,9 @@ public class DrChaos extends AbstractNpcAI
|
||||
startQuestTimer("reset_drchaos", respawnTime, null, null, false);
|
||||
|
||||
// also save the respawn time so that the info is maintained past reboots
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(CHAOS_GOLEM);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(CHAOS_GOLEM);
|
||||
info.set("respawn_time", System.currentTimeMillis() + respawnTime);
|
||||
GrandBossManager.getInstance().setStatsSet(CHAOS_GOLEM, info);
|
||||
GrandBossManager.getInstance().setStatSet(CHAOS_GOLEM, info);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.Spawn;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
@@ -92,7 +92,7 @@ public class Orfen extends AbstractNpcAI
|
||||
registerMobs(mobs);
|
||||
_IsTeleported = false;
|
||||
ZONE = ZoneManager.getInstance().getZoneById(12013);
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(ORFEN);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(ORFEN);
|
||||
final int status = GrandBossManager.getInstance().getBossStatus(ORFEN);
|
||||
if (status == DEAD)
|
||||
{
|
||||
@@ -327,9 +327,9 @@ public class Orfen extends AbstractNpcAI
|
||||
respawnTime *= 3600000;
|
||||
startQuestTimer("orfen_unlock", respawnTime, null, null);
|
||||
// also save the respawn time so that the info is maintained past reboots
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(ORFEN);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(ORFEN);
|
||||
info.set("respawn_time", System.currentTimeMillis() + respawnTime);
|
||||
GrandBossManager.getInstance().setStatsSet(ORFEN, info);
|
||||
GrandBossManager.getInstance().setStatSet(ORFEN, info);
|
||||
cancelQuestTimer("check_minion_loc", npc, null);
|
||||
cancelQuestTimer("check_orfen_pos", npc, null);
|
||||
startQuestTimer("despawn_minions", 20000, null, null);
|
||||
|
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.Playable;
|
||||
@@ -91,7 +91,7 @@ public class QueenAnt extends AbstractNpcAI
|
||||
addFactionCallId(NURSE);
|
||||
|
||||
_zone = ZoneManager.getInstance().getZoneById(12012);
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(QUEEN);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(QUEEN);
|
||||
final int status = GrandBossManager.getInstance().getBossStatus(QUEEN);
|
||||
if (status == DEAD)
|
||||
{
|
||||
@@ -367,9 +367,9 @@ public class QueenAnt extends AbstractNpcAI
|
||||
cancelQuestTimer("action", npc, null);
|
||||
cancelQuestTimer("heal", null, null);
|
||||
// also save the respawn time so that the info is maintained past reboots
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(QUEEN);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(QUEEN);
|
||||
info.set("respawn_time", System.currentTimeMillis() + respawnTime);
|
||||
GrandBossManager.getInstance().setStatsSet(QUEEN, info);
|
||||
GrandBossManager.getInstance().setStatSet(QUEEN, info);
|
||||
_nurses.clear();
|
||||
_larva.deleteMe();
|
||||
_larva = null;
|
||||
|
@@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
@@ -123,7 +123,7 @@ public class Valakas extends AbstractNpcAI
|
||||
registerMobs(VALAKAS);
|
||||
|
||||
ZONE = ZoneManager.getInstance().getZoneById(12010);
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(VALAKAS);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(VALAKAS);
|
||||
final int status = GrandBossManager.getInstance().getBossStatus(VALAKAS);
|
||||
|
||||
if (status == DEAD)
|
||||
@@ -446,9 +446,9 @@ public class Valakas extends AbstractNpcAI
|
||||
final long respawnTime = (Config.VALAKAS_SPAWN_INTERVAL + getRandom(-Config.VALAKAS_SPAWN_RANDOM, Config.VALAKAS_SPAWN_RANDOM)) * 3600000;
|
||||
startQuestTimer("valakas_unlock", respawnTime, null, null);
|
||||
// also save the respawn time so that the info is maintained past reboots
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(VALAKAS);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(VALAKAS);
|
||||
info.set("respawn_time", System.currentTimeMillis() + respawnTime);
|
||||
GrandBossManager.getInstance().setStatsSet(VALAKAS, info);
|
||||
GrandBossManager.getInstance().setStatSet(VALAKAS, info);
|
||||
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@ package ai.bosses.Zaken;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.GrandBossInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
@@ -48,7 +48,7 @@ public class Zaken extends AbstractNpcAI
|
||||
{
|
||||
addKillId(ZAKEN);
|
||||
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(ZAKEN);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(ZAKEN);
|
||||
final int status = GrandBossManager.getInstance().getBossStatus(ZAKEN);
|
||||
if (status == DEAD)
|
||||
{
|
||||
@@ -96,9 +96,9 @@ public class Zaken extends AbstractNpcAI
|
||||
final long respawnTime = (Config.ZAKEN_SPAWN_INTERVAL + getRandom(-Config.ZAKEN_SPAWN_RANDOM, Config.ZAKEN_SPAWN_RANDOM)) * 3600000;
|
||||
startQuestTimer("zaken_unlock", respawnTime, null, null);
|
||||
// also save the respawn time so that the info is maintained past reboots
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(ZAKEN);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(ZAKEN);
|
||||
info.set("respawn_time", System.currentTimeMillis() + respawnTime);
|
||||
GrandBossManager.getInstance().setStatsSet(ZAKEN, info);
|
||||
GrandBossManager.getInstance().setStatSet(ZAKEN, info);
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
|
@@ -23,7 +23,7 @@ import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.instancemanager.MapRegionManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
@@ -101,7 +101,7 @@ public class CastleTeleporter extends AbstractNpcAI
|
||||
if (st.hasMoreTokens())
|
||||
{
|
||||
final int unknowInt = Integer.parseInt(st.nextToken());
|
||||
final StatsSet npcParams = npc.getParameters();
|
||||
final StatSet npcParams = npc.getParameters();
|
||||
Location teleLoc = null;
|
||||
switch (unknowInt)
|
||||
{
|
||||
@@ -191,7 +191,7 @@ public class CastleTeleporter extends AbstractNpcAI
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
private Location getTeleportLocation(StatsSet npcParams, String paramName1, String paramName2, String paramName3)
|
||||
private Location getTeleportLocation(StatSet npcParams, String paramName1, String paramName2, String paramName3)
|
||||
{
|
||||
final Location loc;
|
||||
if (getRandom(100) < 33)
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package ai.others.Servitors;
|
||||
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
@@ -52,7 +52,7 @@ public class TreeOfLife extends AbstractNpcAI
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTimerEvent(String event, StatsSet params, Npc npc, PlayerInstance player)
|
||||
public void onTimerEvent(String event, StatSet params, Npc npc, PlayerInstance player)
|
||||
{
|
||||
if (player != null)
|
||||
{
|
||||
|
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.cache.HtmCache;
|
||||
import org.l2jmobius.gameserver.handler.IAdminCommandHandler;
|
||||
import org.l2jmobius.gameserver.instancemanager.GrandBossManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.zone.type.NoRestartZone;
|
||||
@@ -305,7 +305,7 @@ public class AdminGrandBoss implements IAdminCommandHandler
|
||||
}
|
||||
}
|
||||
|
||||
final StatsSet info = GrandBossManager.getInstance().getStatsSet(grandBossId);
|
||||
final StatSet info = GrandBossManager.getInstance().getStatSet(grandBossId);
|
||||
final String bossRespawn = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(info.getLong("respawn_time"));
|
||||
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage(0, 1);
|
||||
|
@@ -19,7 +19,7 @@ package handlers.admincommandhandlers;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import org.l2jmobius.gameserver.handler.IAdminCommandHandler;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
@@ -114,7 +114,7 @@ public class AdminOlympiad implements IAdminCommandHandler
|
||||
|
||||
if (player.isNoble())
|
||||
{
|
||||
final StatsSet statDat = getPlayerSet(player);
|
||||
final StatSet statDat = getPlayerSet(player);
|
||||
final int oldpoints = Olympiad.getInstance().getNoblePoints(player);
|
||||
final int points = Math.max(oldpoints + val, 0);
|
||||
if (points > 1000)
|
||||
@@ -155,7 +155,7 @@ public class AdminOlympiad implements IAdminCommandHandler
|
||||
|
||||
if (player.isNoble())
|
||||
{
|
||||
final StatsSet playerStat = Olympiad.getNobleStats(player.getObjectId());
|
||||
final StatSet playerStat = Olympiad.getNobleStats(player.getObjectId());
|
||||
if (playerStat == null)
|
||||
{
|
||||
BuilderUtil.sendSysMessage(activeChar, "This player hasn't played on Olympiad yet!");
|
||||
@@ -197,7 +197,7 @@ public class AdminOlympiad implements IAdminCommandHandler
|
||||
|
||||
if (player.isNoble())
|
||||
{
|
||||
final StatsSet statDat = getPlayerSet(player);
|
||||
final StatSet statDat = getPlayerSet(player);
|
||||
final int oldpoints = Olympiad.getInstance().getNoblePoints(player);
|
||||
final int points = oldpoints - val;
|
||||
if ((points < 1) && (points > 1000))
|
||||
@@ -237,12 +237,12 @@ public class AdminOlympiad implements IAdminCommandHandler
|
||||
return Integer.decode(token);
|
||||
}
|
||||
|
||||
private StatsSet getPlayerSet(PlayerInstance player)
|
||||
private StatSet getPlayerSet(PlayerInstance player)
|
||||
{
|
||||
StatsSet statDat = Olympiad.getNobleStats(player.getObjectId());
|
||||
StatSet statDat = Olympiad.getNobleStats(player.getObjectId());
|
||||
if (statDat == null)
|
||||
{
|
||||
statDat = new StatsSet();
|
||||
statDat = new StatSet();
|
||||
statDat.set(Olympiad.CLASS_ID, player.getBaseClass());
|
||||
statDat.set(Olympiad.CHAR_NAME, player.getName());
|
||||
statDat.set(Olympiad.POINTS, Olympiad.DEFAULT_POINTS);
|
||||
|
@@ -19,7 +19,7 @@ package handlers.conditions;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.CategoryType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.ICondition;
|
||||
@@ -31,7 +31,7 @@ public class CategoryTypeCondition implements ICondition
|
||||
{
|
||||
private final List<CategoryType> _categoryTypes;
|
||||
|
||||
public CategoryTypeCondition(StatsSet params)
|
||||
public CategoryTypeCondition(StatSet params)
|
||||
{
|
||||
_categoryTypes = params.getEnumList("category", CategoryType.class);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.conditions;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.ICondition;
|
||||
@@ -29,7 +29,7 @@ public class NpcLevelCondition implements ICondition
|
||||
private final int _minLevel;
|
||||
private final int _maxLevel;
|
||||
|
||||
public NpcLevelCondition(StatsSet params)
|
||||
public NpcLevelCondition(StatSet params)
|
||||
{
|
||||
_minLevel = params.getInt("minLevel");
|
||||
_maxLevel = params.getInt("maxLevel");
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.conditions;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.ICondition;
|
||||
@@ -29,7 +29,7 @@ public class PlayerLevelCondition implements ICondition
|
||||
private final int _minLevel;
|
||||
private final int _maxLevel;
|
||||
|
||||
public PlayerLevelCondition(StatsSet params)
|
||||
public PlayerLevelCondition(StatSet params)
|
||||
{
|
||||
_minLevel = params.getInt("minLevel");
|
||||
_maxLevel = params.getInt("maxLevel");
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
@@ -32,7 +32,7 @@ public class AbnormalShield extends AbstractEffect
|
||||
{
|
||||
private final int _times;
|
||||
|
||||
public AbnormalShield(StatsSet params)
|
||||
public AbnormalShield(StatSet params)
|
||||
{
|
||||
_times = params.getInt("times", -1);
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ import java.util.HashSet;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -40,7 +40,7 @@ public class AbnormalTimeChange extends AbstractEffect
|
||||
private final int _time;
|
||||
private final int _mode;
|
||||
|
||||
public AbnormalTimeChange(StatsSet params)
|
||||
public AbnormalTimeChange(StatSet params)
|
||||
{
|
||||
final String abnormals = params.getString("slot", null);
|
||||
if ((abnormals != null) && !abnormals.isEmpty())
|
||||
|
@@ -19,7 +19,7 @@ package handlers.effecthandlers;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
@@ -37,7 +37,7 @@ public class AbsorbDamage extends AbstractEffect
|
||||
private final double _damage;
|
||||
private static final Map<Integer, Double> _damageHolder = new ConcurrentHashMap<>();
|
||||
|
||||
public AbsorbDamage(StatsSet params)
|
||||
public AbsorbDamage(StatSet params)
|
||||
{
|
||||
_damage = params.getDouble("damage", 0);
|
||||
}
|
||||
|
@@ -20,7 +20,7 @@ import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.ListenersContainer;
|
||||
@@ -38,7 +38,7 @@ abstract class AbstractConditionalHpEffect extends AbstractStatEffect
|
||||
private final int _hpPercent;
|
||||
private final Map<Creature, AtomicBoolean> _updates = new ConcurrentHashMap<>();
|
||||
|
||||
protected AbstractConditionalHpEffect(StatsSet params, Stat stat)
|
||||
protected AbstractConditionalHpEffect(StatSet params, Stat stat)
|
||||
{
|
||||
super(params, stat);
|
||||
_hpPercent = params.getInt("hpPercent", 0);
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.StatModifierType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
@@ -31,7 +31,7 @@ public class AbstractStatAddEffect extends AbstractEffect
|
||||
private final Stat _stat;
|
||||
protected final double _amount;
|
||||
|
||||
public AbstractStatAddEffect(StatsSet params, Stat stat)
|
||||
public AbstractStatAddEffect(StatSet params, Stat stat)
|
||||
{
|
||||
_stat = stat;
|
||||
_amount = params.getDouble("amount", 0);
|
||||
|
@@ -20,7 +20,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.StatModifierType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.conditions.ConditionPlayerIsInCombat;
|
||||
@@ -42,12 +42,12 @@ public abstract class AbstractStatEffect extends AbstractEffect
|
||||
protected final StatModifierType _mode;
|
||||
protected final List<Condition> _conditions = new ArrayList<>();
|
||||
|
||||
public AbstractStatEffect(StatsSet params, Stat stat)
|
||||
public AbstractStatEffect(StatSet params, Stat stat)
|
||||
{
|
||||
this(params, stat, stat);
|
||||
}
|
||||
|
||||
public AbstractStatEffect(StatsSet params, Stat mulStat, Stat addStat)
|
||||
public AbstractStatEffect(StatSet params, Stat mulStat, Stat addStat)
|
||||
{
|
||||
_addStat = addStat;
|
||||
_mulStat = mulStat;
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.StatModifierType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
@@ -31,7 +31,7 @@ public class AbstractStatPercentEffect extends AbstractEffect
|
||||
private final Stat _stat;
|
||||
protected final double _amount;
|
||||
|
||||
public AbstractStatPercentEffect(StatsSet params, Stat stat)
|
||||
public AbstractStatPercentEffect(StatSet params, Stat stat)
|
||||
{
|
||||
_stat = stat;
|
||||
_amount = params.getDouble("amount", 1);
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class Accuracy extends AbstractStatEffect
|
||||
{
|
||||
public Accuracy(StatsSet params)
|
||||
public Accuracy(StatSet params)
|
||||
{
|
||||
super(params, Stat.ACCURACY_COMBAT);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -32,7 +32,7 @@ public class AddHate extends AbstractEffect
|
||||
private final double _power;
|
||||
private final boolean _affectSummoner;
|
||||
|
||||
public AddHate(StatsSet params)
|
||||
public AddHate(StatSet params)
|
||||
{
|
||||
_power = params.getDouble("power", 0);
|
||||
_affectSummoner = params.getBoolean("affectSummoner", false);
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -32,7 +32,7 @@ public class AddSkillBySkill extends AbstractEffect
|
||||
private final int _existingSkillLevel;
|
||||
private final SkillHolder _addedSkill;
|
||||
|
||||
public AddSkillBySkill(StatsSet params)
|
||||
public AddSkillBySkill(StatSet params)
|
||||
{
|
||||
_existingSkillId = params.getInt("existingSkillId");
|
||||
_existingSkillLevel = params.getInt("existingSkillLevel");
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -32,7 +32,7 @@ public class AddTeleportBookmarkSlot extends AbstractEffect
|
||||
{
|
||||
private final int _amount;
|
||||
|
||||
public AddTeleportBookmarkSlot(StatsSet params)
|
||||
public AddTeleportBookmarkSlot(StatSet params)
|
||||
{
|
||||
_amount = params.getInt("amount", 0);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class AdditionalPotionCp extends AbstractStatAddEffect
|
||||
{
|
||||
public AdditionalPotionCp(StatsSet params)
|
||||
public AdditionalPotionCp(StatSet params)
|
||||
{
|
||||
super(params, Stat.ADDITIONAL_POTION_CP);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class AdditionalPotionHp extends AbstractStatAddEffect
|
||||
{
|
||||
public AdditionalPotionHp(StatsSet params)
|
||||
public AdditionalPotionHp(StatSet params)
|
||||
{
|
||||
super(params, Stat.ADDITIONAL_POTION_HP);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class AdditionalPotionMp extends AbstractStatAddEffect
|
||||
{
|
||||
public AdditionalPotionMp(StatsSet params)
|
||||
public AdditionalPotionMp(StatSet params)
|
||||
{
|
||||
super(params, Stat.ADDITIONAL_POTION_MP);
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ package handlers.effecthandlers;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.base.ClassId;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -72,7 +72,7 @@ public class AirBind extends AbstractEffect
|
||||
_chainedAirSkills.put(ClassId.AEORE_SHILLIEN_SAINT, 11999); // Heavy Hit
|
||||
}
|
||||
|
||||
public AirBind(StatsSet params)
|
||||
public AirBind(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class AreaDamage extends AbstractStatAddEffect
|
||||
{
|
||||
public AreaDamage(StatsSet params)
|
||||
public AreaDamage(StatSet params)
|
||||
{
|
||||
super(params, Stat.DAMAGE_ZONE_VULN);
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.AttributeType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
@@ -31,7 +31,7 @@ public class AttackAttribute extends AbstractEffect
|
||||
private final AttributeType _attribute;
|
||||
private final double _amount;
|
||||
|
||||
public AttackAttribute(StatsSet params)
|
||||
public AttackAttribute(StatSet params)
|
||||
{
|
||||
_amount = params.getDouble("amount", 0);
|
||||
_attribute = params.getEnum("attribute", AttributeType.class, AttributeType.FIRE);
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.AttributeType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
@@ -30,7 +30,7 @@ public class AttackAttributeAdd extends AbstractEffect
|
||||
{
|
||||
private final double _amount;
|
||||
|
||||
public AttackAttributeAdd(StatsSet params)
|
||||
public AttackAttributeAdd(StatSet params)
|
||||
{
|
||||
_amount = params.getDouble("amount", 0);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
*/
|
||||
public class AttackBehind extends AbstractEffect
|
||||
{
|
||||
public AttackBehind(StatsSet params)
|
||||
public AttackBehind(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -20,7 +20,7 @@ import java.util.EnumMap;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -35,7 +35,7 @@ public class AttackTrait extends AbstractEffect
|
||||
{
|
||||
private final Map<TraitType, Float> _attackTraits = new EnumMap<>(TraitType.class);
|
||||
|
||||
public AttackTrait(StatsSet params)
|
||||
public AttackTrait(StatSet params)
|
||||
{
|
||||
if (params.isEmpty())
|
||||
{
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.ShotType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -37,7 +37,7 @@ public class Backstab extends AbstractEffect
|
||||
private final double _criticalChance;
|
||||
private final boolean _overHit;
|
||||
|
||||
public Backstab(StatsSet params)
|
||||
public Backstab(StatSet params)
|
||||
{
|
||||
_power = params.getDouble("power");
|
||||
_chanceBoost = params.getDouble("chanceBoost");
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
@@ -30,7 +30,7 @@ import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
*/
|
||||
public class Betray extends AbstractEffect
|
||||
{
|
||||
public Betray(StatsSet params)
|
||||
public Betray(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -19,7 +19,7 @@ package handlers.effecthandlers;
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -52,7 +52,7 @@ public class Blink extends AbstractEffect
|
||||
private final int _flyDelay;
|
||||
private final int _animationSpeed;
|
||||
|
||||
public Blink(StatsSet params)
|
||||
public Blink(StatSet params)
|
||||
{
|
||||
_flyCourse = params.getInt("angle", 0);
|
||||
_flyRadius = params.getInt("range", 0);
|
||||
|
@@ -18,7 +18,7 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
|
||||
*/
|
||||
public class BlinkSwap extends AbstractEffect
|
||||
{
|
||||
public BlinkSwap(StatsSet params)
|
||||
public BlinkSwap(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -20,7 +20,7 @@ import java.util.Arrays;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -35,7 +35,7 @@ public class BlockAbnormalSlot extends AbstractEffect
|
||||
{
|
||||
private final Set<AbnormalType> _blockAbnormalSlots;
|
||||
|
||||
public BlockAbnormalSlot(StatsSet params)
|
||||
public BlockAbnormalSlot(StatSet params)
|
||||
{
|
||||
_blockAbnormalSlots = Arrays.stream(params.getString("slot").split(";")).map(slot -> Enum.valueOf(AbnormalType.class, slot)).collect(Collectors.toSet());
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ import java.util.Set;
|
||||
|
||||
import org.l2jmobius.gameserver.datatables.BotReportTable;
|
||||
import org.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -38,7 +38,7 @@ public class BlockAction extends AbstractEffect
|
||||
{
|
||||
private final Set<Integer> _blockedActions = new HashSet<>();
|
||||
|
||||
public BlockAction(StatsSet params)
|
||||
public BlockAction(StatSet params)
|
||||
{
|
||||
final String[] actions = params.getString("blockedActions").split(",");
|
||||
for (String action : actions)
|
||||
|
@@ -22,7 +22,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
import org.l2jmobius.gameserver.ai.CtrlEvent;
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -39,7 +39,7 @@ public class BlockActions extends AbstractEffect
|
||||
{
|
||||
private final Set<Integer> _allowedSkills;
|
||||
|
||||
public BlockActions(StatsSet params)
|
||||
public BlockActions(StatSet params)
|
||||
{
|
||||
final String[] allowedSkills = params.getString("allowedSkills", "").split(";");
|
||||
_allowedSkills = Arrays.stream(allowedSkills).filter(s -> !s.isEmpty()).map(Integer::parseInt).collect(Collectors.toSet());
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
@@ -33,7 +33,7 @@ import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
*/
|
||||
public class BlockChat extends AbstractEffect
|
||||
{
|
||||
public BlockChat(StatsSet params)
|
||||
public BlockChat(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
@@ -28,7 +28,7 @@ import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
*/
|
||||
public class BlockControl extends AbstractEffect
|
||||
{
|
||||
public BlockControl(StatsSet params)
|
||||
public BlockControl(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
*/
|
||||
public class BlockEscape extends AbstractEffect
|
||||
{
|
||||
public BlockEscape(StatsSet params)
|
||||
public BlockEscape(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -28,7 +28,7 @@ import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
*/
|
||||
public class BlockMove extends AbstractEffect
|
||||
{
|
||||
public BlockMove(StatsSet params)
|
||||
public BlockMove(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -32,7 +32,7 @@ import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
*/
|
||||
public class BlockParty extends AbstractEffect
|
||||
{
|
||||
public BlockParty(StatsSet params)
|
||||
public BlockParty(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
*/
|
||||
public class BlockResurrection extends AbstractEffect
|
||||
{
|
||||
public BlockResurrection(StatsSet params)
|
||||
public BlockResurrection(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
@@ -35,7 +35,7 @@ public class BlockSkill extends AbstractEffect
|
||||
{
|
||||
private final int[] _magicTypes;
|
||||
|
||||
public BlockSkill(StatsSet params)
|
||||
public BlockSkill(StatSet params)
|
||||
{
|
||||
_magicTypes = params.getIntArray("magicTypes", ";");
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -28,7 +28,7 @@ import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
*/
|
||||
public class BlockTarget extends AbstractEffect
|
||||
{
|
||||
public BlockTarget(StatsSet params)
|
||||
public BlockTarget(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -33,7 +33,7 @@ public class Bluff extends AbstractEffect
|
||||
{
|
||||
private final int _chance;
|
||||
|
||||
public Bluff(StatsSet params)
|
||||
public Bluff(StatSet params)
|
||||
{
|
||||
_chance = params.getInt("chance", 100);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class BonusDropAmount extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusDropAmount(StatsSet params)
|
||||
public BonusDropAmount(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_DROP_AMOUNT);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class BonusDropRate extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusDropRate(StatsSet params)
|
||||
public BonusDropRate(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_DROP_RATE);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class BonusSpoilRate extends AbstractStatPercentEffect
|
||||
{
|
||||
public BonusSpoilRate(StatsSet params)
|
||||
public BonusSpoilRate(StatSet params)
|
||||
{
|
||||
super(params, Stat.BONUS_SPOIL_RATE);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class Breath extends AbstractStatEffect
|
||||
{
|
||||
public Breath(StatsSet params)
|
||||
public Breath(StatSet params)
|
||||
{
|
||||
super(params, Stat.BREATH);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
*/
|
||||
public class BuffBlock extends AbstractEffect
|
||||
{
|
||||
public BuffBlock(StatsSet params)
|
||||
public BuffBlock(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -31,7 +31,7 @@ public class CallLearnedSkill extends AbstractEffect
|
||||
{
|
||||
private final int _skillId;
|
||||
|
||||
public CallLearnedSkill(StatsSet params)
|
||||
public CallLearnedSkill(StatSet params)
|
||||
{
|
||||
_skillId = params.getInt("skillId");
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -30,7 +30,7 @@ import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
*/
|
||||
public class CallParty extends AbstractEffect
|
||||
{
|
||||
public CallParty(StatsSet params)
|
||||
public CallParty(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -39,7 +39,7 @@ public class CallPc extends AbstractEffect
|
||||
private final int _itemId;
|
||||
private final int _itemCount;
|
||||
|
||||
public CallPc(StatsSet params)
|
||||
public CallPc(StatSet params)
|
||||
{
|
||||
_itemId = params.getInt("itemId", 0);
|
||||
_itemCount = params.getInt("itemCount", 0);
|
||||
|
@@ -20,7 +20,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
@@ -35,7 +35,7 @@ public class CallRandomSkill extends AbstractEffect
|
||||
{
|
||||
private final List<SkillHolder> _skills = new ArrayList<>();
|
||||
|
||||
public CallRandomSkill(StatsSet params)
|
||||
public CallRandomSkill(StatSet params)
|
||||
{
|
||||
final String skills = params.getString("skills", null);
|
||||
if (skills != null)
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
@@ -35,7 +35,7 @@ public class CallSkill extends AbstractEffect
|
||||
private final SkillHolder _skill;
|
||||
private final int _skillLevelScaleTo;
|
||||
|
||||
public CallSkill(StatsSet params)
|
||||
public CallSkill(StatSet params)
|
||||
{
|
||||
_skill = new SkillHolder(params.getInt("skillId"), params.getInt("skillLevel", 1), params.getInt("skillSubLevel", 0));
|
||||
_skillLevelScaleTo = params.getInt("skillLevelScaleTo", 0);
|
||||
|
@@ -18,7 +18,7 @@ package handlers.effecthandlers;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
@@ -35,7 +35,7 @@ public class CallSkillOnActionTime extends AbstractEffect
|
||||
{
|
||||
private final SkillHolder _skill;
|
||||
|
||||
public CallSkillOnActionTime(StatsSet params)
|
||||
public CallSkillOnActionTime(StatSet params)
|
||||
{
|
||||
_skill = new SkillHolder(params.getInt("skillId"), params.getInt("skillLevel", 1), params.getInt("skillSubLevel", 0));
|
||||
setTicks(params.getInt("ticks"));
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -30,7 +30,7 @@ import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
*/
|
||||
public class CallTargetParty extends AbstractEffect
|
||||
{
|
||||
public CallTargetParty(StatsSet params)
|
||||
public CallTargetParty(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
@@ -33,7 +33,7 @@ public class ChameleonRest extends AbstractEffect
|
||||
{
|
||||
private final double _power;
|
||||
|
||||
public ChameleonRest(StatsSet params)
|
||||
public ChameleonRest(StatSet params)
|
||||
{
|
||||
_power = params.getDouble("power", 0);
|
||||
setTicks(params.getInt("ticks"));
|
||||
|
@@ -20,7 +20,7 @@ import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.holders.TemplateChanceHolder;
|
||||
@@ -35,9 +35,9 @@ public class ChangeBody extends AbstractEffect
|
||||
{
|
||||
private final Set<TemplateChanceHolder> _transformations = new HashSet<>();
|
||||
|
||||
public ChangeBody(StatsSet params)
|
||||
public ChangeBody(StatSet params)
|
||||
{
|
||||
for (StatsSet item : params.getList("templates", StatsSet.class))
|
||||
for (StatSet item : params.getList("templates", StatSet.class))
|
||||
{
|
||||
_transformations.add(new TemplateChanceHolder(item.getInt(".templateId"), item.getInt(".minChance"), item.getInt(".maxChance")));
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -31,7 +31,7 @@ public class ChangeFace extends AbstractEffect
|
||||
{
|
||||
private final int _value;
|
||||
|
||||
public ChangeFace(StatsSet params)
|
||||
public ChangeFace(StatSet params)
|
||||
{
|
||||
_value = params.getInt("value", 0);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
|
||||
/**
|
||||
@@ -25,7 +25,7 @@ import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
*/
|
||||
public class ChangeFishingMastery extends AbstractEffect
|
||||
{
|
||||
public ChangeFishingMastery(StatsSet params)
|
||||
public ChangeFishingMastery(StatSet params)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -31,7 +31,7 @@ public class ChangeHairColor extends AbstractEffect
|
||||
{
|
||||
private final int _value;
|
||||
|
||||
public ChangeHairColor(StatsSet params)
|
||||
public ChangeHairColor(StatSet params)
|
||||
{
|
||||
_value = params.getInt("value", 0);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -31,7 +31,7 @@ public class ChangeHairStyle extends AbstractEffect
|
||||
{
|
||||
private final int _value;
|
||||
|
||||
public ChangeHairStyle(StatsSet params)
|
||||
public ChangeHairStyle(StatSet params)
|
||||
{
|
||||
_value = params.getInt("value", 0);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
*/
|
||||
public class CheapShot extends AbstractEffect
|
||||
{
|
||||
public CheapShot(StatsSet params)
|
||||
public CheapShot(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -18,7 +18,7 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import org.l2jmobius.gameserver.enums.SubclassInfoType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -39,7 +39,7 @@ public class ClassChange extends AbstractEffect
|
||||
private final int _index;
|
||||
private static final int IDENTITY_CRISIS_SKILL_ID = 1570;
|
||||
|
||||
public ClassChange(StatsSet params)
|
||||
public ClassChange(StatSet params)
|
||||
{
|
||||
_index = params.getInt("index", 0);
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -29,7 +29,7 @@ import org.l2jmobius.gameserver.model.stats.Formulas;
|
||||
*/
|
||||
public class Compelling extends AbstractEffect
|
||||
{
|
||||
public Compelling(StatsSet params)
|
||||
public Compelling(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.ai.CtrlEvent;
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -39,7 +39,7 @@ public class Confuse extends AbstractEffect
|
||||
{
|
||||
private final int _chance;
|
||||
|
||||
public Confuse(StatsSet params)
|
||||
public Confuse(StatSet params)
|
||||
{
|
||||
_chance = params.getInt("chance", 100);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -29,7 +29,7 @@ import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
*/
|
||||
public class ConsumeBody extends AbstractEffect
|
||||
{
|
||||
public ConsumeBody(StatsSet params)
|
||||
public ConsumeBody(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
*/
|
||||
public class ConvertItem extends AbstractEffect
|
||||
{
|
||||
public ConvertItem(StatsSet params)
|
||||
public ConvertItem(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class CounterPhysicalSkill extends AbstractStatAddEffect
|
||||
{
|
||||
public CounterPhysicalSkill(StatsSet params)
|
||||
public CounterPhysicalSkill(StatSet params)
|
||||
{
|
||||
super(params, Stat.VENGEANCE_SKILL_PHYSICAL_DAMAGE);
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.StatModifierType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -35,7 +35,7 @@ public class Cp extends AbstractEffect
|
||||
private final int _amount;
|
||||
private final StatModifierType _mode;
|
||||
|
||||
public Cp(StatsSet params)
|
||||
public Cp(StatSet params)
|
||||
{
|
||||
_amount = params.getInt("amount", 0);
|
||||
_mode = params.getEnum("mode", StatModifierType.class, StatModifierType.DIFF);
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
@@ -34,7 +34,7 @@ public class CpHeal extends AbstractEffect
|
||||
{
|
||||
private final double _power;
|
||||
|
||||
public CpHeal(StatsSet params)
|
||||
public CpHeal(StatSet params)
|
||||
{
|
||||
_power = params.getDouble("power", 0);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -30,7 +30,7 @@ public class CpHealOverTime extends AbstractEffect
|
||||
{
|
||||
private final double _power;
|
||||
|
||||
public CpHealOverTime(StatsSet params)
|
||||
public CpHealOverTime(StatSet params)
|
||||
{
|
||||
_power = params.getDouble("power", 0);
|
||||
setTicks(params.getInt("ticks"));
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -33,7 +33,7 @@ public class CpHealPercent extends AbstractEffect
|
||||
{
|
||||
private final double _power;
|
||||
|
||||
public CpHealPercent(StatsSet params)
|
||||
public CpHealPercent(StatSet params)
|
||||
{
|
||||
_power = params.getDouble("power", 0);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class CpRegen extends AbstractStatEffect
|
||||
{
|
||||
public CpRegen(StatsSet params)
|
||||
public CpRegen(StatSet params)
|
||||
{
|
||||
super(params, Stat.REGENERATE_CP_RATE);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class CriticalDamage extends AbstractStatEffect
|
||||
{
|
||||
public CriticalDamage(StatsSet params)
|
||||
public CriticalDamage(StatSet params)
|
||||
{
|
||||
super(params, Stat.CRITICAL_DAMAGE, Stat.CRITICAL_DAMAGE_ADD);
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.Position;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -33,7 +33,7 @@ public class CriticalDamagePosition extends AbstractEffect
|
||||
private final double _amount;
|
||||
private final Position _position;
|
||||
|
||||
public CriticalDamagePosition(StatsSet params)
|
||||
public CriticalDamagePosition(StatSet params)
|
||||
{
|
||||
_amount = params.getDouble("amount", 0);
|
||||
_position = params.getEnum("position", Position.class, Position.FRONT);
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
@@ -27,7 +27,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
public class CriticalRate extends AbstractConditionalHpEffect
|
||||
{
|
||||
|
||||
public CriticalRate(StatsSet params)
|
||||
public CriticalRate(StatSet params)
|
||||
{
|
||||
super(params, Stat.CRITICAL_RATE);
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.Position;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
|
||||
@@ -33,7 +33,7 @@ public class CriticalRatePositionBonus extends AbstractEffect
|
||||
private final double _amount;
|
||||
private final Position _position;
|
||||
|
||||
public CriticalRatePositionBonus(StatsSet params)
|
||||
public CriticalRatePositionBonus(StatSet params)
|
||||
{
|
||||
_amount = params.getDouble("amount", 0);
|
||||
_position = params.getEnum("position", Position.class, Position.FRONT);
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -31,7 +31,7 @@ public class CrystalGradeModify extends AbstractEffect
|
||||
{
|
||||
private final int _grade;
|
||||
|
||||
public CrystalGradeModify(StatsSet params)
|
||||
public CrystalGradeModify(StatSet params)
|
||||
{
|
||||
_grade = params.getInt("grade", 0);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class CubicMastery extends AbstractStatAddEffect
|
||||
{
|
||||
public CubicMastery(StatsSet params)
|
||||
public CubicMastery(StatSet params)
|
||||
{
|
||||
super(params, Stat.MAX_CUBIC);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
@@ -33,7 +33,7 @@ public class DamOverTime extends AbstractEffect
|
||||
private final boolean _canKill;
|
||||
private final double _power;
|
||||
|
||||
public DamOverTime(StatsSet params)
|
||||
public DamOverTime(StatSet params)
|
||||
{
|
||||
_canKill = params.getBoolean("canKill", false);
|
||||
_power = params.getDouble("power");
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
@@ -33,7 +33,7 @@ public class DamOverTimePercent extends AbstractEffect
|
||||
private final boolean _canKill;
|
||||
private final double _power;
|
||||
|
||||
public DamOverTimePercent(StatsSet params)
|
||||
public DamOverTimePercent(StatSet params)
|
||||
{
|
||||
_canKill = params.getBoolean("canKill", false);
|
||||
_power = params.getDouble("power");
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
|
||||
@@ -30,7 +30,7 @@ public class DamageBlock extends AbstractEffect
|
||||
private final boolean _blockHp;
|
||||
private final boolean _blockMp;
|
||||
|
||||
public DamageBlock(StatsSet params)
|
||||
public DamageBlock(StatSet params)
|
||||
{
|
||||
final String type = params.getString("type", null);
|
||||
_blockHp = type.equalsIgnoreCase("BLOCK_HP");
|
||||
|
@@ -18,7 +18,7 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.DamageByAttackType;
|
||||
import org.l2jmobius.gameserver.enums.StatModifierType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
@@ -38,7 +38,7 @@ public class DamageByAttack extends AbstractEffect
|
||||
private final double _value;
|
||||
private final DamageByAttackType _type;
|
||||
|
||||
public DamageByAttack(StatsSet params)
|
||||
public DamageByAttack(StatSet params)
|
||||
{
|
||||
_value = params.getDouble("amount");
|
||||
_type = params.getEnum("type", DamageByAttackType.class, DamageByAttackType.NONE);
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class DamageShield extends AbstractStatAddEffect
|
||||
{
|
||||
public DamageShield(StatsSet params)
|
||||
public DamageShield(StatSet params)
|
||||
{
|
||||
super(params, Stat.REFLECT_DAMAGE_PERCENT);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class DamageShieldResist extends AbstractStatAddEffect
|
||||
{
|
||||
public DamageShieldResist(StatsSet params)
|
||||
public DamageShieldResist(StatSet params)
|
||||
{
|
||||
super(params, Stat.REFLECT_DAMAGE_PERCENT_DEFENSE);
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@ package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ShotType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
@@ -34,7 +34,7 @@ public class DeathLink extends AbstractEffect
|
||||
{
|
||||
private final double _power;
|
||||
|
||||
public DeathLink(StatsSet params)
|
||||
public DeathLink(StatSet params)
|
||||
{
|
||||
_power = params.getDouble("power", 0);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
*/
|
||||
public class DebuffBlock extends AbstractEffect
|
||||
{
|
||||
public DebuffBlock(StatsSet params)
|
||||
public DebuffBlock(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.AttributeType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||
@@ -31,7 +31,7 @@ public class DefenceAttribute extends AbstractEffect
|
||||
private final AttributeType _attribute;
|
||||
private final double _amount;
|
||||
|
||||
public DefenceAttribute(StatsSet params)
|
||||
public DefenceAttribute(StatSet params)
|
||||
{
|
||||
_amount = params.getDouble("amount", 0);
|
||||
_attribute = params.getEnum("attribute", AttributeType.class, AttributeType.FIRE);
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class DefenceCriticalDamage extends AbstractStatEffect
|
||||
{
|
||||
public DefenceCriticalDamage(StatsSet params)
|
||||
public DefenceCriticalDamage(StatSet params)
|
||||
{
|
||||
super(params, Stat.DEFENCE_CRITICAL_DAMAGE, Stat.DEFENCE_CRITICAL_DAMAGE_ADD);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class DefenceCriticalRate extends AbstractStatEffect
|
||||
{
|
||||
public DefenceCriticalRate(StatsSet params)
|
||||
public DefenceCriticalRate(StatSet params)
|
||||
{
|
||||
super(params, Stat.DEFENCE_CRITICAL_RATE, Stat.DEFENCE_CRITICAL_RATE_ADD);
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
|
||||
/**
|
||||
@@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
*/
|
||||
public class DefenceMagicCriticalDamage extends AbstractStatEffect
|
||||
{
|
||||
public DefenceMagicCriticalDamage(StatsSet params)
|
||||
public DefenceMagicCriticalDamage(StatSet params)
|
||||
{
|
||||
super(params, Stat.DEFENCE_MAGIC_CRITICAL_DAMAGE, Stat.DEFENCE_MAGIC_CRITICAL_DAMAGE_ADD);
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user