mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-15 05:17:53 +00:00
Clean up Waterbending Sounds
This commit is contained in:
parent
7bfe129ceb
commit
c30df35a87
7 changed files with 39 additions and 40 deletions
|
@ -7,7 +7,6 @@ import org.bukkit.Effect;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.configuration.MemorySection;
|
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
|
@ -174,10 +174,6 @@ public class OctopusForm {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Methods.rand.nextInt(4) == 0) {
|
|
||||||
Methods.playWaterbendingSound(player.getLocation());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (System.currentTimeMillis() > time + interval) {
|
if (System.currentTimeMillis() > time + interval) {
|
||||||
time = System.currentTimeMillis();
|
time = System.currentTimeMillis();
|
||||||
|
|
||||||
|
@ -237,11 +233,17 @@ public class OctopusForm {
|
||||||
} else {
|
} else {
|
||||||
angle += 20;
|
angle += 20;
|
||||||
}
|
}
|
||||||
|
if (Methods.rand.nextInt(4) == 0) {
|
||||||
|
Methods.playWaterbendingSound(player.getLocation());
|
||||||
|
}
|
||||||
formOctopus();
|
formOctopus();
|
||||||
if (y == 2) {
|
if (y == 2) {
|
||||||
incrementStep();
|
incrementStep();
|
||||||
}
|
}
|
||||||
} else if (formed) {
|
} else if (formed) {
|
||||||
|
if (Methods.rand.nextInt(7) == 0) {
|
||||||
|
Methods.playWaterbendingSound(player.getLocation());
|
||||||
|
}
|
||||||
step += 1;
|
step += 1;
|
||||||
if (step % inc == 0)
|
if (step % inc == 0)
|
||||||
animstep += 1;
|
animstep += 1;
|
||||||
|
|
|
@ -115,10 +115,6 @@ public class Torrent {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Methods.rand.nextInt(4) == 0) {
|
|
||||||
Methods.playWaterbendingSound(location);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (System.currentTimeMillis() > time + interval) {
|
if (System.currentTimeMillis() > time + interval) {
|
||||||
time = System.currentTimeMillis();
|
time = System.currentTimeMillis();
|
||||||
|
|
||||||
|
@ -210,6 +206,9 @@ public class Torrent {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (forming || formed) {
|
if (forming || formed) {
|
||||||
|
if (Methods.rand.nextInt(4) == 0) {
|
||||||
|
Methods.playWaterbendingSound(location);
|
||||||
|
}
|
||||||
if (angle < 220) {
|
if (angle < 220) {
|
||||||
angle += 20;
|
angle += 20;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -153,7 +153,7 @@ public class TorrentBurst {
|
||||||
}
|
}
|
||||||
|
|
||||||
for(Block sound : torrentblocks) {
|
for(Block sound : torrentblocks) {
|
||||||
if (Methods.rand.nextInt(4) == 0) {
|
if (Methods.rand.nextInt(50) == 0) {
|
||||||
Methods.playWaterbendingSound(sound.getLocation());
|
Methods.playWaterbendingSound(sound.getLocation());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -240,10 +240,6 @@ public class WaterWall {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Methods.rand.nextInt(4) == 0) {
|
|
||||||
Methods.playWaterbendingSound(location);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (System.currentTimeMillis() - time >= interval) {
|
if (System.currentTimeMillis() - time >= interval) {
|
||||||
time = System.currentTimeMillis();
|
time = System.currentTimeMillis();
|
||||||
|
|
||||||
|
@ -274,6 +270,9 @@ public class WaterWall {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (forming) {
|
if (forming) {
|
||||||
|
if (Methods.rand.nextInt(7) == 0) {
|
||||||
|
Methods.playWaterbendingSound(location);
|
||||||
|
}
|
||||||
ArrayList<Block> blocks = new ArrayList<Block>();
|
ArrayList<Block> blocks = new ArrayList<Block>();
|
||||||
Location loc = Methods.getTargetedLocation(player, (int) range, 8, 9, 79);
|
Location loc = Methods.getTargetedLocation(player, (int) range, 8, 9, 79);
|
||||||
location = loc.clone();
|
location = loc.clone();
|
||||||
|
|
|
@ -249,7 +249,7 @@ public class Wave {
|
||||||
FireBlast.removeFireBlastsAroundPoint(block.getLocation(), 2);
|
FireBlast.removeFireBlastsAroundPoint(block.getLocation(), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Methods.rand.nextInt(4) == 0) {
|
if (Methods.rand.nextInt(15) == 0) {
|
||||||
Methods.playWaterbendingSound(location);
|
Methods.playWaterbendingSound(location);
|
||||||
}
|
}
|
||||||
// if (!blocks.contains(block)
|
// if (!blocks.contains(block)
|
||||||
|
|
Loading…
Reference in a new issue