v0.3.0: corrected and added consistency to crystal chests, now always none-specifically describe their contents.
This commit is contained in:
parent
00c19d55bd
commit
77c4a7f6ce
|
@ -18,6 +18,8 @@
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.windows;
|
package com.shatteredpixel.shatteredpixeldungeon.windows;
|
||||||
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.Artifact;
|
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.watabou.noosa.BitmapTextMultiline;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
|
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.Heap.Type;
|
import com.shatteredpixel.shatteredpixeldungeon.items.Heap.Type;
|
||||||
|
@ -90,6 +92,10 @@ public class WndInfoItem extends Window {
|
||||||
title = TTL_CRYSTAL_CHEST;
|
title = TTL_CRYSTAL_CHEST;
|
||||||
if (heap.peek() instanceof Artifact)
|
if (heap.peek() instanceof Artifact)
|
||||||
info = Utils.format( TXT_INSIDE, "an 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
|
else
|
||||||
info = Utils.format( TXT_INSIDE, Utils.indefinite( heap.peek().name() ) );
|
info = Utils.format( TXT_INSIDE, Utils.indefinite( heap.peek().name() ) );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user