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
@@ -29,6 +29,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Chill;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Frost;
import com.shatteredpixel.shatteredpixeldungeon.effects.Splash;
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.sprites.TrapSprite;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
@@ -38,7 +39,6 @@ import com.watabou.utils.Random;
public class FrostTrap extends Trap {
{
name = "Frost trap";
color = TrapSprite.WHITE;
shape = TrapSprite.STARS;
}
@@ -60,13 +60,8 @@ public class FrostTrap extends Trap {
Chill.prolong(ch, Frost.class, 10f + Random.Int(Dungeon.depth));
if (!ch.isAlive() && ch == Dungeon.hero){
Dungeon.fail( Utils.format(ResultDescriptions.TRAP, name) );
GLog.n("You succumb to the freezing trap...");
GLog.n( Messages.get(this, "ondeath") );
}
}
}
@Override
public String desc() {
return "When activated, chemicals in this trap will trigger a powerful snap-frost at its location.";
}
}