瀏覽代碼

remove msg about in development skills

nossr50 11 月之前
父節點
當前提交
684583c19b

+ 6 - 0
Changelog.txt

@@ -1,3 +1,9 @@
+Version 2.2.019
+    Maces, Crossbows, and Tridents skill commands don't warn you that they are work in progress anymore.
+
+    NOTES:
+    Maces, Crossbows, and Tridents are still in development, the change to remove that info from the skill command was to reduce the visual noise.
+    I think at this point users will get it, they are still going to have changes, you don't need to see that message everytime you use the skill command.
 Version 2.2.018
 Version 2.2.018
     Fixed a probability bug where certain skills would max out in chance to succeed well before they were supposed to (such as Dodge)
     Fixed a probability bug where certain skills would max out in chance to succeed well before they were supposed to (such as Dodge)
     Blast Mining will no longer drop mob spawners (see notes)
     Blast Mining will no longer drop mob spawners (see notes)

+ 1 - 1
pom.xml

@@ -2,7 +2,7 @@
     <modelVersion>4.0.0</modelVersion>
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.gmail.nossr50.mcMMO</groupId>
     <groupId>com.gmail.nossr50.mcMMO</groupId>
     <artifactId>mcMMO</artifactId>
     <artifactId>mcMMO</artifactId>
-    <version>2.2.018</version>
+    <version>2.2.019-SNAPSHOT</version>
     <name>mcMMO</name>
     <name>mcMMO</name>
     <url>https://github.com/mcMMO-Dev/mcMMO</url>
     <url>https://github.com/mcMMO-Dev/mcMMO</url>
     <scm>
     <scm>

+ 0 - 2
src/main/java/com/gmail/nossr50/commands/skills/CrossbowsCommand.java

@@ -59,8 +59,6 @@ public class CrossbowsCommand extends SkillCommand {
                     String.valueOf(CombatUtils.getLimitBreakDamageAgainstQuality(player, CROSSBOWS_CROSSBOWS_LIMIT_BREAK, 1000))));
                     String.valueOf(CombatUtils.getLimitBreakDamageAgainstQuality(player, CROSSBOWS_CROSSBOWS_LIMIT_BREAK, 1000))));
         }
         }
 
 
-        messages.add(ChatColor.GRAY + "The Crossbows skill is a work in progress and is still being developed, feedback would be appreciated in the mcMMO discord server.");
-
         return messages;
         return messages;
     }
     }
 
 

+ 0 - 2
src/main/java/com/gmail/nossr50/commands/skills/MacesCommand.java

@@ -65,8 +65,6 @@ public class MacesCommand extends SkillCommand {
                     String.valueOf(mmoPlayer.getMacesManager().getCrushDamage())));
                     String.valueOf(mmoPlayer.getMacesManager().getCrushDamage())));
         }
         }
 
 
-        messages.add(ChatColor.GRAY + "The Maces skill is a work in progress and is still being developed," +
-                " feedback would be appreciated in the mcMMO discord server.");
         return messages;
         return messages;
     }
     }
 
 

+ 0 - 1
src/main/java/com/gmail/nossr50/commands/skills/TridentsCommand.java

@@ -41,7 +41,6 @@ public class TridentsCommand extends SkillCommand {
                     String.valueOf(mmoPlayer.getTridentsManager().impaleDamageBonus())));
                     String.valueOf(mmoPlayer.getTridentsManager().impaleDamageBonus())));
         }
         }
 
 
-        messages.add(ChatColor.GRAY + "The Tridents skill is a work in progress and is still being developed, feedback would be appreciated in the mcMMO discord server.");
         return messages;
         return messages;
     }
     }
 
 

+ 5 - 1
src/main/java/com/gmail/nossr50/config/skills/salvage/SalvageConfig.java

@@ -18,6 +18,8 @@ import java.io.IOException;
 import java.util.*;
 import java.util.*;
 import java.util.logging.Level;
 import java.util.logging.Level;
 
 
+import static com.gmail.nossr50.util.skills.SkillUtils.getRepairAndSalvageQuantities;
+
 public class SalvageConfig extends BukkitConfig {
 public class SalvageConfig extends BukkitConfig {
     private final HashSet<String> notSupported;
     private final HashSet<String> notSupported;
     private Set<Salvageable> salvageables;
     private Set<Salvageable> salvageables;
@@ -143,7 +145,9 @@ public class SalvageConfig extends BukkitConfig {
             }
             }
 
 
             // Maximum Quantity
             // Maximum Quantity
-            int maximumQuantity = (itemMaterial != null ? SkillUtils.getRepairAndSalvageQuantities(itemMaterial, salvageMaterial) : config.getInt("Salvageables." + key + ".MaximumQuantity", 1));
+            int maximumQuantity = itemMaterial != null
+                    ? getRepairAndSalvageQuantities(itemMaterial, salvageMaterial)
+                    : config.getInt("Salvageables." + key + ".MaximumQuantity", 1);
 
 
             if (maximumQuantity <= 0 && itemMaterial != null) {
             if (maximumQuantity <= 0 && itemMaterial != null) {
                 maximumQuantity = config.getInt("Salvageables." + key + ".MaximumQuantity", 1);
                 maximumQuantity = config.getInt("Salvageables." + key + ".MaximumQuantity", 1);