v2.0.0: fixed demon spawners rarely storing multiple Ripper Demons

This commit is contained in:
Evan Debenham
2022-11-17 12:07:10 -05:00
parent 08079ab6d1
commit ff84cfd220

View File

@@ -96,6 +96,12 @@ public class DemonSpawner extends Mob {
spawnCooldown--;
if (spawnCooldown <= 0){
//we don't want spawners to store multiple ripper demons
if (spawnCooldown < -20){
spawnCooldown = -20;
}
ArrayList<Integer> candidates = new ArrayList<>();
for (int n : PathFinder.NEIGHBOURS8) {
if (Dungeon.level.passable[pos+n] && Actor.findChar( pos+n ) == null) {