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)) {
|
if (Generator.removeArtifact((Artifact)item)) {
|
||||||
try {
|
try {
|
||||||
Artifact artifact = (Artifact)item.getClass().newInstance();
|
Artifact artifact = (Artifact)item.getClass().newInstance();
|
||||||
artifact.cursed = true;
|
|
||||||
artifact.cursedKnown = true;
|
|
||||||
//caps displayed artifact level
|
//caps displayed artifact level
|
||||||
artifact.transferUpgrade(Math.min(
|
artifact.transferUpgrade(Math.min(
|
||||||
item.visiblyUpgraded(),
|
item.visiblyUpgraded(),
|
||||||
1 + ((Dungeon.depth * 3) / 10)));
|
1 + ((Dungeon.depth * 3) / 10)));
|
||||||
|
|
||||||
|
artifact.cursed = true;
|
||||||
|
artifact.cursedKnown = true;
|
||||||
|
|
||||||
return artifact;
|
return artifact;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return new Gold(item.price());
|
return new Gold(item.price());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user