v1.1.0: fixed artifacts being upgraded from golden mimics
This commit is contained in:
parent
f8c76e52d9
commit
9d3cf8744c
|
@ -30,6 +30,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.EquipableItem;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.armor.Armor;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.Artifact;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.Weapon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.missiles.MissileWeapon;
|
||||
|
@ -94,7 +95,7 @@ public class GoldenMimic extends Mimic {
|
|||
if (i instanceof Armor && ((Armor) i).hasCurseGlyph()){
|
||||
((Armor) i).inscribe(null);
|
||||
}
|
||||
if (!(i instanceof MissileWeapon) && i.level() == 0 && Random.Int(2) == 0){
|
||||
if (!(i instanceof MissileWeapon || i instanceof Artifact) && i.level() == 0 && Random.Int(2) == 0){
|
||||
i.upgrade();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user