Addition of MagicLampExpRate effect handler.

This commit is contained in:
MobiusDevelopment 2021-01-14 05:31:06 +00:00
parent 79dd018566
commit 023bc42c36
4 changed files with 36 additions and 0 deletions

View File

@ -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);

View File

@ -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 <http://www.gnu.org/licenses/>.
*/
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);
}
}

View File

@ -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.

View File

@ -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"),