Add Config Options for FireBurst

This commit is contained in:
MistPhizzle 2014-07-29 10:45:01 -04:00
parent 3b9f8b5f2c
commit 5755dd0322
3 changed files with 9 additions and 3 deletions

View file

@ -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 "

View file

@ -24,9 +24,9 @@ public class FireShield {
private static Map<String, Long> cooldowns = new HashMap<String, Long>();
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;

View file

@ -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."