v0.3.4: externalized painter and trap strings

This commit is contained in:
Evan Debenham
2015-12-30 04:41:18 -05:00
committed by Evan Debenham
parent e7934c838f
commit df293c01e8
36 changed files with 122 additions and 262 deletions
@@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.MagesStaff;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.sprites.TrapSprite;
import com.watabou.noosa.Camera;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
@@ -44,7 +45,6 @@ import java.util.ArrayList;
public class LightningTrap extends Trap {
{
name = "Lightning trap";
color = TrapSprite.TEAL;
shape = TrapSprite.CROSSHAIR;
}
@@ -62,7 +62,7 @@ public class LightningTrap extends Trap {
if (!ch.isAlive()) {
Dungeon.fail( Utils.format( ResultDescriptions.TRAP, name ) );
GLog.n( "You were killed by a discharge of a lightning trap..." );
GLog.n( Messages.get(this, "ondeath") );
}
}
@@ -90,10 +90,4 @@ public class LightningTrap extends Trap {
public static final Electricity LIGHTNING = new Electricity();
public static class Electricity {
}
@Override
public String desc() {
return "A mechanism with a large amount of energy stored into it. " +
"Triggering the trap will discharge that energy into whatever activates it.";
}
}