From b1f7023d78289299688399719af952b177e56ca7 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 6 Mar 2020 23:52:18 -0500 Subject: [PATCH] v0.8.0: fixed incorrect spawn rates from demon spawners, and some items not appearing on floor 21. --- .../shatteredpixeldungeon/actors/mobs/DemonSpawner.java | 2 +- .../com/shatteredpixel/shatteredpixeldungeon/levels/Level.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DemonSpawner.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DemonSpawner.java index 27162ff9d..892daebd2 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DemonSpawner.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DemonSpawner.java @@ -110,7 +110,7 @@ public class DemonSpawner extends Mob { spawnCooldown += 60; if (Dungeon.depth > 21){ //60/53.33/46.67/40 turns to spawn on floor 21/22/23/24 - spawnCooldown -= Math.max(40, (Dungeon.depth-21)*6.67); + spawnCooldown -= Math.min(20, (Dungeon.depth-21)*6.67); } } } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java index cd7d273b2..750f51edd 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -174,7 +174,7 @@ public abstract class Level implements Bundlable { Random.pushGenerator( Dungeon.seedCurDepth() ); - if (!(Dungeon.bossLevel() || Dungeon.depth == 21) /*final shop floor*/) { + if (!(Dungeon.bossLevel())) { if (Dungeon.isChallenged(Challenges.NO_FOOD)){ addItemToSpawn( new SmallRation() );