From 65edd066e30fbb8c76510c58f22b2b50eeee6661 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 14 Oct 2017 19:00:32 -0400 Subject: [PATCH] v0.6.2: reduced droprate of blandfruit seeds --- .../shatteredpixel/shatteredpixeldungeon/items/Generator.java | 2 +- .../shatteredpixeldungeon/items/wands/WandOfRegrowth.java | 2 +- .../shatteredpixeldungeon/levels/features/HighGrass.java | 2 +- .../com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java index fae0af47f..f23dc723d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java @@ -360,7 +360,7 @@ public class Generator { Dreamfoil.Seed.class, Stormvine.Seed.class, Starflower.Seed.class}; - SEED.probs = new float[]{ 12, 12, 12, 12, 12, 12, 12, 0, 4, 12, 12, 1 }; + SEED.probs = new float[]{ 12, 12, 12, 12, 12, 12, 12, 0, 3, 12, 12, 1 }; } } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java index 739ad2fba..8c310dbac 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java @@ -130,7 +130,7 @@ public class WandOfRegrowth extends Wand { Plant.Seed seed = (Plant.Seed) Generator.random(Generator.Category.SEED); if (seed instanceof BlandfruitBush.Seed) { - if (Random.Int(15) - Dungeon.LimitedDrops.BLANDFRUIT_SEED.count >= 0) { + if (Random.Int(5) - Dungeon.LimitedDrops.BLANDFRUIT_SEED.count >= 0) { floor.plant(seed, cells.next()); Dungeon.LimitedDrops.BLANDFRUIT_SEED.count++; } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/features/HighGrass.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/features/HighGrass.java index 699a4576b..6c0385aa3 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/features/HighGrass.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/features/HighGrass.java @@ -69,7 +69,7 @@ public class HighGrass { Item seed = Generator.random(Generator.Category.SEED); if (seed instanceof BlandfruitBush.Seed) { - if (Random.Int(15) - Dungeon.LimitedDrops.BLANDFRUIT_SEED.count >= 0) { + if (Random.Int(5) - Dungeon.LimitedDrops.BLANDFRUIT_SEED.count >= 0) { level.drop(seed, pos).sprite.drop(); Dungeon.LimitedDrops.BLANDFRUIT_SEED.count++; } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java index 00fa55937..97d03af09 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java @@ -89,7 +89,7 @@ public abstract class Plant implements Bundlable { Item seed = Generator.random(Generator.Category.SEED); if (seed instanceof BlandfruitBush.Seed) { - if (Random.Int(15) - Dungeon.LimitedDrops.BLANDFRUIT_SEED.count >= 0) { + if (Random.Int(5) - Dungeon.LimitedDrops.BLANDFRUIT_SEED.count >= 0) { Dungeon.level.drop(seed, pos).sprite.drop(); Dungeon.LimitedDrops.BLANDFRUIT_SEED.count++; }