v0.4.1: fixed projectil weapons being upgraded from piranha rooms

This commit is contained in:
Evan Debenham 2016-07-23 05:23:34 -04:00 committed by Evan Debenham
parent 51f75f940f
commit 01f96f3ae0

View File

@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
import com.shatteredpixel.shatteredpixeldungeon.items.Heap; import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
import com.shatteredpixel.shatteredpixeldungeon.items.Item; import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfInvisibility; import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfInvisibility;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.missiles.MissileWeapon;
import com.shatteredpixel.shatteredpixeldungeon.levels.Level; import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.shatteredpixel.shatteredpixeldungeon.levels.Room; import com.shatteredpixel.shatteredpixeldungeon.levels.Room;
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain; import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
@ -103,7 +104,7 @@ public class PoolPainter extends Painter {
} while (prize.cursed); } while (prize.cursed);
//33% chance for an extra update. //33% chance for an extra update.
if (Random.Int(3) == 1){ if (!(prize instanceof MissileWeapon) && Random.Int(3) == 0){
prize.upgrade(); prize.upgrade();
} }