From dbafa83a7998c83a9df28aaf0d05995dfc3053b1 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 13 Jan 2023 22:10:00 +0000 Subject: [PATCH] CREATURE_VALUES renamed to PLAYER_VALUES to reflect Map contents. --- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- .../scripts/handlers/effecthandlers/GiveItemByExp.java | 10 +++++----- 20 files changed, 100 insertions(+), 100 deletions(-) diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_10.2_MasterClass/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_10.3_MasterClass/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.5_Zaken/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_Classic_2.5_Zaken/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_Classic_2.5_Zaken/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_Classic_2.5_Zaken/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.7_Antharas/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_Classic_2.7_Antharas/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_Classic_2.7_Antharas/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_Classic_2.7_Antharas/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.8_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_Classic_2.8_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_Classic_2.8_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_Classic_2.8_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.9.5_Saviors/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_Classic_2.9.5_Saviors/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_Classic_2.9.5_Saviors/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_Classic_2.9.5_Saviors/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.9_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_Classic_2.9_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_Classic_2.9_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_Classic_2.9_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_Essence_6.2_Vanguard/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file diff --git a/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java b/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java index c5a3f7790f..63c6fb6670 100644 --- a/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java +++ b/L2J_Mobius_Essence_6.3_Crusader/dist/game/data/scripts/handlers/effecthandlers/GiveItemByExp.java @@ -35,7 +35,7 @@ import org.l2jmobius.gameserver.model.skill.Skill; */ public class GiveItemByExp extends AbstractEffect { - private static final Map CREATURE_VALUES = new ConcurrentHashMap<>(); + private static final Map PLAYER_VALUES = new ConcurrentHashMap<>(); private final long _exp; private final int _itemId; @@ -60,7 +60,7 @@ public class GiveItemByExp extends AbstractEffect { if (effected.isPlayer()) { - CREATURE_VALUES.remove(effected.getActingPlayer()); + PLAYER_VALUES.remove(effected.getActingPlayer()); effected.removeListenerIf(EventType.ON_PLAYABLE_EXP_CHANGED, listener -> listener.getOwner() == this); } } @@ -73,15 +73,15 @@ public class GiveItemByExp extends AbstractEffect } final Player player = playable.getActingPlayer(); - final long sum = CREATURE_VALUES.getOrDefault(player, 0L) + exp; + final long sum = PLAYER_VALUES.getOrDefault(player, 0L) + exp; if (sum >= _exp) { - CREATURE_VALUES.remove(player); + PLAYER_VALUES.remove(player); player.addItem("GiveItemByExp effect", _itemId, 1, player, true); } else { - CREATURE_VALUES.put(player, sum); + PLAYER_VALUES.put(player, sum); } } } \ No newline at end of file