V0.2.0: Tied artifact drops into rooms
This commit is contained in:
parent
56c1995bff
commit
ad8d15b483
|
@ -56,10 +56,12 @@ public class PitPainter extends Painter {
|
|||
}
|
||||
|
||||
level.drop( new IronKey( Dungeon.depth ), remains ).type = Type.SKELETON;
|
||||
|
||||
if (Random.Int( 5 ) == 0) {
|
||||
int loot = Random.Int( 3 );
|
||||
if (loot == 0) {
|
||||
level.drop( Generator.random( Generator.Category.RING ), remains );
|
||||
} else {
|
||||
} else if (loot == 1) {
|
||||
level.drop( Generator.random( Generator.Category.ARTIFACT ), remains );
|
||||
} else {
|
||||
level.drop( Generator.random( Random.oneOf(
|
||||
Generator.Category.WEAPON,
|
||||
Generator.Category.ARMOR
|
||||
|
|
|
@ -70,7 +70,8 @@ public class VaultPainter extends Painter {
|
|||
private static Item prize( Level level ) {
|
||||
return Generator.random( Random.oneOf(
|
||||
Generator.Category.WAND,
|
||||
Generator.Category.RING
|
||||
Generator.Category.RING,
|
||||
Generator.Category.ARTIFACT
|
||||
) );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user