浏览代码

Update Woodcutting to alphabetical order

Oaksworth 6 年之前
父节点
当前提交
bf38f55f23
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      src/main/java/com/gmail/nossr50/commands/skills/WoodcuttingCommand.java

+ 9 - 9
src/main/java/com/gmail/nossr50/commands/skills/WoodcuttingCommand.java

@@ -31,17 +31,17 @@ public class WoodcuttingCommand extends SkillCommand {
 
     @Override
     protected void dataCalculations(Player player, float skillValue, boolean isLucky) {
+        // DOUBLE DROPS
+        if (canDoubleDrop) {
+            setDoubleDropClassicChanceStrings(skillValue, isLucky);
+        }
+        
         // TREE FELLER
         if (canTreeFell) {
             String[] treeFellerStrings = calculateLengthDisplayValues(player, skillValue);
             treeFellerLength = treeFellerStrings[0];
             treeFellerLengthEndurance = treeFellerStrings[1];
         }
-
-        // DOUBLE DROPS
-        if (canDoubleDrop) {
-            setDoubleDropClassicChanceStrings(skillValue, isLucky);
-        }
     }
 
     private void setDoubleDropClassicChanceStrings(float skillValue, boolean isLucky) {
@@ -64,14 +64,14 @@ public class WoodcuttingCommand extends SkillCommand {
     protected List<String> statsDisplay(Player player, float skillValue, boolean hasEndurance, boolean isLucky) {
         List<String> messages = new ArrayList<String>();
 
-        if (canLeafBlow) {
-            messages.add(LocaleLoader.getString("Ability.Generic.Template", LocaleLoader.getString("Woodcutting.Ability.0"), LocaleLoader.getString("Woodcutting.Ability.1")));
-        }
-
         if (canDoubleDrop) {
             messages.add(getStatMessage(SubSkillType.WOODCUTTING_HARVEST_LUMBER, doubleDropChance)
                     + (isLucky ? LocaleLoader.getString("Perks.Lucky.Bonus", doubleDropChanceLucky) : ""));
         }
+        
+        if (canLeafBlow) {
+            messages.add(LocaleLoader.getString("Ability.Generic.Template", LocaleLoader.getString("Woodcutting.Ability.0"), LocaleLoader.getString("Woodcutting.Ability.1")));
+        }
 
         if (canTreeFell) {
             messages.add(getStatMessage(SubSkillType.WOODCUTTING_TREE_FELLER, treeFellerLength)