Cleanup of HerbalismCommand, added config options for Hylian Luck

This commit is contained in:
GJ
2013-01-22 01:52:34 -05:00
parent cedfb1a538
commit 5a9ca96a0f
8 changed files with 89 additions and 97 deletions

View File

@ -81,6 +81,14 @@ public abstract class SkillCommand implements CommandExecutor {
return true;
}
protected String calculateRank(int maxLevel, int rankChangeLevel) {
if (skillValue >= maxLevel) {
return String.valueOf(maxLevel / rankChangeLevel);
}
return String.valueOf((int) (skillValue / rankChangeLevel));
}
protected String[] calculateAbilityDisplayValues(double chance) {
if (isLucky) {
double luckyChance = chance * 1.3333D;