Add skill shot config settings

This commit is contained in:
nossr50 2019-06-06 08:09:27 -07:00
parent d879575d5f
commit 5eb80f9277
3 changed files with 80 additions and 0 deletions

View File

@ -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 <MaxBonusLevel> or higher
# MaxBonusLevel: Maximum bonus level of Daze, when a player reaches this level his chance of causing a daze will be <ChanceMax>
# 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;
}
}

View File

@ -0,0 +1,8 @@
package com.gmail.nossr50.config.hocon.skills.archery;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
@ConfigSerializable
public class ConfigArcheryDaze {
}

View File

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