diff --git a/src/com/projectkorra/projectkorra/chiblocking/AcrobatStance.java b/src/com/projectkorra/projectkorra/chiblocking/AcrobatStance.java index 1c7b6063..d4bd3554 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/AcrobatStance.java +++ b/src/com/projectkorra/projectkorra/chiblocking/AcrobatStance.java @@ -10,8 +10,10 @@ import com.projectkorra.projectkorra.Element; import com.projectkorra.projectkorra.GeneralMethods; import com.projectkorra.projectkorra.ability.ChiAbility; import com.projectkorra.projectkorra.attribute.Attribute; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.AcrobatStanceConfig; -public class AcrobatStance extends ChiAbility { +@SuppressWarnings("rawtypes") +public class AcrobatStance extends ChiAbility { @Attribute(Attribute.COOLDOWN) private long cooldown; @@ -26,17 +28,17 @@ public class AcrobatStance extends ChiAbility { @Attribute("ParalyzeDodgeBoost") private double paralyzeDodgeBoost; - public AcrobatStance(final Player player) { - super(player); + public AcrobatStance(final AcrobatStanceConfig config, final Player player) { + super(config, player); if (!this.bPlayer.canBend(this)) { return; } - this.cooldown = getConfig().getLong("Abilities.Chi.AcrobatStance.Cooldown"); - this.duration = getConfig().getLong("Abilities.Chi.AcrobatStance.Duration"); - this.speed = getConfig().getInt("Abilities.Chi.AcrobatStance.Speed") - 1; - this.jump = getConfig().getInt("Abilities.Chi.AcrobatStance.Jump") - 1; - this.chiBlockBoost = getConfig().getDouble("Abilities.Chi.AcrobatStance.ChiBlockBoost"); - this.paralyzeDodgeBoost = getConfig().getDouble("Abilities.Chi.AcrobatStance.ParalyzeChanceDecrease"); + this.cooldown = config.Cooldown; + this.duration = config.Duration; + this.speed = config.Speed - 1; + this.jump = config.Jump - 1; + this.chiBlockBoost = config.ChiBlockBoost; + this.paralyzeDodgeBoost = config.ParalyzeChanceDecrease; final ChiAbility stance = this.bPlayer.getStance(); if (stance != null) { diff --git a/src/com/projectkorra/projectkorra/chiblocking/HighJump.java b/src/com/projectkorra/projectkorra/chiblocking/HighJump.java index d4992cf1..8d357a89 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/HighJump.java +++ b/src/com/projectkorra/projectkorra/chiblocking/HighJump.java @@ -6,25 +6,25 @@ import org.bukkit.entity.Player; import org.bukkit.util.Vector; import com.projectkorra.projectkorra.GeneralMethods; -import com.projectkorra.projectkorra.ProjectKorra; import com.projectkorra.projectkorra.ability.ChiAbility; import com.projectkorra.projectkorra.attribute.Attribute; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.HighJumpConfig; import com.projectkorra.projectkorra.waterbending.multiabilities.WaterArmsWhip; -public class HighJump extends ChiAbility { +public class HighJump extends ChiAbility { @Attribute(Attribute.HEIGHT) - private int height; + private double height; @Attribute(Attribute.COOLDOWN) private long cooldown; - public HighJump(final Player player) { - super(player); + public HighJump(final HighJumpConfig config, final Player player) { + super(config, player); if (!this.bPlayer.canBend(this)) { return; } - this.height = ProjectKorra.plugin.getConfig().getInt("Abilities.Chi.HighJump.Height"); - this.cooldown = ProjectKorra.plugin.getConfig().getInt("Abilities.Chi.HighJump.Cooldown"); + this.height = config.Height; + this.cooldown = config.Cooldown; this.start(); } @@ -79,11 +79,11 @@ public class HighJump extends ChiAbility { return true; } - public int getHeight() { + public double getHeight() { return this.height; } - public void setHeight(final int height) { + public void setHeight(final double height) { this.height = height; } diff --git a/src/com/projectkorra/projectkorra/chiblocking/Paralyze.java b/src/com/projectkorra/projectkorra/chiblocking/Paralyze.java index a7682dde..edd0ebe0 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/Paralyze.java +++ b/src/com/projectkorra/projectkorra/chiblocking/Paralyze.java @@ -13,9 +13,10 @@ import com.projectkorra.projectkorra.ability.CoreAbility; import com.projectkorra.projectkorra.airbending.Suffocate; import com.projectkorra.projectkorra.attribute.Attribute; import com.projectkorra.projectkorra.command.Commands; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.ParalyzeConfig; import com.projectkorra.projectkorra.util.MovementHandler; -public class Paralyze extends ChiAbility { +public class Paralyze extends ChiAbility { @Attribute(Attribute.COOLDOWN) private long cooldown; @@ -23,8 +24,8 @@ public class Paralyze extends ChiAbility { private long duration; private Entity target; - public Paralyze(final Player sourceplayer, final Entity targetentity) { - super(sourceplayer); + public Paralyze(final ParalyzeConfig config, final Player sourceplayer, final Entity targetentity) { + super(config, sourceplayer); if (!this.bPlayer.canBend(this)) { return; } @@ -32,8 +33,8 @@ public class Paralyze extends ChiAbility { if (!(this.target instanceof LivingEntity)) { return; } - this.cooldown = getConfig().getLong("Abilities.Chi.Paralyze.Cooldown"); - this.duration = getConfig().getLong("Abilities.Chi.Paralyze.Duration"); + this.cooldown = config.Cooldown; + this.duration = config.Duration; this.start(); } diff --git a/src/com/projectkorra/projectkorra/chiblocking/QuickStrike.java b/src/com/projectkorra/projectkorra/chiblocking/QuickStrike.java index 45d0269a..a30fb76a 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/QuickStrike.java +++ b/src/com/projectkorra/projectkorra/chiblocking/QuickStrike.java @@ -7,26 +7,27 @@ import org.bukkit.entity.Player; import com.projectkorra.projectkorra.ability.ChiAbility; import com.projectkorra.projectkorra.attribute.Attribute; import com.projectkorra.projectkorra.chiblocking.passive.ChiPassive; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.QuickStrikeConfig; import com.projectkorra.projectkorra.util.DamageHandler; -public class QuickStrike extends ChiAbility { +public class QuickStrike extends ChiAbility { @Attribute(Attribute.DAMAGE) private double damage; @Attribute("ChiBlockChance") - private int blockChance; + private double blockChance; private Entity target; @Attribute(Attribute.COOLDOWN) private long cooldown; - public QuickStrike(final Player sourceplayer, final Entity targetentity) { - super(sourceplayer); + public QuickStrike(final QuickStrikeConfig config, final Player sourceplayer, final Entity targetentity) { + super(config, sourceplayer); if (!this.bPlayer.canBend(this)) { return; } - this.damage = getConfig().getDouble("Abilities.Chi.QuickStrike.Damage"); - this.cooldown = getConfig().getLong("Abilities.Chi.QuickStrike.Cooldown"); - this.blockChance = getConfig().getInt("Abilities.Chi.QuickStrike.ChiBlockChance"); + this.damage = config.Damage; + this.cooldown = config.Cooldown; + this.blockChance = config.ChiBlockChance; this.target = targetentity; if (this.target == null) { return; @@ -89,11 +90,11 @@ public class QuickStrike extends ChiAbility { this.damage = damage; } - public int getBlockChance() { + public double getBlockChance() { return this.blockChance; } - public void setBlockChance(final int blockChance) { + public void setBlockChance(final double blockChance) { this.blockChance = blockChance; } diff --git a/src/com/projectkorra/projectkorra/chiblocking/RapidPunch.java b/src/com/projectkorra/projectkorra/chiblocking/RapidPunch.java index 7fd154d5..0e7ba4ec 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/RapidPunch.java +++ b/src/com/projectkorra/projectkorra/chiblocking/RapidPunch.java @@ -9,9 +9,10 @@ import com.projectkorra.projectkorra.ability.ChiAbility; import com.projectkorra.projectkorra.airbending.Suffocate; import com.projectkorra.projectkorra.attribute.Attribute; import com.projectkorra.projectkorra.chiblocking.passive.ChiPassive; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.RapidPunchConfig; import com.projectkorra.projectkorra.util.DamageHandler; -public class RapidPunch extends ChiAbility { +public class RapidPunch extends ChiAbility { @Attribute(Attribute.DAMAGE) private double damage; @@ -24,16 +25,16 @@ public class RapidPunch extends ChiAbility { private final long last = 0; private Entity target; - public RapidPunch(final Player sourceplayer, final Entity targetentity) { - super(sourceplayer); + public RapidPunch(final RapidPunchConfig config, final Player sourceplayer, final Entity targetentity) { + super(config, sourceplayer); if (!this.bPlayer.canBend(this)) { return; } - this.damage = getConfig().getDouble("Abilities.Chi.RapidPunch.Damage"); - this.punches = getConfig().getInt("Abilities.Chi.RapidPunch.Punches"); - this.cooldown = getConfig().getLong("Abilities.Chi.RapidPunch.Cooldown"); - this.interval = getConfig().getLong("Abilities.Chi.RapidPunch.Interval"); + this.damage = config.DamagePerPunch; + this.punches = config.TotalPunches; + this.cooldown = config.Cooldown; + this.interval = config.Interval; this.target = targetentity; this.bPlayer.addCooldown(this); this.start(); diff --git a/src/com/projectkorra/projectkorra/chiblocking/Smokescreen.java b/src/com/projectkorra/projectkorra/chiblocking/Smokescreen.java index bfa1af99..c746a573 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/Smokescreen.java +++ b/src/com/projectkorra/projectkorra/chiblocking/Smokescreen.java @@ -14,9 +14,10 @@ import com.projectkorra.projectkorra.GeneralMethods; import com.projectkorra.projectkorra.ability.ChiAbility; import com.projectkorra.projectkorra.attribute.Attribute; import com.projectkorra.projectkorra.command.Commands; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.SmokescreenConfig; import com.projectkorra.projectkorra.util.ParticleEffect; -public class Smokescreen extends ChiAbility { +public class Smokescreen extends ChiAbility { private static final Map SNOWBALLS = new ConcurrentHashMap<>(); private static final Map BLINDED_TIMES = new ConcurrentHashMap<>(); @@ -29,14 +30,14 @@ public class Smokescreen extends ChiAbility { @Attribute(Attribute.RADIUS) private double radius; - public Smokescreen(final Player player) { - super(player); + public Smokescreen(final SmokescreenConfig config, final Player player) { + super(config, player); if (!this.bPlayer.canBend(this)) { return; } - this.cooldown = getConfig().getLong("Abilities.Chi.Smokescreen.Cooldown"); - this.duration = getConfig().getInt("Abilities.Chi.Smokescreen.Duration"); - this.radius = getConfig().getDouble("Abilities.Chi.Smokescreen.Radius"); + this.cooldown = config.Cooldown; + this.duration = config.Duration; + this.radius = config.Radius; this.start(); } diff --git a/src/com/projectkorra/projectkorra/chiblocking/SwiftKick.java b/src/com/projectkorra/projectkorra/chiblocking/SwiftKick.java index eb2e6d09..f1b9439a 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/SwiftKick.java +++ b/src/com/projectkorra/projectkorra/chiblocking/SwiftKick.java @@ -8,26 +8,27 @@ import com.projectkorra.projectkorra.ability.ChiAbility; import com.projectkorra.projectkorra.ability.ElementalAbility; import com.projectkorra.projectkorra.attribute.Attribute; import com.projectkorra.projectkorra.chiblocking.passive.ChiPassive; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.SwiftKickConfig; import com.projectkorra.projectkorra.util.DamageHandler; -public class SwiftKick extends ChiAbility { +public class SwiftKick extends ChiAbility { @Attribute(Attribute.DAMAGE) private double damage; @Attribute("ChiBlockChance") - private int blockChance; + private double blockChance; @Attribute(Attribute.COOLDOWN) private long cooldown; private Entity target; - public SwiftKick(final Player sourceplayer, final Entity targetentity) { - super(sourceplayer); + public SwiftKick(final SwiftKickConfig config, final Player sourceplayer, final Entity targetentity) { + super(config, sourceplayer); if (!this.bPlayer.canBend(this)) { return; } - this.damage = getConfig().getDouble("Abilities.Chi.SwiftKick.Damage"); - this.blockChance = getConfig().getInt("Abilities.Chi.SwiftKick.ChiBlockChance"); - this.cooldown = getConfig().getInt("Abilities.Chi.SwiftKick.Cooldown"); + this.damage = config.Damage; + this.blockChance = config.ChiBlockChance; + this.cooldown = config.Cooldown; this.target = targetentity; this.start(); } @@ -83,11 +84,11 @@ public class SwiftKick extends ChiAbility { this.damage = damage; } - public int getBlockChance() { + public double getBlockChance() { return this.blockChance; } - public void setBlockChance(final int blockChance) { + public void setBlockChance(final double blockChance) { this.blockChance = blockChance; } diff --git a/src/com/projectkorra/projectkorra/chiblocking/WarriorStance.java b/src/com/projectkorra/projectkorra/chiblocking/WarriorStance.java index 6d6d0e8a..0be5b378 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/WarriorStance.java +++ b/src/com/projectkorra/projectkorra/chiblocking/WarriorStance.java @@ -10,8 +10,10 @@ import com.projectkorra.projectkorra.Element; import com.projectkorra.projectkorra.GeneralMethods; import com.projectkorra.projectkorra.ability.ChiAbility; import com.projectkorra.projectkorra.attribute.Attribute; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.WarriorStanceConfig; -public class WarriorStance extends ChiAbility { +@SuppressWarnings("rawtypes") +public class WarriorStance extends ChiAbility { @Attribute(Attribute.COOLDOWN) private long cooldown; @@ -22,15 +24,15 @@ public class WarriorStance extends ChiAbility { @Attribute("Resistance") private int resistance; - public WarriorStance(final Player player) { - super(player); + public WarriorStance(final WarriorStanceConfig config, final Player player) { + super(config, player); if (!this.bPlayer.canBend(this)) { return; } - this.cooldown = getConfig().getLong("Abilities.Chi.WarriorStance.Cooldown"); - this.duration = getConfig().getLong("Abilities.Chi.WarriorStance.Duration"); - this.strength = getConfig().getInt("Abilities.Chi.WarriorStance.Strength") - 1; - this.resistance = getConfig().getInt("Abilities.Chi.WarriorStance.Resistance"); //intended to be negative + this.cooldown = config.Cooldown; + this.duration = config.Duration; + this.strength = config.Strength - 1; + this.resistance = config.Resistance; //intended to be negative final ChiAbility stance = this.bPlayer.getStance(); if (stance != null) { diff --git a/src/com/projectkorra/projectkorra/chiblocking/combo/Immobilize.java b/src/com/projectkorra/projectkorra/chiblocking/combo/Immobilize.java index 0ebef009..30448936 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/combo/Immobilize.java +++ b/src/com/projectkorra/projectkorra/chiblocking/combo/Immobilize.java @@ -15,10 +15,12 @@ import com.projectkorra.projectkorra.ability.CoreAbility; import com.projectkorra.projectkorra.ability.util.ComboManager.AbilityInformation; import com.projectkorra.projectkorra.attribute.Attribute; import com.projectkorra.projectkorra.command.Commands; +import com.projectkorra.projectkorra.configuration.better.ConfigManager; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.ImmobilizeConfig; import com.projectkorra.projectkorra.util.ClickType; import com.projectkorra.projectkorra.util.MovementHandler; -public class Immobilize extends ChiAbility implements ComboAbility { +public class Immobilize extends ChiAbility implements ComboAbility { @Attribute(Attribute.DURATION) private long duration; @@ -26,11 +28,11 @@ public class Immobilize extends ChiAbility implements ComboAbility { private long cooldown; private Entity target; - public Immobilize(final Player player) { - super(player); + public Immobilize(final ImmobilizeConfig config, final Player player) { + super(config, player); - this.cooldown = getConfig().getLong("Abilities.Chi.Immobilize.Cooldown"); - this.duration = getConfig().getLong("Abilities.Chi.Immobilize.ParalyzeDuration"); + this.cooldown = config.Cooldown; + this.duration = config.ParalyzeDuration; this.target = GeneralMethods.getTargetedEntity(player, 5); if (!this.bPlayer.canBendIgnoreBinds(this)) { return; @@ -89,7 +91,7 @@ public class Immobilize extends ChiAbility implements ComboAbility { @Override public Object createNewComboInstance(final Player player) { - return new Immobilize(player); + return new Immobilize(ConfigManager.getConfig(ImmobilizeConfig.class), player); } @Override diff --git a/src/com/projectkorra/projectkorra/chiblocking/passive/Acrobatics.java b/src/com/projectkorra/projectkorra/chiblocking/passive/Acrobatics.java index 7c5daace..e0b5546f 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/passive/Acrobatics.java +++ b/src/com/projectkorra/projectkorra/chiblocking/passive/Acrobatics.java @@ -5,15 +5,16 @@ import org.bukkit.entity.Player; import com.projectkorra.projectkorra.ability.ChiAbility; import com.projectkorra.projectkorra.ability.PassiveAbility; -import com.projectkorra.projectkorra.configuration.ConfigManager; +import com.projectkorra.projectkorra.configuration.better.ConfigManager; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.AcrobaticsConfig; -public class Acrobatics extends ChiAbility implements PassiveAbility { - public Acrobatics(final Player player) { - super(player); +public class Acrobatics extends ChiAbility implements PassiveAbility { + public Acrobatics(final AcrobaticsConfig config, final Player player) { + super(config, player); } public static double getFallReductionFactor() { - return ConfigManager.getConfig().getDouble("Abilities.Chi.Passive.Acrobatics.FallReductionFactor"); + return ConfigManager.getConfig(AcrobaticsConfig.class).FallReductionFactor; } @Override diff --git a/src/com/projectkorra/projectkorra/chiblocking/passive/ChiAgility.java b/src/com/projectkorra/projectkorra/chiblocking/passive/ChiAgility.java index 4c4af02e..107e3c9b 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/passive/ChiAgility.java +++ b/src/com/projectkorra/projectkorra/chiblocking/passive/ChiAgility.java @@ -8,9 +8,9 @@ import org.bukkit.potion.PotionEffectType; import com.projectkorra.projectkorra.ability.ChiAbility; import com.projectkorra.projectkorra.ability.PassiveAbility; import com.projectkorra.projectkorra.attribute.Attribute; -import com.projectkorra.projectkorra.configuration.ConfigManager; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.ChiAgilityConfig; -public class ChiAgility extends ChiAbility implements PassiveAbility { +public class ChiAgility extends ChiAbility implements PassiveAbility { // Configurable variables. @Attribute("Jump") @@ -18,14 +18,14 @@ public class ChiAgility extends ChiAbility implements PassiveAbility { @Attribute(Attribute.SPEED) private int speedPower; - public ChiAgility(final Player player) { - super(player); + public ChiAgility(final ChiAgilityConfig config, final Player player) { + super(config, player); this.setFields(); } public void setFields() { - this.jumpPower = ConfigManager.getConfig().getInt("Abilities.Chi.Passive.ChiAgility.JumpPower") - 1; - this.speedPower = ConfigManager.getConfig().getInt("Abilities.Chi.Passive.ChiAgility.SpeedPower") - 1; + this.jumpPower = config.JumpPower - 1; + this.speedPower = config.SpeedPower - 1; } @Override diff --git a/src/com/projectkorra/projectkorra/chiblocking/passive/ChiPassive.java b/src/com/projectkorra/projectkorra/chiblocking/passive/ChiPassive.java index de5113bc..c78dd735 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/passive/ChiPassive.java +++ b/src/com/projectkorra/projectkorra/chiblocking/passive/ChiPassive.java @@ -13,9 +13,11 @@ import com.projectkorra.projectkorra.airbending.Suffocate; import com.projectkorra.projectkorra.chiblocking.AcrobatStance; import com.projectkorra.projectkorra.chiblocking.QuickStrike; import com.projectkorra.projectkorra.chiblocking.SwiftKick; -import com.projectkorra.projectkorra.configuration.ConfigManager; +import com.projectkorra.projectkorra.configuration.better.ConfigManager; +import com.projectkorra.projectkorra.configuration.better.configs.properties.ChiPropertiesConfig; import com.projectkorra.projectkorra.util.ActionBar; +@SuppressWarnings("rawtypes") public class ChiPassive { public static boolean willChiBlock(final Player attacker, final Player player) { final BendingPlayer bPlayer = BendingPlayer.getBendingPlayer(player); @@ -74,11 +76,11 @@ public class ChiPassive { } public static double getChance() { - return ConfigManager.getConfig().getDouble("Abilities.Chi.Passive.BlockChi.Chance"); + return ConfigManager.getConfig(ChiPropertiesConfig.class).BlockChiChance; } - public static int getDuration() { - return ConfigManager.getConfig().getInt("Abilities.Chi.Passive.BlockChi.Duration"); + public static long getDuration() { + return ConfigManager.getConfig(ChiPropertiesConfig.class).BlockChiDuration; } public static long getTicks() { diff --git a/src/com/projectkorra/projectkorra/chiblocking/passive/ChiSaturation.java b/src/com/projectkorra/projectkorra/chiblocking/passive/ChiSaturation.java index af5ec688..f280f7a4 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/passive/ChiSaturation.java +++ b/src/com/projectkorra/projectkorra/chiblocking/passive/ChiSaturation.java @@ -5,15 +5,16 @@ import org.bukkit.entity.Player; import com.projectkorra.projectkorra.ability.ChiAbility; import com.projectkorra.projectkorra.ability.PassiveAbility; -import com.projectkorra.projectkorra.configuration.ConfigManager; +import com.projectkorra.projectkorra.configuration.better.ConfigManager; +import com.projectkorra.projectkorra.configuration.better.configs.abilities.chi.ChiSaturationConfig; -public class ChiSaturation extends ChiAbility implements PassiveAbility { - public ChiSaturation(final Player player) { - super(player); +public class ChiSaturation extends ChiAbility implements PassiveAbility { + public ChiSaturation(final ChiSaturationConfig config, final Player player) { + super(config, player); } public static double getExhaustionFactor() { - return ConfigManager.getConfig().getDouble("Abilities.Chi.Passive.ChiSaturation.ExhaustionFactor"); + return ConfigManager.getConfig(ChiSaturationConfig.class).ExhaustionFactor; } @Override diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/AcrobatStanceConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/AcrobatStanceConfig.java new file mode 100644 index 00000000..3398c1f7 --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/AcrobatStanceConfig.java @@ -0,0 +1,28 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class AcrobatStanceConfig extends AbilityConfig { + + public final long Cooldown = 0; + public final long Duration = 0; + public final int Speed = 0; + public final int Jump = 0; + public final double ChiBlockBoost = 0; + public final double ParalyzeChanceDecrease = 0; + + public AcrobatStanceConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "AcrobatStance"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/AcrobaticsConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/AcrobaticsConfig.java new file mode 100644 index 00000000..a1400edd --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/AcrobaticsConfig.java @@ -0,0 +1,23 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class AcrobaticsConfig extends AbilityConfig { + + public final double FallReductionFactor = 0; + + public AcrobaticsConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "AcrobatStance"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi", "Passives" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ChiAgilityConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ChiAgilityConfig.java new file mode 100644 index 00000000..8834afb9 --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ChiAgilityConfig.java @@ -0,0 +1,24 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class ChiAgilityConfig extends AbilityConfig { + + public final int JumpPower = 0; + public final int SpeedPower = 0; + + public ChiAgilityConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "ChiAgility"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi", "Passives" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ChiSaturationConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ChiSaturationConfig.java new file mode 100644 index 00000000..121e7ae9 --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ChiSaturationConfig.java @@ -0,0 +1,23 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class ChiSaturationConfig extends AbilityConfig { + + public final double ExhaustionFactor = 0; + + public ChiSaturationConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "ChiSaturation"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi", "Passives" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/HighJumpConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/HighJumpConfig.java new file mode 100644 index 00000000..1cc7a01f --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/HighJumpConfig.java @@ -0,0 +1,24 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class HighJumpConfig extends AbilityConfig { + + public final long Cooldown = 0; + public final double Height = 0; + + public HighJumpConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "HighJump"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ImmobilizeConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ImmobilizeConfig.java new file mode 100644 index 00000000..141d7bcf --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ImmobilizeConfig.java @@ -0,0 +1,24 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class ImmobilizeConfig extends AbilityConfig { + + public final long Cooldown = 0; + public final long ParalyzeDuration = 0; + + public ImmobilizeConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "Paralyze"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi", "Combos" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ParalyzeConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ParalyzeConfig.java new file mode 100644 index 00000000..caa9e9e4 --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/ParalyzeConfig.java @@ -0,0 +1,24 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class ParalyzeConfig extends AbilityConfig { + + public final long Cooldown = 0; + public final long Duration = 0; + + public ParalyzeConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "Paralyze"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/QuickStrikeConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/QuickStrikeConfig.java new file mode 100644 index 00000000..5b235d9a --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/QuickStrikeConfig.java @@ -0,0 +1,25 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class QuickStrikeConfig extends AbilityConfig { + + public final long Cooldown = 0; + public final double Damage = 0; + public final double ChiBlockChance = 0; + + public QuickStrikeConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "QuickStrike"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/RapidPunchConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/RapidPunchConfig.java new file mode 100644 index 00000000..8aeb1ad7 --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/RapidPunchConfig.java @@ -0,0 +1,26 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class RapidPunchConfig extends AbilityConfig { + + public final long Cooldown = 0; + public final long Interval = 0; + public final double DamagePerPunch = 0; + public final int TotalPunches = 0; + + public RapidPunchConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "RapidPunch"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/SmokescreenConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/SmokescreenConfig.java new file mode 100644 index 00000000..98057254 --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/SmokescreenConfig.java @@ -0,0 +1,25 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class SmokescreenConfig extends AbilityConfig { + + public final long Cooldown = 0; + public final int Duration = 0; + public final double Radius = 0; + + public SmokescreenConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "Smokescreen"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/SwiftKickConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/SwiftKickConfig.java new file mode 100644 index 00000000..da9e7833 --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/SwiftKickConfig.java @@ -0,0 +1,25 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class SwiftKickConfig extends AbilityConfig { + + public final long Cooldown = 0; + public final double Damage = 0; + public final double ChiBlockChance = 0; + + public SwiftKickConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "SwiftKick"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/WarriorStanceConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/WarriorStanceConfig.java new file mode 100644 index 00000000..e5112257 --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/abilities/chi/WarriorStanceConfig.java @@ -0,0 +1,26 @@ +package com.projectkorra.projectkorra.configuration.better.configs.abilities.chi; + +import com.projectkorra.projectkorra.configuration.better.configs.abilities.AbilityConfig; + +public class WarriorStanceConfig extends AbilityConfig { + + public final long Cooldown = 0; + public final long Duration = 0; + public final int Strength = 0; + public final int Resistance = 0; + + public WarriorStanceConfig() { + super(true, "", ""); + } + + @Override + public String getName() { + return "WarriorStance"; + } + + @Override + public String[] getParents() { + return new String[] { "Abilities", "Chi" }; + } + +} \ No newline at end of file diff --git a/src/com/projectkorra/projectkorra/configuration/better/configs/properties/ChiPropertiesConfig.java b/src/com/projectkorra/projectkorra/configuration/better/configs/properties/ChiPropertiesConfig.java new file mode 100644 index 00000000..3b13c1d0 --- /dev/null +++ b/src/com/projectkorra/projectkorra/configuration/better/configs/properties/ChiPropertiesConfig.java @@ -0,0 +1,20 @@ +package com.projectkorra.projectkorra.configuration.better.configs.properties; + +import com.projectkorra.projectkorra.configuration.better.Config; + +public class ChiPropertiesConfig implements Config { + + public final double BlockChiChance = 0; + public final long BlockChiDuration = 0; + + @Override + public String getName() { + return "Chi"; + } + + @Override + public String[] getParents() { + return new String[] { "Properties" }; + } + +}