mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 11:44:42 +02:00
Cleanup of HerbalismCommand, added config options for Hylian Luck
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user