v2.1.0: fixed artifact->ring transmutation creating a purely random ring
This commit is contained in:
committed by
Evan Debenham
parent
daf129ab92
commit
506b6ee4d3
@@ -146,7 +146,13 @@ public class ScrollOfTransmutation extends InventoryScroll {
|
||||
} else if (item instanceof Artifact) {
|
||||
Artifact a = changeArtifact( (Artifact)item );
|
||||
if (a == null){
|
||||
return Generator.random(Generator.Category.RING);
|
||||
//if no artifacts are left, generate a random +0 ring with shared ID/curse state
|
||||
Item result = Generator.random(Generator.Category.RING);
|
||||
result.levelKnown = item.levelKnown;
|
||||
result.cursed = item.cursed;
|
||||
result.cursedKnown = item.cursedKnown;
|
||||
result.level(0);
|
||||
return result;
|
||||
} else {
|
||||
return a;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user