v2.2.0: reverted scroll of transmutation change re: potions and scrolls
This commit is contained in:
@@ -1035,7 +1035,7 @@ items.scrolls.scrolloftransmutation.name=scroll of transmutation
|
|||||||
items.scrolls.scrolloftransmutation.inv_title=Transmute an item
|
items.scrolls.scrolloftransmutation.inv_title=Transmute an item
|
||||||
items.scrolls.scrolloftransmutation.nothing=Nothing interesting happens.
|
items.scrolls.scrolloftransmutation.nothing=Nothing interesting happens.
|
||||||
items.scrolls.scrolloftransmutation.morph=Your item morphs into something different!
|
items.scrolls.scrolloftransmutation.morph=Your item morphs into something different!
|
||||||
items.scrolls.scrolloftransmutation.desc=This scroll contains powerful transmutation magic. When used on an eligible item it will transform it into a different item of the same type. The magic will even preserve upgrades, enchantments, and glyphs.
|
items.scrolls.scrolloftransmutation.desc=This scroll contains powerful transmutation magic. When used on an eligible item it will transform it into a different item of the same type. The magic will even preserve upgrades, enchantments, and glyphs. Scrolls and potions will be transmuted into their exotic equivalent, and vice-versa.
|
||||||
|
|
||||||
items.scrolls.scrollofupgrade.name=scroll of upgrade
|
items.scrolls.scrollofupgrade.name=scroll of upgrade
|
||||||
items.scrolls.scrollofupgrade.inv_title=Upgrade an item
|
items.scrolls.scrollofupgrade.inv_title=Upgrade an item
|
||||||
|
|||||||
+10
-20
@@ -321,29 +321,19 @@ public class ScrollOfTransmutation extends InventoryScroll {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static Scroll changeScroll( Scroll s ) {
|
private static Scroll changeScroll( Scroll s ) {
|
||||||
Scroll n;
|
if (s instanceof ExoticScroll) {
|
||||||
|
return Reflection.newInstance(ExoticScroll.exoToReg.get(s.getClass()));
|
||||||
do {
|
} else {
|
||||||
n = (Scroll)Generator.randomUsingDefaults( Generator.Category.SCROLL );
|
return Reflection.newInstance(ExoticScroll.regToExo.get(s.getClass()));
|
||||||
if (s instanceof ExoticScroll){
|
}
|
||||||
n = Reflection.newInstance(ExoticScroll.regToExo.get(n.getClass()));
|
|
||||||
}
|
|
||||||
} while (n.getClass() == s.getClass());
|
|
||||||
|
|
||||||
return n;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Potion changePotion( Potion p ) {
|
private static Potion changePotion( Potion p ) {
|
||||||
Potion n;
|
if (p instanceof ExoticPotion) {
|
||||||
|
return Reflection.newInstance(ExoticPotion.exoToReg.get(p.getClass()));
|
||||||
do {
|
} else {
|
||||||
n = (Potion)Generator.randomUsingDefaults( Generator.Category.POTION );
|
return Reflection.newInstance(ExoticPotion.regToExo.get(p.getClass()));
|
||||||
if (p instanceof ExoticPotion){
|
}
|
||||||
n = Reflection.newInstance(ExoticPotion.regToExo.get(n.getClass()));
|
|
||||||
}
|
|
||||||
} while (n.getClass() == p.getClass());
|
|
||||||
|
|
||||||
return n;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user