From 968603d54f687a74aa33b15db9f9be43278c41cf Mon Sep 17 00:00:00 2001 From: Charlie Wang Date: Fri, 12 Jul 2013 09:28:50 -0400 Subject: [PATCH] sheep have 50% chance to jump every 2 state changes --- src/gibstick/bukkit/discosheep/DiscoParty.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gibstick/bukkit/discosheep/DiscoParty.java b/src/gibstick/bukkit/discosheep/DiscoParty.java index 2d9f015..2bcdd0f 100644 --- a/src/gibstick/bukkit/discosheep/DiscoParty.java +++ b/src/gibstick/bukkit/discosheep/DiscoParty.java @@ -180,10 +180,8 @@ public class DiscoParty { } if (doJump) { - if (state % 4 == 0) { - if ((state % 8 == 0) && (i % 2 == 0)) { - jumpSheep(sheep); - } else if (i % 2 != 0) { + if (state % 2 == 0) { + if (Math.random() < 0.5) { jumpSheep(sheep); } }