mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 03:30:10 +00:00
Make WaterManip Cooldown Configurable
Defaults to 1000 ms (1 second)
This commit is contained in:
parent
2f4dd643cb
commit
34e072240a
3 changed files with 10 additions and 1 deletions
|
@ -262,6 +262,14 @@ public class ConfigManager {
|
|||
config.addDefault("Abilities.Water.WaterBubble.Description","To use, the bender must merely have the ability selected. All water around the user in a small bubble will vanish, replacing itself once the user either gets too far away or selects a different ability.");
|
||||
config.addDefault("Abilities.Water.WaterBubble.Radius", 7);
|
||||
|
||||
config.addDefault("Abilities.Water.WaterManipulation.Enabled", true);
|
||||
config.addDefault("Abilities.Water.WaterManipulation.Description", "To use, place your cursor over a waterbendable object and tap sneak (default: shift). Smoke will appear where you've selected, indicating the origin of your ability. After you have selected an origin, simply left-click in any direction and you will see your water spout off in that direction, slicing any creature in its path. If you look towards a creature when you use this ability, it will target that creature. A collision from Water Manipulation both knocks the target back and deals some damage. Alternatively, if you have the source selected and tap shift again, you will be able to control the water more directly.");
|
||||
config.addDefault("Abilities.Water.WaterManipulation.Damage", 3.0);
|
||||
config.addDefault("Abilities.Water.WaterManipulation.Range", 20);
|
||||
config.addDefault("Abilities.Water.WaterManipulation.Speed", 35);
|
||||
config.addDefault("Abilities.Water.WaterManipulation.Push", 0.3);
|
||||
config.addDefault("Abilities.Water.WaterManipulation.Cooldown", 1000);
|
||||
|
||||
config.addDefault("Abilities.Water.WaterSpout.Enabled", true);
|
||||
config.addDefault("Abilities.Water.WaterSpout.Description", "To use this ability, click while over or in water. "
|
||||
+ "You will spout water up from beneath you to experience controlled levitation. "
|
||||
|
|
|
@ -36,7 +36,7 @@ public class WaterManipulation {
|
|||
private static double pushfactor = config.getDouble("Abilities.Water.WaterManipulation.Push");
|
||||
private static double defaultdamage = config.getDouble("Abilities.Water.WaterManipulation.Damage");
|
||||
private static double speed = config.getDouble("Abilities.Water.WaterManipulation.Speed");
|
||||
private static long cooldown = config.getLong("Properties.GlobalCooldown");
|
||||
private static long cooldown = config.getLong("Abilities.Water.WaterManipulation.Cooldown");
|
||||
private static long interval = (long) (1000. / speed);
|
||||
private static final double deflectrange = 3;
|
||||
// private static double speed = 1.5;
|
||||
|
|
|
@ -198,6 +198,7 @@ Abilities:
|
|||
Range: 20
|
||||
Speed: 35
|
||||
Push: .3
|
||||
Cooldown: 1000
|
||||
WaterSpout:
|
||||
Enabled: true
|
||||
Description: "To use this ability, click while over or in water. You will spout water up from beneath you to experience controlled levitation. This ability is a toggle, so you can activate it then use other abilities and it will remain on. If you try to spout over an area with no water, snow, or ice, the spout will dissipate and you will fall. Click again with this ability selected to deactivate it."
|
||||
|
|
Loading…
Reference in a new issue