v0.3.5: fixed a bug with artifacts in heroes remains
This commit is contained in:
parent
13df6a61f0
commit
637d6b62ee
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user