diff --git a/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArchery.java b/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArchery.java index da2c0714c..922312e49 100644 --- a/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArchery.java +++ b/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArchery.java @@ -13,6 +13,9 @@ public class ConfigArchery { @Setting(value = "Skill-Shot") private ConfigArcherySkillShot skillShot = new ConfigArcherySkillShot(); + @Setting("Arrow-Retrieval") + private ConfigArcheryArrowRetrieval arrowRetrieval = new ConfigArcheryArrowRetrieval(); + public ConfigArcheryDaze getDaze() { return daze; } diff --git a/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArcheryArrowRetrieval.java b/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArcheryArrowRetrieval.java new file mode 100644 index 000000000..e7fe5d6bd --- /dev/null +++ b/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArcheryArrowRetrieval.java @@ -0,0 +1,25 @@ +package com.gmail.nossr50.config.hocon.skills.archery; + +import com.gmail.nossr50.config.ConfigConstants; +import com.gmail.nossr50.datatypes.skills.properties.AbstractMaxBonusLevel; +import com.gmail.nossr50.datatypes.skills.properties.MaxBonusLevel; +import ninja.leaping.configurate.objectmapping.Setting; +import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; + +@ConfigSerializable +public class ConfigArcheryArrowRetrieval { + + @Setting(value = ConfigConstants.MAX_CHANCE_FIELD_NAME, comment = ConfigConstants.MAX_CHANCE_FIELD_DESCRIPTION) + private double maxChance = 100.0D; + + @Setting(value = ConfigConstants.MAX_BONUS_LEVEL_FIELD_NAME) + private MaxBonusLevel maxBonusLevel = new AbstractMaxBonusLevel(100); + + public double getMaxChance() { + return maxChance; + } + + public MaxBonusLevel getMaxBonusLevel() { + return maxBonusLevel; + } +} diff --git a/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArcheryDaze.java b/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArcheryDaze.java index dd8185470..baaeea618 100644 --- a/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArcheryDaze.java +++ b/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArcheryDaze.java @@ -15,7 +15,7 @@ public class ConfigArcheryDaze { + "\nDefault value: "+DAZE_MAX_CHANCE_DEFAULT) private double maxChance = DAZE_MAX_CHANCE_DEFAULT; - @Setting(value = "Max-Bonus-Level") + @Setting(value = ConfigConstants.MAX_BONUS_LEVEL_FIELD_NAME) private MaxBonusLevel maxBonusLevel = new AbstractMaxBonusLevel(100); @Setting(value = "Bonus-Damage", comment = "How much bonus damage is applied when daze is applied to a target." + diff --git a/src/main/resources/advanced.yml b/src/main/resources/advanced.yml index 30e6ca52e..f3b320696 100644 --- a/src/main/resources/advanced.yml +++ b/src/main/resources/advanced.yml @@ -488,7 +488,7 @@ Skills: Standard: 100 RetroMode: 1000 AntiTheft: false - ArrowDeflect: + ArrowDeflect:32 # ChanceMax: Maximum chance of deflecting arrows # MaxBonusLevel: Level when the maximum chance to deflect is reached ChanceMax: 50.0