From 9d4f65cec95750ca149f81e18bd3da15ac7205f1 Mon Sep 17 00:00:00 2001 From: Charlie Wang Date: Sun, 30 Jun 2013 18:44:25 -0400 Subject: [PATCH] more sounds, state change is now twice as fast --- src/gibstick/bukkit/discosheep/DiscoSheep.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gibstick/bukkit/discosheep/DiscoSheep.java b/src/gibstick/bukkit/discosheep/DiscoSheep.java index b8daf64..6b26082 100644 --- a/src/gibstick/bukkit/discosheep/DiscoSheep.java +++ b/src/gibstick/bukkit/discosheep/DiscoSheep.java @@ -33,8 +33,8 @@ public final class DiscoSheep extends JavaPlugin { // radius for random sheep spawns around player private final int sheepSpawnRadius = 5; private final int defaultSheepAmount = 10; - private final int defaultDuration = 300;// ticks - private final int defaultFrequency = 20;// ticks per state change + private final int defaultDuration = 300; // ticks for entire party + private final int defaultFrequency = 10; // ticks per state change private int frequency = 0, duration = 0; @Override @@ -99,7 +99,8 @@ public final class DiscoSheep extends JavaPlugin { void playSounds() { for(Player player: getPlayers()){ - player.playSound(player.getLocation(), Sound.BURP, 1.0f, 1.0f); + player.playSound(player.getLocation(), Sound.NOTE_BASS_DRUM, 1.0f, 1.0f); + player.playSound(player.getLocation(), Sound.BURP, frequency,(float) Math.random() + 1); } }