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
@@ -30,6 +30,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.KindOfWeapon;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.Knuckles;
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.sprites.TrapSprite;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
import com.watabou.noosa.audio.Sample;
@@ -37,7 +38,6 @@ import com.watabou.noosa.audio.Sample;
public class DisarmingTrap extends Trap{
{
name = "Disarming trap";
color = TrapSprite.RED;
shape = TrapSprite.LARGE_DOT;
}
@@ -78,7 +78,7 @@ public class DisarmingTrap extends Trap{
Dungeon.level.visited[cell+i] = true;
Dungeon.observe();
GLog.w("Your weapon is teleported away!");
GLog.w( Messages.get(this, "disarm") );
Sample.INSTANCE.play(Assets.SND_TELEPORT);
CellEmitter.get(pos).burst(Speck.factory(Speck.LIGHT), 4);
@@ -88,9 +88,4 @@ public class DisarmingTrap extends Trap{
}
}
}
@Override
public String desc() {
return "This trap contains very specific teleportation magic, which will warp the weapon of its victim to some other location.";
}
}