v0.4.1: fixed projectil weapons being upgraded from piranha rooms
This commit is contained in:
parent
51f75f940f
commit
01f96f3ae0
|
@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
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.Room;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
||||
|
@ -103,7 +104,7 @@ public class PoolPainter extends Painter {
|
|||
} while (prize.cursed);
|
||||
|
||||
//33% chance for an extra update.
|
||||
if (Random.Int(3) == 1){
|
||||
if (!(prize instanceof MissileWeapon) && Random.Int(3) == 0){
|
||||
prize.upgrade();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user