From 78e77df07164de159358d833b39aecbcbe75912e Mon Sep 17 00:00:00 2001 From: alexcrea <42614139+alexcrea@users.noreply.github.com> Date: Tue, 28 May 2024 22:31:57 +0200 Subject: [PATCH] Small range adjusment: - set min value of max anvil cost to 0 - set max value for most config by 1000 --- src/main/kotlin/io/delilaheve/util/ConfigOptions.kt | 8 ++++---- src/main/resources/config.yml | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/kotlin/io/delilaheve/util/ConfigOptions.kt b/src/main/kotlin/io/delilaheve/util/ConfigOptions.kt index 89fe04b..2ee3749 100644 --- a/src/main/kotlin/io/delilaheve/util/ConfigOptions.kt +++ b/src/main/kotlin/io/delilaheve/util/ConfigOptions.kt @@ -94,19 +94,19 @@ object ConfigOptions { // Valid range for repair cost limit @JvmField - val MAX_ANVIL_COST_RANGE = 1..255 + val MAX_ANVIL_COST_RANGE = 0..1000 // Valid range for repair cost @JvmField - val REPAIR_COST_RANGE = 0..255 + val REPAIR_COST_RANGE = 0..1000 // Valid range for rename cost @JvmField - val ITEM_RENAME_COST_RANGE = 0..255 + val ITEM_RENAME_COST_RANGE = 0..1000 // Valid range for illegal enchantment conflict cost @JvmField - val SACRIFICE_ILLEGAL_COST_RANGE = 0..255 + val SACRIFICE_ILLEGAL_COST_RANGE = 0..1000 // Valid range for an enchantment limit @JvmField diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 703867f..aa09cf4 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -6,7 +6,7 @@ limit_repair_cost: false # Max cost value the Anvil can get to. # -# Valid values include 1 to 255. +# Valid values include 0 to 1000. # Cost will be displayed as "Too Expensive": # - If Cost is above 39 # - And replace_too_expensive is disabled (false) @@ -29,30 +29,30 @@ replace_too_expensive: false # XP Level amount added to the anvil when the item is repaired by another item of the same type # -# Valid values include 0 to 255 +# Valid values include 0 to 1000 item_repair_cost: 2 # XP Level amount added to the anvil when the item is renamed # -# Valid values include 0 to 255 +# Valid values include 0 to 1000 item_rename_cost: 1 # XP Level amount added to the anvil when the item is repaired by an "unit" # For example: a Diamond on a Diamond Sword # What's considered unit for what can be edited on the unit repair configuration. # -# Valid values include 0 to 255 +# Valid values include 0 to 1000 unit_repair_cost: 1 # XP Level amount added to the anvil when a sacrifice enchantment # conflict with one of the left item enchantment # -# Valid values include 0 to 255 +# Valid values include 0 to 1000 sacrifice_illegal_enchant_cost: 1 # Default limit to apply to any enchants missing from override_limits # -# Valid values include 1 to 255 +# Valid values include 1 to 1000 default_limit: 5 # Override limits for specific enchants