V0.2.0: Buffed ring of Wealth a bit

This commit is contained in:
Evan Debenham 2014-09-14 19:39:26 -04:00
parent 96d5f1000f
commit d1700407c8

View File

@ -596,9 +596,9 @@ public abstract class RegularLevel extends Level {
for (Buff buff : Dungeon.hero.buffs(RingOfWealth.Wealth.class)) { for (Buff buff : Dungeon.hero.buffs(RingOfWealth.Wealth.class)) {
bonus += ((RingOfWealth.Wealth) buff).level; bonus += ((RingOfWealth.Wealth) buff).level;
} }
//just incase someone gets a ridiculous ring, cap this at 75% //just incase someone gets a ridiculous ring, cap this at 80%
bonus = Math.min(bonus, 15); bonus = Math.min(bonus, 10);
while (Random.Float() < (0.3f + bonus*0.03f)) { while (Random.Float() < (0.3f + bonus*0.05f)) {
nItems++; nItems++;
} }