diff --git a/src/com/projectkorra/ProjectKorra/ConfigManager.java b/src/com/projectkorra/ProjectKorra/ConfigManager.java index 5f632b08..29a2a842 100644 --- a/src/com/projectkorra/ProjectKorra/ConfigManager.java +++ b/src/com/projectkorra/ProjectKorra/ConfigManager.java @@ -437,6 +437,9 @@ public class ConfigManager { + "attacks and bending. Alternatively, pressing and holding " + "sneak creates a very small shield of fire, blocking most attacks. " + "Creatures that contact this fire are ignited."); + config.addDefault("Abilities.Fire.FireShield.Radius", 3); + config.addDefault("Abilities.Fire.FireShield.DiscRadius", 1.5); + config.addDefault("Abilities.Fire.FireShield.Duration", 1000); config.addDefault("Abilities.Fire.HeatControl.Enabled", true); config.addDefault("Abilities.Fire.HeatControl.Description", "While this ability is selected, the firebender becomes impervious " diff --git a/src/com/projectkorra/ProjectKorra/firebending/FireShield.java b/src/com/projectkorra/ProjectKorra/firebending/FireShield.java index 96ff793c..9c4dda3b 100644 --- a/src/com/projectkorra/ProjectKorra/firebending/FireShield.java +++ b/src/com/projectkorra/ProjectKorra/firebending/FireShield.java @@ -24,9 +24,9 @@ public class FireShield { private static Map cooldowns = new HashMap(); private static long interval = 100; - private static long duration = 1000; - private static double radius = 3; - private static double discradius = 1.5; + private static long duration = ProjectKorra.plugin.getConfig().getLong("Abilities.Fire.FireShield.Duration"); + private static double radius = ProjectKorra.plugin.getConfig().getDouble("Abilities.Fire.FireShield.Radius"); + private static double discradius = ProjectKorra.plugin.getConfig().getDouble("Abilities.Fire.FireShield.DiscRadius"); private static boolean ignite = true; private Player player; diff --git a/src/config.yml b/src/config.yml index 5a662e8e..19beef5e 100644 --- a/src/config.yml +++ b/src/config.yml @@ -316,6 +316,9 @@ Abilities: FireShield: Enabled: true Description: "FireShield is a basic defensive ability. Clicking with this ability selected will create a small disc of fire in front of you, which will block most attacks and bending. Alternatively, pressing and holding sneak creates a very small shield of fire, blocking most attacks. Creatures that contact this fire are ignited." + Radius: 3 + DiscRadius: 1.5 + Duration: 1000 HeatControl: Enabled: true Description: "While this ability is selected, the firebender becomes impervious to fire damage and cannot be ignited. If the user left-clicks with this ability, the targeted area will be extinguished, although it will leave any creature burning engulfed in flames. This ability can also cool lava. If this ability is used while targeting ice or snow, it will instead melt blocks in that area. Finally, sneaking with this ability will cook any food in your hand."