v0.8.0: fixed incorrect spawn rates from demon spawners, and some items not appearing on floor 21.

This commit is contained in:
Evan Debenham 2020-03-06 23:52:18 -05:00
parent 44af718f92
commit b1f7023d78
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}
}

View File

@ -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() );