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 712d359a2..860ccf32d 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 @@ -1,8 +1,54 @@ package com.gmail.nossr50.config.hocon.skills.archery; +import ninja.leaping.configurate.objectmapping.Setting; import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; @ConfigSerializable public class ConfigArchery { + /* ARCHERY */ + +// +// public double getDazeBonusDamage() { +// return getDoubleValue(SKILLS, ARCHERY, DAZE, BONUS_DAMAGE); +// } +// +// public double getForceMultiplier() { +// return getDoubleValue(SKILLS, ARCHERY, FORCE_MULTIPLIER); +// } + + /* + Archery: + SkillShot: + # RankDamageMultiplier: The current rank of this subskill is multiplied by this value to determine the bonus damage, rank 20 would result in 200% damage increase with a value of 10.0 for RankDamageMultiplier + # RankDamageMultiplier is a percentage + RankDamageMultiplier: 10.0 + # MaxDamage: After adding bonus damage, the total damage dealt by the player will not exceed this number + # You should be careful to not set this too low + MaxDamage: 9.0 + Daze: + # ChanceMax: Maximum chance of causing daze to opponents when on or higher + # MaxBonusLevel: Maximum bonus level of Daze, when a player reaches this level his chance of causing a daze will be + # Modifier: Extra damage for arrows that cause a daze (2 damage = 1 heart) + ChanceMax: 50.0 + MaxBonusLevel: + Standard: 100 + RetroMode: 1000 + BonusDamage: 4.0 + */ + + + @Setting(value = "Daze") + private ConfigArcheryDaze daze = new ConfigArcheryDaze(); + + @Setting(value = "Skill-Shot") + private ConfigArcherySkillShot skillShot = new ConfigArcherySkillShot(); + + public ConfigArcheryDaze getDaze() { + return daze; + } + + public ConfigArcherySkillShot getSkillShot() { + return skillShot; + } } \ No newline at end of file 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 new file mode 100644 index 000000000..03ec98e91 --- /dev/null +++ b/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArcheryDaze.java @@ -0,0 +1,8 @@ +package com.gmail.nossr50.config.hocon.skills.archery; + +import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; + +@ConfigSerializable +public class ConfigArcheryDaze { + +} diff --git a/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArcherySkillShot.java b/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArcherySkillShot.java new file mode 100644 index 000000000..1d3594ab0 --- /dev/null +++ b/src/main/java/com/gmail/nossr50/config/hocon/skills/archery/ConfigArcherySkillShot.java @@ -0,0 +1,26 @@ +package com.gmail.nossr50.config.hocon.skills.archery; + +import ninja.leaping.configurate.objectmapping.Setting; +import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable; + +@ConfigSerializable +public class ConfigArcherySkillShot { + private static final double SKILL_SHOT_DMG_MULTIPLIER_DEFAULT = 10.0D; + private static final double DAMAGE_CEILING_DEFAULT = 9.0; + + @Setting(value = "Rank-Percentage-Damage-Boost", comment = "How much damage Skill Shot will add per rank, this stacks additively." + + "\nDefault value: "+SKILL_SHOT_DMG_MULTIPLIER_DEFAULT) + private double skillShotDamageMultiplier = SKILL_SHOT_DMG_MULTIPLIER_DEFAULT; + + @Setting(value = "Bonus-Damage-Limit", comment = "This is the maximum amount of raw bonus damage that can be added to your arrows as a result of Skill Shot." + + "\nDefault value: "+DAMAGE_CEILING_DEFAULT) + private double skillShotDamageCeiling = DAMAGE_CEILING_DEFAULT; + + public double getSkillShotDamageMultiplier() { + return skillShotDamageMultiplier; + } + + public double getSkillShotDamageCeiling() { + return skillShotDamageCeiling; + } +}