From 023bc42c3620cd0dafb574f31a7a18075b01d76e Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 14 Jan 2021 05:31:06 +0000 Subject: [PATCH] Addition of MagicLampExpRate effect handler. --- .../scripts/handlers/EffectMasterHandler.java | 1 + .../effecthandlers/MagicLampExpRate.java | 31 +++++++++++++++++++ .../game/data/stats/skills/documentation.txt | 1 + .../gameserver/model/stats/Stat.java | 3 ++ 4 files changed, 36 insertions(+) create mode 100644 L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MagicLampExpRate.java diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/handlers/EffectMasterHandler.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/handlers/EffectMasterHandler.java index 0a9d59c545..cf93fb563b 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/handlers/EffectMasterHandler.java +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/handlers/EffectMasterHandler.java @@ -212,6 +212,7 @@ public class EffectMasterHandler EffectHandler.getInstance().registerHandler("MagicCriticalDamage", MagicCriticalDamage::new); EffectHandler.getInstance().registerHandler("MagicCriticalRate", MagicCriticalRate::new); EffectHandler.getInstance().registerHandler("MagicCriticalRateByCriticalRate", MagicCriticalRateByCriticalRate::new); + EffectHandler.getInstance().registerHandler("MagicLampExpRate", MagicLampExpRate::new); EffectHandler.getInstance().registerHandler("MagicMpCost", MagicMpCost::new); EffectHandler.getInstance().registerHandler("ManaCharge", ManaCharge::new); EffectHandler.getInstance().registerHandler("ManaDamOverTime", ManaDamOverTime::new); diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MagicLampExpRate.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MagicLampExpRate.java new file mode 100644 index 0000000000..e45df22b69 --- /dev/null +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MagicLampExpRate.java @@ -0,0 +1,31 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package handlers.effecthandlers; + +import org.l2jmobius.gameserver.model.StatSet; +import org.l2jmobius.gameserver.model.stats.Stat; + +/** + * @author Mobius + */ +public class MagicLampExpRate extends AbstractStatPercentEffect +{ + public MagicLampExpRate(StatSet params) + { + super(params, Stat.MAGIC_LAMP_EXP_RATE); + } +} diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/stats/skills/documentation.txt b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/stats/skills/documentation.txt index 58d6c9593a..e1f4788942 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/stats/skills/documentation.txt +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/data/stats/skills/documentation.txt @@ -182,6 +182,7 @@ MagicalSoulAttack: Magical attack based on souls formula. MagicCriticalDamage: Magical Critical Damage stat MagicCriticalRate: Magical Critical Rate stat. MagicCriticalRateByCriticalRate: Magical Critical Rate bonus from Critical Rate stat. (l2jmobius) +MagicLampExpRate: Sets the magic lamp exp rate. (l2jmobius) MagicMpCost: Sets mana cost per magic type. Clarity. ManaCharge: Mana Recharge stat. ManaDamOverTime: Mana damage over time. diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/stats/Stat.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/stats/Stat.java index fc76d61d17..6d3d1fd51c 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/stats/Stat.java +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/stats/Stat.java @@ -262,6 +262,9 @@ public enum Stat VITALITY_CONSUME_RATE("vitalityConsumeRate"), VITALITY_EXP_RATE("vitalityExpRate"), + // Magic Lamp + MAGIC_LAMP_EXP_RATE("magicLampExpRate"), + // Souls MAX_SOULS("maxSouls"),