v0.4.1: fixed a bug where +1 items were being genned as +0

This commit is contained in:
Evan Debenham 2016-06-24 12:40:33 -04:00
parent e7b5b7e36e
commit a6c6b8c6e3
2 changed files with 2 additions and 6 deletions

View File

@ -27,7 +27,6 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
import com.shatteredpixel.shatteredpixeldungeon.effects.Speck;
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.ShadowParticle;
import com.shatteredpixel.shatteredpixeldungeon.items.BrokenSeal;
import com.shatteredpixel.shatteredpixeldungeon.items.EquipableItem;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
@ -321,7 +320,7 @@ public class Armor extends EquipableItem {
//45% chance to be level 0
} else if (roll < 0.95f){
//15% chance to be +1
upgrade(0);
upgrade(1);
} else {
//5% chance to be +2
upgrade(2);

View File

@ -21,12 +21,9 @@
package com.shatteredpixel.shatteredpixeldungeon.items.weapon;
import com.shatteredpixel.shatteredpixeldungeon.Badges;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.ShadowParticle;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.KindOfWeapon;
import com.shatteredpixel.shatteredpixeldungeon.items.rings.RingOfFuror;
@ -226,7 +223,7 @@ abstract public class Weapon extends KindOfWeapon {
//45% chance to be level 0
} else if (roll < 0.95f){
//15% chance to be +1
upgrade(0);
upgrade(1);
} else {
//5% chance to be +2
upgrade(2);