V0.2.0: Buffed ring of Wealth a bit
This commit is contained in:
parent
96d5f1000f
commit
d1700407c8
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user