Addition of MagicalSkillPower skill effect.
This commit is contained in:
parent
ad57080e7d
commit
185c73f3e4
@ -183,6 +183,7 @@ public final class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("MagicalDamOverTime", MagicalDamOverTime::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalDefence", MagicalDefence::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalEvasion", MagicalEvasion::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalSkillPower", MagicalSkillPower::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalSoulAttack", MagicalSoulAttack::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicCriticalDamage", MagicCriticalDamage::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicCriticalRate", MagicCriticalRate::new);
|
||||
|
31
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MagicalSkillPower.java
vendored
Normal file
31
L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MagicalSkillPower.java
vendored
Normal 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 com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class MagicalSkillPower extends AbstractStatEffect
|
||||
{
|
||||
public MagicalSkillPower(StatsSet params)
|
||||
{
|
||||
super(params, Stats.MAGICAL_SKILL_POWER);
|
||||
}
|
||||
}
|
@ -1991,7 +1991,10 @@
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<!-- TODO mul stat="magicalSkillPower" val="1.27" / -->
|
||||
<effect name="MagicalSkillPower">
|
||||
<amount>27</amount>
|
||||
<mode>PER</mode>
|
||||
</effect>
|
||||
<effect name="PhysicalSkillPower">
|
||||
<amount>27</amount>
|
||||
<mode>PER</mode>
|
||||
|
@ -151,6 +151,7 @@ MagicalAttackSpeed: Casting Spd. stat
|
||||
MagicalDamOverTime: Magical attack over time.
|
||||
MagicalDefence: M. Def stat.
|
||||
MagicalEvasion: M. Evasion stat.
|
||||
MagicalSkillPower: Magical Skill Power stat. (l2jmobius)
|
||||
MagicalSoulAttack: Magical attack based on souls formula.
|
||||
MagicCriticalDamage: Magical Critical Damage stat
|
||||
MagicCriticalRate: Magical Critical Rate stat.
|
||||
|
@ -204,6 +204,7 @@ public final class Formulas
|
||||
}
|
||||
|
||||
damage = damage * critMod * generalTraitMod * attributeMod * randomMod * pvpPveMod;
|
||||
damage = attacker.getStat().getValue(Stats.MAGICAL_SKILL_POWER, damage);
|
||||
|
||||
return damage;
|
||||
}
|
||||
|
@ -107,6 +107,7 @@ public enum Stats
|
||||
MAGIC_CRITICAL_DAMAGE("mCritPower"),
|
||||
PHYSICAL_SKILL_POWER("physicalSkillPower"), // Adding skill power (not multipliers) results in points added directly to final value unmodified by defence, traits, elements, criticals etc.
|
||||
// Even when damage is 0 due to general trait immune multiplier, added skill power is active and clearly visible (damage not being 0 but at the value of added skill power).
|
||||
MAGICAL_SKILL_POWER("magicalSkillPower"),
|
||||
CRITICAL_DAMAGE_SKILL("cAtkSkill"),
|
||||
CRITICAL_DAMAGE_SKILL_ADD("cAtkSkillAdd"),
|
||||
MAGIC_CRITICAL_DAMAGE_ADD("mCritPowerAdd"),
|
||||
|
@ -183,6 +183,7 @@ public final class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("MagicalDamOverTime", MagicalDamOverTime::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalDefence", MagicalDefence::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalEvasion", MagicalEvasion::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalSkillPower", MagicalSkillPower::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalSoulAttack", MagicalSoulAttack::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicCriticalDamage", MagicCriticalDamage::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicCriticalRate", MagicCriticalRate::new);
|
||||
|
31
L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MagicalSkillPower.java
vendored
Normal file
31
L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MagicalSkillPower.java
vendored
Normal 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 com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class MagicalSkillPower extends AbstractStatEffect
|
||||
{
|
||||
public MagicalSkillPower(StatsSet params)
|
||||
{
|
||||
super(params, Stats.MAGICAL_SKILL_POWER);
|
||||
}
|
||||
}
|
@ -1991,7 +1991,10 @@
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<!-- TODO mul stat="magicalSkillPower" val="1.27" / -->
|
||||
<effect name="MagicalSkillPower">
|
||||
<amount>27</amount>
|
||||
<mode>PER</mode>
|
||||
</effect>
|
||||
<effect name="PhysicalSkillPower">
|
||||
<amount>27</amount>
|
||||
<mode>PER</mode>
|
||||
|
@ -151,6 +151,7 @@ MagicalAttackSpeed: Casting Spd. stat
|
||||
MagicalDamOverTime: Magical attack over time.
|
||||
MagicalDefence: M. Def stat.
|
||||
MagicalEvasion: M. Evasion stat.
|
||||
MagicalSkillPower: Magical Skill Power stat. (l2jmobius)
|
||||
MagicalSoulAttack: Magical attack based on souls formula.
|
||||
MagicCriticalDamage: Magical Critical Damage stat
|
||||
MagicCriticalRate: Magical Critical Rate stat.
|
||||
|
@ -204,6 +204,7 @@ public final class Formulas
|
||||
}
|
||||
|
||||
damage = damage * critMod * generalTraitMod * attributeMod * randomMod * pvpPveMod;
|
||||
damage = attacker.getStat().getValue(Stats.MAGICAL_SKILL_POWER, damage);
|
||||
|
||||
return damage;
|
||||
}
|
||||
|
@ -107,6 +107,7 @@ public enum Stats
|
||||
MAGIC_CRITICAL_DAMAGE("mCritPower"),
|
||||
PHYSICAL_SKILL_POWER("physicalSkillPower"), // Adding skill power (not multipliers) results in points added directly to final value unmodified by defence, traits, elements, criticals etc.
|
||||
// Even when damage is 0 due to general trait immune multiplier, added skill power is active and clearly visible (damage not being 0 but at the value of added skill power).
|
||||
MAGICAL_SKILL_POWER("magicalSkillPower"),
|
||||
CRITICAL_DAMAGE_SKILL("cAtkSkill"),
|
||||
CRITICAL_DAMAGE_SKILL_ADD("cAtkSkillAdd"),
|
||||
MAGIC_CRITICAL_DAMAGE_ADD("mCritPowerAdd"),
|
||||
|
@ -183,6 +183,7 @@ public final class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("MagicalDamOverTime", MagicalDamOverTime::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalDefence", MagicalDefence::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalEvasion", MagicalEvasion::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalSkillPower", MagicalSkillPower::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicalSoulAttack", MagicalSoulAttack::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicCriticalDamage", MagicCriticalDamage::new);
|
||||
EffectHandler.getInstance().registerHandler("MagicCriticalRate", MagicCriticalRate::new);
|
||||
|
31
L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MagicalSkillPower.java
vendored
Normal file
31
L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MagicalSkillPower.java
vendored
Normal 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 com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class MagicalSkillPower extends AbstractStatEffect
|
||||
{
|
||||
public MagicalSkillPower(StatsSet params)
|
||||
{
|
||||
super(params, Stats.MAGICAL_SKILL_POWER);
|
||||
}
|
||||
}
|
@ -1991,7 +1991,10 @@
|
||||
<targetType>SELF</targetType>
|
||||
<affectScope>SINGLE</affectScope>
|
||||
<effects>
|
||||
<!-- TODO mul stat="magicalSkillPower" val="1.27" / -->
|
||||
<effect name="MagicalSkillPower">
|
||||
<amount>27</amount>
|
||||
<mode>PER</mode>
|
||||
</effect>
|
||||
<effect name="PhysicalSkillPower">
|
||||
<amount>27</amount>
|
||||
<mode>PER</mode>
|
||||
|
@ -151,6 +151,7 @@ MagicalAttackSpeed: Casting Spd. stat
|
||||
MagicalDamOverTime: Magical attack over time.
|
||||
MagicalDefence: M. Def stat.
|
||||
MagicalEvasion: M. Evasion stat.
|
||||
MagicalSkillPower: Magical Skill Power stat. (l2jmobius)
|
||||
MagicalSoulAttack: Magical attack based on souls formula.
|
||||
MagicCriticalDamage: Magical Critical Damage stat
|
||||
MagicCriticalRate: Magical Critical Rate stat.
|
||||
|
@ -204,6 +204,7 @@ public final class Formulas
|
||||
}
|
||||
|
||||
damage = damage * critMod * generalTraitMod * attributeMod * randomMod * pvpPveMod;
|
||||
damage = attacker.getStat().getValue(Stats.MAGICAL_SKILL_POWER, damage);
|
||||
|
||||
return damage;
|
||||
}
|
||||
|
@ -107,6 +107,7 @@ public enum Stats
|
||||
MAGIC_CRITICAL_DAMAGE("mCritPower"),
|
||||
PHYSICAL_SKILL_POWER("physicalSkillPower"), // Adding skill power (not multipliers) results in points added directly to final value unmodified by defence, traits, elements, criticals etc.
|
||||
// Even when damage is 0 due to general trait immune multiplier, added skill power is active and clearly visible (damage not being 0 but at the value of added skill power).
|
||||
MAGICAL_SKILL_POWER("magicalSkillPower"),
|
||||
CRITICAL_DAMAGE_SKILL("cAtkSkill"),
|
||||
CRITICAL_DAMAGE_SKILL_ADD("cAtkSkillAdd"),
|
||||
MAGIC_CRITICAL_DAMAGE_ADD("mCritPowerAdd"),
|
||||
|
Loading…
Reference in New Issue
Block a user