v0.3.1: adjusted how special floors handle random respawn cell logic.
This commit is contained in:
committed by
Evan Debenham
parent
f4c93c369c
commit
c3513b5870
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user