mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Min value for IronArm configurable
This commit is contained in:
parent
fe93be66ad
commit
ce80636141
@ -1030,6 +1030,7 @@ public class AdvancedConfig extends AutoUpdateConfigLoader {
|
|||||||
public double getIronGripChanceMax() { return config.getDouble("Skills.Unarmed.IronGrip_ChanceMax", 100.0D); }
|
public double getIronGripChanceMax() { return config.getDouble("Skills.Unarmed.IronGrip_ChanceMax", 100.0D); }
|
||||||
public int getIronGripMaxBonusLevel() { return config.getInt("Skills.Unarmed.IronGrip_MaxBonusLevel", 1000); }
|
public int getIronGripMaxBonusLevel() { return config.getInt("Skills.Unarmed.IronGrip_MaxBonusLevel", 1000); }
|
||||||
|
|
||||||
|
public int getIronArmMinBonus() { return config.getInt("Skills.Unarmed.IronArm_BonusMin", 3); }
|
||||||
public int getIronArmMaxBonus() { return config.getInt("Skills.Unarmed.IronArm_BonusMax", 8); }
|
public int getIronArmMaxBonus() { return config.getInt("Skills.Unarmed.IronArm_BonusMax", 8); }
|
||||||
public int getIronArmIncreaseLevel() { return config.getInt("Skills.Unarmed.IronArm_IncreaseLevel", 50); }
|
public int getIronArmIncreaseLevel() { return config.getInt("Skills.Unarmed.IronArm_IncreaseLevel", 50); }
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ import com.gmail.nossr50.config.AdvancedConfig;
|
|||||||
import com.gmail.nossr50.config.Config;
|
import com.gmail.nossr50.config.Config;
|
||||||
|
|
||||||
public class Unarmed {
|
public class Unarmed {
|
||||||
|
public static int ironArmMinBonusDamage = AdvancedConfig.getInstance().getIronArmMinBonus();
|
||||||
public static int ironArmMaxBonusDamage = AdvancedConfig.getInstance().getIronArmMaxBonus();
|
public static int ironArmMaxBonusDamage = AdvancedConfig.getInstance().getIronArmMaxBonus();
|
||||||
public static int ironArmIncreaseLevel = AdvancedConfig.getInstance().getIronArmIncreaseLevel();
|
public static int ironArmIncreaseLevel = AdvancedConfig.getInstance().getIronArmIncreaseLevel();
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ public class UnarmedManager extends SkillManager {
|
|||||||
* @return the modified event damage
|
* @return the modified event damage
|
||||||
*/
|
*/
|
||||||
public double ironArmCheck(double damage) {
|
public double ironArmCheck(double damage) {
|
||||||
int unarmedBonus = Math.min(3 + (getSkillLevel() / Unarmed.ironArmIncreaseLevel), Unarmed.ironArmMaxBonusDamage);
|
int unarmedBonus = Math.min(Unarmed.ironArmMinBonusDamage + (getSkillLevel() / Unarmed.ironArmIncreaseLevel), Unarmed.ironArmMaxBonusDamage);
|
||||||
|
|
||||||
return damage + unarmedBonus;
|
return damage + unarmedBonus;
|
||||||
}
|
}
|
||||||
|
@ -390,8 +390,10 @@ Skills:
|
|||||||
IronGrip_ChanceMax: 100.0
|
IronGrip_ChanceMax: 100.0
|
||||||
IronGrip_MaxBonusLevel: 1000
|
IronGrip_MaxBonusLevel: 1000
|
||||||
|
|
||||||
|
# IronArm_BonusMin: Minimum bonus damage for unarmed
|
||||||
# IronArm_BonusMax: Maximum bonus damage for unarmed
|
# IronArm_BonusMax: Maximum bonus damage for unarmed
|
||||||
# IronArm_IncreaseLevel: Bonus damage increases every increase level
|
# IronArm_IncreaseLevel: Bonus damage increases every increase level
|
||||||
|
IronArm_BonusMin: 3
|
||||||
IronArm_BonusMax: 8
|
IronArm_BonusMax: 8
|
||||||
IronArm_IncreaseLevel: 50
|
IronArm_IncreaseLevel: 50
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user