v0.3.0: corrected and added consistency to crystal chests, now always none-specifically describe their contents.

This commit is contained in:
Evan Debenham 2015-04-07 17:10:50 -04:00 committed by Evan Debenham
parent 00c19d55bd
commit 77c4a7f6ce

View File

@ -18,6 +18,8 @@
package com.shatteredpixel.shatteredpixeldungeon.windows;
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.Artifact;
import com.shatteredpixel.shatteredpixeldungeon.items.rings.Ring;
import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand;
import com.watabou.noosa.BitmapTextMultiline;
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
import com.shatteredpixel.shatteredpixeldungeon.items.Heap.Type;
@ -90,6 +92,10 @@ public class WndInfoItem extends Window {
title = TTL_CRYSTAL_CHEST;
if (heap.peek() instanceof Artifact)
info = Utils.format( TXT_INSIDE, "an artifact" );
else if (heap.peek() instanceof Wand)
info = Utils.format( TXT_INSIDE, "a wand" );
else if (heap.peek() instanceof Ring)
info = Utils.format( TXT_INSIDE, "a ring" );
else
info = Utils.format( TXT_INSIDE, Utils.indefinite( heap.peek().name() ) );
} else {