v0.3.1: fixed bugs with teleportation, cleaned up Lloyd's beacon sfx
This commit is contained in:
parent
7ec008a03e
commit
4cbdf6e034
|
@ -204,7 +204,6 @@ public class LloydsBeacon extends Artifact {
|
||||||
|
|
||||||
if (Actor.findChar(target) == curUser){
|
if (Actor.findChar(target) == curUser){
|
||||||
ScrollOfTeleportation.teleportHero(curUser);
|
ScrollOfTeleportation.teleportHero(curUser);
|
||||||
Sample.INSTANCE.play(Assets.SND_TELEPORT);
|
|
||||||
curUser.spendAndNext(1f);
|
curUser.spendAndNext(1f);
|
||||||
} else {
|
} else {
|
||||||
final Ballistica bolt = new Ballistica( curUser.pos, target, Ballistica.MAGIC_BOLT );
|
final Ballistica bolt = new Ballistica( curUser.pos, target, Ballistica.MAGIC_BOLT );
|
||||||
|
@ -212,7 +211,6 @@ public class LloydsBeacon extends Artifact {
|
||||||
|
|
||||||
if (ch == curUser){
|
if (ch == curUser){
|
||||||
ScrollOfTeleportation.teleportHero(curUser);
|
ScrollOfTeleportation.teleportHero(curUser);
|
||||||
Sample.INSTANCE.play(Assets.SND_TELEPORT);
|
|
||||||
curUser.spendAndNext( 1f );
|
curUser.spendAndNext( 1f );
|
||||||
} else {
|
} else {
|
||||||
Sample.INSTANCE.play( Assets.SND_ZAP );
|
Sample.INSTANCE.play( Assets.SND_ZAP );
|
||||||
|
@ -233,7 +231,7 @@ public class LloydsBeacon extends Artifact {
|
||||||
}
|
}
|
||||||
} while (pos == -1);
|
} while (pos == -1);
|
||||||
|
|
||||||
if (pos == -1) {
|
if (pos == -1 || Dungeon.bossLevel()) {
|
||||||
|
|
||||||
GLog.w(ScrollOfTeleportation.TXT_NO_TELEPORT);
|
GLog.w(ScrollOfTeleportation.TXT_NO_TELEPORT);
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ public class ScrollOfTeleportation extends Scroll {
|
||||||
}
|
}
|
||||||
} while (pos == -1);
|
} while (pos == -1);
|
||||||
|
|
||||||
if (pos == -1) {
|
if (pos == -1 || Dungeon.bossLevel()) {
|
||||||
|
|
||||||
GLog.w( TXT_NO_TELEPORT );
|
GLog.w( TXT_NO_TELEPORT );
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ public class CursedWand {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} while (pos == -1);
|
} while (pos == -1);
|
||||||
if (pos == -1) {
|
if (pos == -1 || Dungeon.bossLevel()) {
|
||||||
GLog.w(ScrollOfTeleportation.TXT_NO_TELEPORT);
|
GLog.w(ScrollOfTeleportation.TXT_NO_TELEPORT);
|
||||||
} else {
|
} else {
|
||||||
ch.pos = pos;
|
ch.pos = pos;
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class TeleportationTrap extends Trap {
|
||||||
}
|
}
|
||||||
} while (pos == -1);
|
} while (pos == -1);
|
||||||
|
|
||||||
if (pos == -1) {
|
if (pos == -1 || Dungeon.bossLevel()) {
|
||||||
|
|
||||||
GLog.w(ScrollOfTeleportation.TXT_NO_TELEPORT);
|
GLog.w(ScrollOfTeleportation.TXT_NO_TELEPORT);
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class Fadeleaf extends Plant {
|
||||||
}
|
}
|
||||||
} while (newPos == -1);
|
} while (newPos == -1);
|
||||||
|
|
||||||
if (newPos != -1) {
|
if (newPos != -1 && !Dungeon.bossLevel()) {
|
||||||
|
|
||||||
ch.pos = newPos;
|
ch.pos = newPos;
|
||||||
ch.sprite.place( ch.pos );
|
ch.sprite.place( ch.pos );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user