v0.3.1: adjusted how special floors handle random respawn cell logic.

This commit is contained in:
Evan Debenham
2015-08-17 03:28:01 -04:00
committed by Evan Debenham
parent f4c93c369c
commit c3513b5870
8 changed files with 33 additions and 7 deletions
@@ -169,7 +169,11 @@ public class CityBossLevel extends Level {
@Override
public int randomRespawnCell() {
return -1;
int cell = entrance + NEIGHBOURS8[Random.Int(8)];
while (!passable[cell]){
cell = entrance + NEIGHBOURS8[Random.Int(8)];
}
return cell;
}
@Override