v0.3.4: externalized painter and trap strings
This commit is contained in:
committed by
Evan Debenham
parent
e7934c838f
commit
df293c01e8
@@ -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.";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user