Min value for IronArm configurable

This commit is contained in:
T00thpick1 2013-08-18 02:38:40 -04:00
parent fe93be66ad
commit ce80636141
4 changed files with 5 additions and 1 deletions

View File

@ -1030,6 +1030,7 @@ public class AdvancedConfig extends AutoUpdateConfigLoader {
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 getIronArmMinBonus() { return config.getInt("Skills.Unarmed.IronArm_BonusMin", 3); }
public int getIronArmMaxBonus() { return config.getInt("Skills.Unarmed.IronArm_BonusMax", 8); }
public int getIronArmIncreaseLevel() { return config.getInt("Skills.Unarmed.IronArm_IncreaseLevel", 50); }

View File

@ -10,6 +10,7 @@ import com.gmail.nossr50.config.AdvancedConfig;
import com.gmail.nossr50.config.Config;
public class Unarmed {
public static int ironArmMinBonusDamage = AdvancedConfig.getInstance().getIronArmMinBonus();
public static int ironArmMaxBonusDamage = AdvancedConfig.getInstance().getIronArmMaxBonus();
public static int ironArmIncreaseLevel = AdvancedConfig.getInstance().getIronArmIncreaseLevel();

View File

@ -106,7 +106,7 @@ public class UnarmedManager extends SkillManager {
* @return the modified event 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;
}

View File

@ -390,8 +390,10 @@ Skills:
IronGrip_ChanceMax: 100.0
IronGrip_MaxBonusLevel: 1000
# IronArm_BonusMin: Minimum bonus damage for unarmed
# IronArm_BonusMax: Maximum bonus damage for unarmed
# IronArm_IncreaseLevel: Bonus damage increases every increase level
IronArm_BonusMin: 3
IronArm_BonusMax: 8
IronArm_IncreaseLevel: 50
#