From f4d5d88150a993a0e6405fa51365dfa5ebc141a6 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 10 Jul 2016 05:54:32 -0400 Subject: [PATCH] v0.4.1: fixed artifacts not spawning as cursed from remains --- src/com/shatteredpixel/shatteredpixeldungeon/Bones.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/Bones.java b/src/com/shatteredpixel/shatteredpixeldungeon/Bones.java index 1f66f3aa3..e646979b6 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/Bones.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/Bones.java @@ -152,13 +152,14 @@ public class Bones { if (Generator.removeArtifact((Artifact)item)) { try { Artifact artifact = (Artifact)item.getClass().newInstance(); - artifact.cursed = true; - artifact.cursedKnown = true; //caps displayed artifact level artifact.transferUpgrade(Math.min( item.visiblyUpgraded(), 1 + ((Dungeon.depth * 3) / 10))); + artifact.cursed = true; + artifact.cursedKnown = true; + return artifact; } catch (Exception e) { return new Gold(item.price());