v0.3.5: fixed a bug with artifacts in heroes remains

This commit is contained in:
Evan Debenham 2016-04-19 00:07:22 -04:00
parent 13df6a61f0
commit 637d6b62ee

View File

@ -159,7 +159,7 @@ public class Bones {
item.visiblyUpgraded(), item.visiblyUpgraded(),
1 + ((Dungeon.depth * 3) / 10))); 1 + ((Dungeon.depth * 3) / 10)));
return item; return artifact;
} catch (Exception e) { } catch (Exception e) {
return new Gold(item.price()); return new Gold(item.price());
} }
@ -168,7 +168,7 @@ public class Bones {
} }
} }
if (item.isUpgradable() || item instanceof Artifact) { if (item.isUpgradable()) {
item.cursed = true; item.cursed = true;
item.cursedKnown = true; item.cursedKnown = true;
if (item.isUpgradable()) { if (item.isUpgradable()) {