From e312e95aed4a1c25ee543b02df3475c6d05a63ca Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Mon, 20 May 2013 10:55:17 +0200 Subject: [PATCH] Refactor to a more descriptive name, also fixes a small typo. --- src/main/java/com/gmail/nossr50/config/Config.java | 2 +- src/main/java/com/gmail/nossr50/datatypes/skills/SkillType.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/config/Config.java b/src/main/java/com/gmail/nossr50/config/Config.java index 67b6ce5dc..81b8b777b 100644 --- a/src/main/java/com/gmail/nossr50/config/Config.java +++ b/src/main/java/com/gmail/nossr50/config/Config.java @@ -297,5 +297,5 @@ public class Config extends AutoUpdateConfigLoader { /* XP Formula Multiplier */ public int getFormulaMultiplierCurve() { return config.getInt("Experience.Formula.Curve_Modifier", 20); } - public double getForumulaMultiplier(SkillType skill) { return config.getDouble("Experience.Formula.Modifier." + StringUtils.getCapitalized(skill.toString())); } + public double getFormulaSkillModifier(SkillType skill) { return config.getDouble("Experience.Formula.Modifier." + StringUtils.getCapitalized(skill.toString())); } } diff --git a/src/main/java/com/gmail/nossr50/datatypes/skills/SkillType.java b/src/main/java/com/gmail/nossr50/datatypes/skills/SkillType.java index c31a9a2d1..3b3a64615 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/skills/SkillType.java +++ b/src/main/java/com/gmail/nossr50/datatypes/skills/SkillType.java @@ -108,7 +108,7 @@ public enum SkillType { } public double getXpModifier() { - return Config.getInstance().getForumulaMultiplier(this); + return Config.getInstance().getFormulaSkillModifier(this); } public static SkillType getSkill(String skillName) {