v0.6.5: adjusted cave spinners to hopefully prevent web stacking
This commit is contained in:
parent
1225bd3325
commit
a587347102
|
@ -88,8 +88,9 @@ public class Spinner extends Mob {
|
|||
|
||||
@Override
|
||||
public void move(int step) {
|
||||
if (state == FLEEING) {
|
||||
GameScene.add(Blob.seed(pos, Random.Int(5, 7), Web.class));
|
||||
int curWeb = Blob.volumeAt(pos, Web.class);
|
||||
if (state == FLEEING && curWeb < 5) {
|
||||
GameScene.add(Blob.seed(pos, Random.Int(5, 7) - curWeb, Web.class));
|
||||
}
|
||||
super.move(step);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user