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