Add missing skill properties to archery config

This commit is contained in:
nossr50 2019-06-14 15:46:13 -07:00
parent 8eba1dda1f
commit dac447f381
4 changed files with 30 additions and 2 deletions

View File

@ -13,6 +13,9 @@ public class ConfigArchery {
@Setting(value = "Skill-Shot") @Setting(value = "Skill-Shot")
private ConfigArcherySkillShot skillShot = new ConfigArcherySkillShot(); private ConfigArcherySkillShot skillShot = new ConfigArcherySkillShot();
@Setting("Arrow-Retrieval")
private ConfigArcheryArrowRetrieval arrowRetrieval = new ConfigArcheryArrowRetrieval();
public ConfigArcheryDaze getDaze() { public ConfigArcheryDaze getDaze() {
return daze; return daze;
} }

View File

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

View File

@ -15,7 +15,7 @@ public class ConfigArcheryDaze {
+ "\nDefault value: "+DAZE_MAX_CHANCE_DEFAULT) + "\nDefault value: "+DAZE_MAX_CHANCE_DEFAULT)
private double maxChance = 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); private MaxBonusLevel maxBonusLevel = new AbstractMaxBonusLevel(100);
@Setting(value = "Bonus-Damage", comment = "How much bonus damage is applied when daze is applied to a target." + @Setting(value = "Bonus-Damage", comment = "How much bonus damage is applied when daze is applied to a target." +

View File

@ -488,7 +488,7 @@ Skills:
Standard: 100 Standard: 100
RetroMode: 1000 RetroMode: 1000
AntiTheft: false AntiTheft: false
ArrowDeflect: ArrowDeflect:32
# ChanceMax: Maximum chance of deflecting arrows # ChanceMax: Maximum chance of deflecting arrows
# MaxBonusLevel: Level when the maximum chance to deflect is reached # MaxBonusLevel: Level when the maximum chance to deflect is reached
ChanceMax: 50.0 ChanceMax: 50.0