v0.3.1: fixed bugs with teleportation, cleaned up Lloyd's beacon sfx

This commit is contained in:
Evan Debenham 2015-08-17 16:46:40 -04:00
parent 7ec008a03e
commit 4cbdf6e034
5 changed files with 5 additions and 7 deletions

View File

@ -204,7 +204,6 @@ public class LloydsBeacon extends Artifact {
if (Actor.findChar(target) == curUser){
ScrollOfTeleportation.teleportHero(curUser);
Sample.INSTANCE.play(Assets.SND_TELEPORT);
curUser.spendAndNext(1f);
} else {
final Ballistica bolt = new Ballistica( curUser.pos, target, Ballistica.MAGIC_BOLT );
@ -212,7 +211,6 @@ public class LloydsBeacon extends Artifact {
if (ch == curUser){
ScrollOfTeleportation.teleportHero(curUser);
Sample.INSTANCE.play(Assets.SND_TELEPORT);
curUser.spendAndNext( 1f );
} else {
Sample.INSTANCE.play( Assets.SND_ZAP );
@ -233,7 +231,7 @@ public class LloydsBeacon extends Artifact {
}
} while (pos == -1);
if (pos == -1) {
if (pos == -1 || Dungeon.bossLevel()) {
GLog.w(ScrollOfTeleportation.TXT_NO_TELEPORT);

View File

@ -66,7 +66,7 @@ public class ScrollOfTeleportation extends Scroll {
}
} while (pos == -1);
if (pos == -1) {
if (pos == -1 || Dungeon.bossLevel()) {
GLog.w( TXT_NO_TELEPORT );

View File

@ -164,7 +164,7 @@ public class CursedWand {
break;
}
} while (pos == -1);
if (pos == -1) {
if (pos == -1 || Dungeon.bossLevel()) {
GLog.w(ScrollOfTeleportation.TXT_NO_TELEPORT);
} else {
ch.pos = pos;

View File

@ -64,7 +64,7 @@ public class TeleportationTrap extends Trap {
}
} while (pos == -1);
if (pos == -1) {
if (pos == -1 || Dungeon.bossLevel()) {
GLog.w(ScrollOfTeleportation.TXT_NO_TELEPORT);

View File

@ -62,7 +62,7 @@ public class Fadeleaf extends Plant {
}
} while (newPos == -1);
if (newPos != -1) {
if (newPos != -1 && !Dungeon.bossLevel()) {
ch.pos = newPos;
ch.sprite.place( ch.pos );