Removed Abilities.Tools.Durability_Loss_Enabled

Set Abilities.Tools.Durability_Loss to 0 to disable instead.
Addresses #1357
This commit is contained in:
TfT_02 2013-08-09 18:13:22 +02:00
parent fcb8909a54
commit dcc18049a1
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 */

View File

@ -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
#