v0.3.1: added various quickslot updates in needed places.
This commit is contained in:
committed by
Evan Debenham
parent
75e49e7a3c
commit
72ed50545d
@@ -96,6 +96,7 @@ public class Monk extends Mob {
|
||||
if (weapon != null && !(weapon instanceof Knuckles) && !weapon.cursed) {
|
||||
hero.belongings.weapon = null;
|
||||
Dungeon.quickslot.clearItem( weapon );
|
||||
weapon.updateQuickslot();
|
||||
Dungeon.level.drop( weapon, hero.pos ).sprite.drop();
|
||||
GLog.w( TXT_DISARM, name, weapon.name() );
|
||||
}
|
||||
|
||||
@@ -137,8 +137,8 @@ public class Thief extends Mob {
|
||||
if (item != null) {
|
||||
|
||||
GLog.w( TXT_STOLE, this.name, item.name() );
|
||||
|
||||
|
||||
Dungeon.quickslot.clearItem( item );
|
||||
item.updateQuickslot();
|
||||
|
||||
if (item instanceof Honeypot){
|
||||
this.item = ((Honeypot)item).shatter(this, this.pos);
|
||||
|
||||
@@ -102,6 +102,7 @@ public abstract class EquipableItem extends Item {
|
||||
if (collect && !collect( hero.belongings.backpack )) {
|
||||
onDetach();
|
||||
Dungeon.quickslot.clearItem(this);
|
||||
updateQuickslot();
|
||||
Dungeon.level.drop( this, hero.pos );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user