Added boosts to Fishing chance depending on conditions. Also, the

kraken, now with 100% more sound!
This commit is contained in:
GJ
2013-05-01 21:57:42 -04:00
parent 5c026be0cd
commit e7c749ee3a
5 changed files with 47 additions and 4 deletions

View File

@ -1,9 +1,14 @@
package com.gmail.nossr50.runnables.skills;
import org.bukkit.Location;
import org.bukkit.Sound;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.entity.Squid;
import org.bukkit.scheduler.BukkitRunnable;
import com.gmail.nossr50.util.Misc;
public class KrakenAttackTask extends BukkitRunnable {
private Squid kraken;
private Player player;
@ -16,9 +21,13 @@ public class KrakenAttackTask extends BukkitRunnable {
@Override
public void run() {
if (!player.isDead()) {
Location location = player.getLocation();
World world = player.getWorld();
kraken.teleport(player);
player.damage(1, kraken);
player.getWorld().strikeLightningEffect(player.getLocation());
world.playSound(location, Sound.GHAST_SCREAM, Misc.GHAST_VOLUME, Misc.getGhastPitch());
world.strikeLightningEffect(location);
}
else {
kraken.remove();