v0.4.1: improved the quality of drops from piranha rooms

This commit is contained in:
Evan Debenham 2016-06-25 15:17:21 -04:00
parent 28fdc38a73
commit 8884114442

View File

@ -93,15 +93,17 @@ public class PoolPainter extends Painter {
return prize; return prize;
} }
//1 floor set higher in probability //1 floor set higher in probability, never cursed
if (Random.Int(2) == 0){ do {
prize = Generator.randomWeapon((Dungeon.depth / 5)+1); if (Random.Int(2) == 0) {
} else { prize = Generator.randomWeapon((Dungeon.depth / 5) + 1);
prize = Generator.randomArmor((Dungeon.depth / 5)+1); } else {
} prize = Generator.randomArmor((Dungeon.depth / 5) + 1);
}
} while (prize.cursed);
//if not cursed, 50% chance for an extra update. //33% chance for an extra update.
if (!prize.cursed && Random.Int(0) == 1){ if (Random.Int(3) == 1){
prize.upgrade(); prize.upgrade();
} }