mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Port chi abilities to new configuration system
This commit is contained in:
parent
dc0c295583
commit
d21086a1bc
26 changed files with 419 additions and 87 deletions
|
@ -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<AcrobatStanceConfig> {
|
||||
|
||||
@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) {
|
||||
|
|
|
@ -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<HighJumpConfig> {
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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<ParalyzeConfig> {
|
||||
|
||||
@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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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<QuickStrikeConfig> {
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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<RapidPunchConfig> {
|
||||
|
||||
@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();
|
||||
|
|
|
@ -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<SmokescreenConfig> {
|
||||
|
||||
private static final Map<Integer, Smokescreen> SNOWBALLS = new ConcurrentHashMap<>();
|
||||
private static final Map<String, Long> 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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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<SwiftKickConfig> {
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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<WarriorStanceConfig> {
|
||||
|
||||
@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) {
|
||||
|
|
|
@ -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<ImmobilizeConfig> 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
|
||||
|
|
|
@ -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<AcrobaticsConfig> 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
|
||||
|
|
|
@ -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<ChiAgilityConfig> 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
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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<ChiSaturationConfig> 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
|
||||
|
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
|
@ -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" };
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue