V0.2.0: Tied artifact drops into rooms

This commit is contained in:
Evan Debenham
2014-09-14 20:43:13 -04:00
parent 56c1995bff
commit ad8d15b483
3 changed files with 12 additions and 5 deletions
@@ -17,6 +17,7 @@
*/
package com.shatteredpixel.shatteredpixeldungeon.windows;
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.Artifact;
import com.watabou.noosa.BitmapTextMultiline;
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
import com.shatteredpixel.shatteredpixeldungeon.items.Heap.Type;
@@ -80,7 +81,10 @@ public class WndInfoItem extends Window {
info = TXT_REMAINS;
} else if (heap.type == Type.CRYSTAL_CHEST) {
title = TXT_CRYSTAL_CHEST;
info = Utils.format( TXT_INSIDE, Utils.indefinite( heap.peek().name() ) );
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;
info = TXT_NEED_KEY;