v0.2.2: gave heroes remains a unique heap type & sprite
This commit is contained in:
@@ -30,18 +30,22 @@ import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
|
||||
|
||||
public class WndInfoItem extends Window {
|
||||
|
||||
private static final String TXT_CHEST = "Chest";
|
||||
private static final String TXT_LOCKED_CHEST = "Locked chest";
|
||||
private static final String TXT_CRYSTAL_CHEST = "Crystal chest";
|
||||
private static final String TXT_TOMB = "Tomb";
|
||||
private static final String TXT_SKELETON = "Skeletal remains";
|
||||
private static final String TTL_CHEST = "Chest";
|
||||
private static final String TTL_LOCKED_CHEST = "Locked chest";
|
||||
private static final String TTL_CRYSTAL_CHEST = "Crystal chest";
|
||||
private static final String TTL_TOMB = "Tomb";
|
||||
private static final String TTL_SKELETON = "Skeletal remains";
|
||||
private static final String TTL_REMAINS = "Heroes remains";
|
||||
private static final String TXT_WONT_KNOW = "You won't know what's inside until you open it!";
|
||||
private static final String TXT_NEED_KEY = TXT_WONT_KNOW + " But to open it you need a golden key.";
|
||||
private static final String TXT_INSIDE = "You can see %s inside, but to open the chest you need a golden key.";
|
||||
private static final String TXT_OWNER =
|
||||
"This ancient tomb may contain something useful, " +
|
||||
"but its owner will most certainly object to checking.";
|
||||
private static final String TXT_REMAINS =
|
||||
private static final String TXT_SKELETON =
|
||||
"This is all that's left of some unfortunate adventurer. " +
|
||||
"Maybe it's worth checking for any valuables.";
|
||||
private static final String TXT_REMAINS =
|
||||
"This is all that's left from one of your predecessors. " +
|
||||
"Maybe it's worth checking for any valuables.";
|
||||
|
||||
@@ -71,22 +75,25 @@ public class WndInfoItem extends Window {
|
||||
String info;
|
||||
|
||||
if (heap.type == Type.CHEST) {
|
||||
title = TXT_CHEST;
|
||||
title = TTL_CHEST;
|
||||
info = TXT_WONT_KNOW;
|
||||
} else if (heap.type == Type.TOMB) {
|
||||
title = TXT_TOMB;
|
||||
title = TTL_TOMB;
|
||||
info = TXT_OWNER;
|
||||
} else if (heap.type == Type.SKELETON) {
|
||||
title = TXT_SKELETON;
|
||||
info = TXT_REMAINS;
|
||||
title = TTL_SKELETON;
|
||||
info = TXT_SKELETON;
|
||||
} else if (heap.type == Type.REMAINS) {
|
||||
title = TTL_REMAINS;
|
||||
info = TXT_REMAINS;
|
||||
} else if (heap.type == Type.CRYSTAL_CHEST) {
|
||||
title = TXT_CRYSTAL_CHEST;
|
||||
title = TTL_CRYSTAL_CHEST;
|
||||
if (heap.peek() instanceof Artifact)
|
||||
info = Utils.format( TXT_INSIDE, "an artifact" );
|
||||
else
|
||||
info = Utils.format( TXT_INSIDE, Utils.indefinite( heap.peek().name() ) );
|
||||
} else {
|
||||
title = TXT_LOCKED_CHEST;
|
||||
title = TTL_LOCKED_CHEST;
|
||||
info = TXT_NEED_KEY;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user