diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RatKingPainter.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RatKingPainter.java index 625f92553..c8779ce92 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RatKingPainter.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RatKingPainter.java @@ -21,11 +21,9 @@ package com.shatteredpixel.shatteredpixeldungeon.levels.painters; import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.RatKing; -import com.shatteredpixel.shatteredpixeldungeon.items.Generator; import com.shatteredpixel.shatteredpixeldungeon.items.Gold; import com.shatteredpixel.shatteredpixeldungeon.items.Heap; import com.shatteredpixel.shatteredpixeldungeon.items.Item; -import com.shatteredpixel.shatteredpixeldungeon.items.weapon.missiles.MissileWeapon; import com.shatteredpixel.shatteredpixeldungeon.levels.Level; import com.shatteredpixel.shatteredpixeldungeon.levels.Room; import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain; @@ -66,23 +64,7 @@ public class RatKingPainter extends Painter { return; } - Item prize; - switch (Random.Int( 10 )) { - case 0: - prize = Generator.random( Generator.Category.WEAPON ); - if (prize instanceof MissileWeapon) { - prize.quantity( 1 ); - } else { - prize.degrade( Random.Int( 3 ) ); - } - break; - case 1: - prize = Generator.random( Generator.Category.ARMOR ).degrade( Random.Int( 3 ) ); - break; - default: - prize = new Gold( Random.IntRange( 1, 5 ) ); - break; - } + Item prize = new Gold( Random.IntRange( 1, 25 ) ); level.drop( prize, pos ).type = Heap.Type.CHEST; }