v0.4.1: fixed artifacts not spawning as cursed from remains

This commit is contained in:
Evan Debenham 2016-07-10 05:54:32 -04:00 committed by Evan Debenham
parent b61d1abef9
commit f4d5d88150

View File

@ -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());