v0.4.0: well of transmutation now works with mages staff
This commit is contained in:
committed by
Evan Debenham
parent
76294049e1
commit
fcefd370c7
@@ -157,13 +157,6 @@ public class MagesStaff extends MeleeWeapon {
|
||||
|
||||
this.wand = null;
|
||||
|
||||
GLog.p( Messages.get(this, "imbue", wand.name()));
|
||||
|
||||
if (enchantment != null) {
|
||||
GLog.w( Messages.get(this, "conflict") );
|
||||
enchant(null);
|
||||
}
|
||||
|
||||
//syncs the level of the two items.
|
||||
int targetLevel = Math.max(this.level(), wand.level());
|
||||
|
||||
@@ -184,7 +177,7 @@ public class MagesStaff extends MeleeWeapon {
|
||||
wand.curCharges = wand.maxCharges;
|
||||
wand.identify();
|
||||
wand.cursed = false;
|
||||
wand.charge(owner);
|
||||
if (owner != null) wand.charge(owner);
|
||||
|
||||
name = Messages.get(wand, "staff_name");
|
||||
|
||||
@@ -193,6 +186,10 @@ public class MagesStaff extends MeleeWeapon {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Class<?extends Wand> wandClass(){
|
||||
return wand != null ? wand.getClass() : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item upgrade(boolean enchant) {
|
||||
super.upgrade( enchant );
|
||||
@@ -313,7 +310,8 @@ public class MagesStaff extends MeleeWeapon {
|
||||
wand.detach(curUser.belongings.backpack);
|
||||
Badges.validateTutorial();
|
||||
|
||||
imbueWand((Wand) wand, curUser);
|
||||
GLog.p( Messages.get(MagesStaff.class, "imbue", wand.name()));
|
||||
imbueWand( wand, curUser );
|
||||
|
||||
updateQuickslot();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user