v0.3.4: externalized all remaining level strings
This commit is contained in:
committed by
Evan Debenham
parent
df293c01e8
commit
36cfd31fde
@@ -21,6 +21,7 @@
|
||||
package com.shatteredpixel.shatteredpixeldungeon.levels;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.traps.*;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.watabou.noosa.Game;
|
||||
import com.watabou.noosa.Group;
|
||||
import com.watabou.noosa.particles.PixelParticle;
|
||||
@@ -205,32 +206,32 @@ public class CavesLevel extends RegularLevel {
|
||||
@Override
|
||||
public String tileName( int tile ) {
|
||||
switch (tile) {
|
||||
case Terrain.GRASS:
|
||||
return "Fluorescent moss";
|
||||
case Terrain.HIGH_GRASS:
|
||||
return "Fluorescent mushrooms";
|
||||
case Terrain.WATER:
|
||||
return "Freezing cold water.";
|
||||
default:
|
||||
return super.tileName( tile );
|
||||
case Terrain.GRASS:
|
||||
return Messages.get(CavesLevel.class, "grass_name");
|
||||
case Terrain.HIGH_GRASS:
|
||||
return Messages.get(CavesLevel.class, "high_grass_name");
|
||||
case Terrain.WATER:
|
||||
return Messages.get(CavesLevel.class, "water_name");
|
||||
default:
|
||||
return super.tileName( tile );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String tileDesc( int tile ) {
|
||||
switch (tile) {
|
||||
case Terrain.ENTRANCE:
|
||||
return "The ladder leads up to the upper depth.";
|
||||
case Terrain.EXIT:
|
||||
return "The ladder leads down to the lower depth.";
|
||||
case Terrain.HIGH_GRASS:
|
||||
return "Huge mushrooms block the view.";
|
||||
case Terrain.WALL_DECO:
|
||||
return "A vein of some ore is visible on the wall. Gold?";
|
||||
case Terrain.BOOKSHELF:
|
||||
return "Who would need a bookshelf in a cave?";
|
||||
default:
|
||||
return super.tileDesc( tile );
|
||||
case Terrain.ENTRANCE:
|
||||
return Messages.get(CavesLevel.class, "entrance_desc");
|
||||
case Terrain.EXIT:
|
||||
return Messages.get(CavesLevel.class, "exit_desc");
|
||||
case Terrain.HIGH_GRASS:
|
||||
return Messages.get(CavesLevel.class, "high_grass_desc");
|
||||
case Terrain.WALL_DECO:
|
||||
return Messages.get(CavesLevel.class, "wall_deco_desc");
|
||||
case Terrain.BOOKSHELF:
|
||||
return Messages.get(CavesLevel.class, "bookshelf_desc");
|
||||
default:
|
||||
return super.tileDesc( tile );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user