V0.2.0: Corrected a bug with Ring of Wealth functionality (< instead of >, i'm dumb =S)
This commit is contained in:
parent
a15fc5a0a5
commit
4dcb086ea8
|
@ -176,7 +176,7 @@ public abstract class Level implements Bundlable {
|
||||||
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;
|
||||||
}
|
}
|
||||||
if (Random.Float() < Math.pow(0.95, bonus)){
|
if (Random.Float() > Math.pow(0.95, bonus)){
|
||||||
if (Random.Int(2) == 0)
|
if (Random.Int(2) == 0)
|
||||||
addItemToSpawn( new ScrollOfWeaponUpgrade() );
|
addItemToSpawn( new ScrollOfWeaponUpgrade() );
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user