mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Add missing skill properties to archery config
This commit is contained in:
parent
8eba1dda1f
commit
dac447f381
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -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." +
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user