v0.3.4: externalized all remaining level strings
This commit is contained in:
committed by
Evan Debenham
parent
df293c01e8
commit
36cfd31fde
@@ -29,6 +29,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Room.Type;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||
import com.watabou.noosa.Group;
|
||||
import com.watabou.utils.Bundle;
|
||||
@@ -284,24 +285,26 @@ public class SewerBossLevel extends RegularLevel {
|
||||
stairs = bundle.getInt( STAIRS );
|
||||
roomExit = roomEntrance;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String tileName( int tile ) {
|
||||
switch (tile) {
|
||||
case Terrain.WATER:
|
||||
return "Murky water";
|
||||
default:
|
||||
return super.tileName( tile );
|
||||
case Terrain.WATER:
|
||||
return Messages.get(SewerLevel.class, "water_name");
|
||||
default:
|
||||
return super.tileName( tile );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String tileDesc( int tile ) {
|
||||
public String tileDesc(int tile) {
|
||||
switch (tile) {
|
||||
case Terrain.EMPTY_DECO:
|
||||
return "Wet yellowish moss covers the floor.";
|
||||
default:
|
||||
return super.tileDesc( tile );
|
||||
case Terrain.EMPTY_DECO:
|
||||
return Messages.get(SewerLevel.class, "empty_deco_desc");
|
||||
case Terrain.BOOKSHELF:
|
||||
return Messages.get(SewerLevel.class, "bookshelf_desc");
|
||||
default:
|
||||
return super.tileDesc( tile );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user