v1.4.2: reverted spinner changes for the moment, was causing crashes
This commit is contained in:
+2
-9
@@ -132,15 +132,13 @@ public class Spinner extends Mob {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean shotWebVisually = false;
|
private boolean shotWebVisually = false;
|
||||||
private int visualWebPos = -1;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void move(int step, boolean travelling) {
|
public void move(int step, boolean travelling) {
|
||||||
if (travelling && enemySeen && webCoolDown <= 0 && lastEnemyPos != -1){
|
if (travelling && enemySeen && webCoolDown <= 0 && lastEnemyPos != -1){
|
||||||
if (webPos() != -1){
|
if (webPos() != -1){
|
||||||
if (sprite != null && (sprite.visible || enemy.sprite.visible)) {
|
if (sprite != null && (sprite.visible || enemy.sprite.visible)) {
|
||||||
visualWebPos = webPos();
|
sprite.zap( webPos() );
|
||||||
sprite.zap(visualWebPos);
|
|
||||||
shotWebVisually = true;
|
shotWebVisually = true;
|
||||||
} else {
|
} else {
|
||||||
shootWeb();
|
shootWeb();
|
||||||
@@ -152,13 +150,9 @@ public class Spinner extends Mob {
|
|||||||
|
|
||||||
public int webPos(){
|
public int webPos(){
|
||||||
|
|
||||||
if (visualWebPos != -1){
|
|
||||||
return visualWebPos;
|
|
||||||
}
|
|
||||||
|
|
||||||
Char enemy = this.enemy;
|
Char enemy = this.enemy;
|
||||||
if (enemy == null) return -1;
|
if (enemy == null) return -1;
|
||||||
|
|
||||||
Ballistica b;
|
Ballistica b;
|
||||||
//aims web in direction enemy is moving, or between self and enemy if they aren't moving
|
//aims web in direction enemy is moving, or between self and enemy if they aren't moving
|
||||||
if (lastEnemyPos == enemy.pos){
|
if (lastEnemyPos == enemy.pos){
|
||||||
@@ -216,7 +210,6 @@ public class Spinner extends Mob {
|
|||||||
if (Dungeon.level.heroFOV[enemy.pos]){
|
if (Dungeon.level.heroFOV[enemy.pos]){
|
||||||
Dungeon.hero.interrupt();
|
Dungeon.hero.interrupt();
|
||||||
}
|
}
|
||||||
visualWebPos = -1;
|
|
||||||
}
|
}
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|||||||
-1
@@ -123,7 +123,6 @@ public class v1_X_Changes {
|
|||||||
"_-_ Recharging effects sometimes getting an extra action on game load\n" +
|
"_-_ Recharging effects sometimes getting an extra action on game load\n" +
|
||||||
"_-_ Screen orientation changes cancelling the scroll of enchantment\n" +
|
"_-_ Screen orientation changes cancelling the scroll of enchantment\n" +
|
||||||
"_-_ Magical infusion incorrectly clearing curses on wands and rings\n" +
|
"_-_ Magical infusion incorrectly clearing curses on wands and rings\n" +
|
||||||
"_-_ Spinners failing to shoot webs in rare cases\n" +
|
|
||||||
"_-_ Projecting weapons not reaching through webs in rare cases\n" +
|
"_-_ Projecting weapons not reaching through webs in rare cases\n" +
|
||||||
"_-_ Death by necromancer summoning damage not producing a record in rankings"));
|
"_-_ Death by necromancer summoning damage not producing a record in rankings"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user