Added in randomToggle check to burying bones (#35)

* bandaid fix fletching

* local

* Removed prayer random if user has randoms toggled off.
This commit is contained in:
MitchvanWijngaarden
2019-10-08 19:37:44 +02:00
committed by Daniel Ginovker
parent 4c90e2c6a5
commit d9e3d08ff8
5 changed files with 89 additions and 5 deletions
@@ -55,10 +55,12 @@ public class Prayer {
}
private static void handleBones(final Client c, int i, int slot) {
if (Misc.random(300) == 4 && c.shadeSpawned == false) {
Zombie.spawnZombie(c);
} else if (Misc.random(300) == 2 && c.zombieSpawned == false) {
Shade.spawnShade(c);
if(!c.randomToggle) {
if (Misc.random(300) == 4 && c.shadeSpawned == false) {
Zombie.spawnZombie(c);
} else if (Misc.random(300) == 2 && c.zombieSpawned == false) {
Shade.spawnShade(c);
}
}
for (final int[] element : data) {
if (i == element[0]) {