v1.3.1: fixed bugs with class armor transferring
This commit is contained in:
+2
-2
@@ -210,7 +210,7 @@ abstract public class ClassArmor extends Armor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSelect(Item item) {
|
public void onSelect(Item item) {
|
||||||
if (item == null) return;
|
if (item == null || item == ClassArmor.this) return;
|
||||||
|
|
||||||
Armor armor = (Armor)item;
|
Armor armor = (Armor)item;
|
||||||
armor.detach(hero.belongings.backpack);
|
armor.detach(hero.belongings.backpack);
|
||||||
@@ -226,7 +226,7 @@ abstract public class ClassArmor extends Armor {
|
|||||||
masteryPotionBonus = armor.masteryPotionBonus;
|
masteryPotionBonus = armor.masteryPotionBonus;
|
||||||
identify();
|
identify();
|
||||||
|
|
||||||
GLog.p( "Your heroic armor's properties have been transferred!" );
|
GLog.p( Messages.get(ClassArmor.class, "transfer_complete") );
|
||||||
hero.sprite.operate(hero.pos);
|
hero.sprite.operate(hero.pos);
|
||||||
hero.sprite.emitter().burst( Speck.factory( Speck.CROWN), 12 );
|
hero.sprite.emitter().burst( Speck.factory( Speck.CROWN), 12 );
|
||||||
Sample.INSTANCE.play( Assets.Sounds.EVOKE );
|
Sample.INSTANCE.play( Assets.Sounds.EVOKE );
|
||||||
|
|||||||
Reference in New Issue
Block a user