Added configurable limits for PAtk and MAtk.
This commit is contained in:
@@ -314,6 +314,14 @@ MaxSpBonus = 3.5
|
||||
# Default: 250
|
||||
MaxRunSpeed = 250
|
||||
|
||||
# Maximum character Physical Attack.
|
||||
# Default: 999999
|
||||
MaxPAtk = 999999
|
||||
|
||||
# Maximum character Magic Attack.
|
||||
# Default: 999999
|
||||
MaxMAtk = 999999
|
||||
|
||||
# Maximum character Physical Critical Rate. (10 = 1%)
|
||||
# Default: 500
|
||||
MaxPCritRate = 500
|
||||
|
@@ -262,7 +262,8 @@
|
||||
<!-- GM Skill -->
|
||||
<table name="#amount"> 1 1 1 1 </table>
|
||||
<table name="#mAtkSpd"> 2 3 4 5 </table>
|
||||
<table name="#pAtk"> 2500 5000 7500 10000 </table>
|
||||
<table name="#pAtk"> 250 500 750 1500 </table>
|
||||
<table name="#mAtk"> 250 500 750 1500 </table>
|
||||
<table name="#pAtkSpd"> 2 3 4 5 </table>
|
||||
<table name="#reuse"> 0.01 0.01 0.01 0.01 </table>
|
||||
<table name="#runSpd"> 2 3 4 5 </table>
|
||||
@@ -278,6 +279,7 @@
|
||||
<mul stat="runSpd" val="#runSpd" />
|
||||
<mul stat="mAtkSpd" val="#mAtkSpd" />
|
||||
<mul stat="pAtk" val="#pAtk" />
|
||||
<mul stat="mAtk" val="#mAtk" /> <!-- custom -->
|
||||
<mul stat="pReuse" val="#reuse" />
|
||||
<mul stat="mReuse" val="#reuse" />
|
||||
<mul stat="regHp" val="#amount" />
|
||||
|
@@ -155,6 +155,8 @@ public final class Config
|
||||
public static double MAX_BONUS_EXP;
|
||||
public static double MAX_BONUS_SP;
|
||||
public static int MAX_RUN_SPEED;
|
||||
public static int MAX_PATK;
|
||||
public static int MAX_MATK;
|
||||
public static int MAX_PCRIT_RATE;
|
||||
public static int MAX_MCRIT_RATE;
|
||||
public static int MAX_PATK_SPEED;
|
||||
@@ -1547,6 +1549,8 @@ public final class Config
|
||||
MAX_BONUS_EXP = character.getDouble("MaxExpBonus", 3.5);
|
||||
MAX_BONUS_SP = character.getDouble("MaxSpBonus", 3.5);
|
||||
MAX_RUN_SPEED = character.getInt("MaxRunSpeed", 250);
|
||||
MAX_PATK = character.getInt("MaxPAtk", 999999);
|
||||
MAX_MATK = character.getInt("MaxMAtk", 999999);
|
||||
MAX_PCRIT_RATE = character.getInt("MaxPCritRate", 500);
|
||||
MAX_MCRIT_RATE = character.getInt("MaxMCritRate", 200);
|
||||
MAX_PATK_SPEED = character.getInt("MaxPAtkSpeed", 1500);
|
||||
|
@@ -287,7 +287,7 @@ public class CharStat
|
||||
}
|
||||
|
||||
// Calculate modifiers Magic Attack
|
||||
return calcStat(Stats.MAGIC_ATTACK, _activeChar.getTemplate().getBaseMAtk() * bonusAtk, target, skill);
|
||||
return Math.min(calcStat(Stats.MAGIC_ATTACK, _activeChar.getTemplate().getBaseMAtk() * bonusAtk, target, skill), Config.MAX_MATK);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -512,7 +512,7 @@ public class CharStat
|
||||
{
|
||||
bonusAtk *= Config.RAID_PATTACK_MULTIPLIER;
|
||||
}
|
||||
return calcStat(Stats.POWER_ATTACK, _activeChar.getTemplate().getBasePAtk() * bonusAtk, target, null);
|
||||
return Math.min(calcStat(Stats.POWER_ATTACK, _activeChar.getTemplate().getBasePAtk() * bonusAtk, target, null), Config.MAX_PATK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user