v0.4.1: fixed artifacts not spawning as cursed from remains
This commit is contained in:
parent
b61d1abef9
commit
f4d5d88150
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user