Sfoglia il codice sorgente

Removed Abilities.Tools.Durability_Loss_Enabled

Set Abilities.Tools.Durability_Loss to 0 to disable instead.
Addresses #1357
TfT_02 12 anni fa
parent
commit
dcc18049a1

+ 1 - 0
Changelog.txt

@@ -22,6 +22,7 @@ Version 1.4.07-dev
  ! Improved profile saving
  ! Updated localization files
  ! Party item share category states are now saved when the server shuts down.
+ - Removed Abilities.Tools.Durability_Loss_Enabled, set Abilities.Tools.Durability_Loss to 0 to disable instead.
 
 Version 1.4.06
  + Added "Ice Fishing" ability to Fishing

+ 2 - 3
src/main/java/com/gmail/nossr50/config/Config.java

@@ -132,8 +132,8 @@ public class Config extends AutoUpdateConfigLoader {
             reason.add("Commands.inspect.Max_Distance should be greater than 0!");
         }
 
-        if (getAbilityToolDamage() <= 0) {
-            reason.add("Abilities.Tools.Durability_Loss should be greater than 0!");
+        if (getAbilityToolDamage() < 0) {
+            reason.add("Abilities.Tools.Durability_Loss should be at least 0!");
         }
 
         if (getTreeFellerThreshold() <= 0) {
@@ -365,7 +365,6 @@ public class Config extends AutoUpdateConfigLoader {
     public int getMaxTicks(AbilityType ability) { return config.getInt("Abilities.Max_Seconds." + ability.toString()); }
 
     /* Durability Settings */
-    public boolean getAbilitiesDamageTools() { return config.getBoolean("Abilities.Tools.Durability_Loss_Enabled", true); }
     public int getAbilityToolDamage() { return config.getInt("Abilities.Tools.Durability_Loss", 2); }
 
     /* Thresholds */

+ 1 - 1
src/main/resources/config.yml

@@ -166,7 +166,7 @@ Abilities:
     Limits:
        Tree_Feller_Threshold: 500
     Tools:
-        Durability_Loss_Enabled: true
+        # Use more tool durability while using abilities. Set Durability_Loss to 0 to disable the extra durability damage.
         Durability_Loss: 2
 
 #