v0.3.1: added various quickslot updates in needed places.
This commit is contained in:
parent
75e49e7a3c
commit
72ed50545d
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.shatteredpixel.shatteredpixeldungeon"
|
||||
android:versionCode="46"
|
||||
android:versionName="0.3.0e"
|
||||
android:versionCode="49"
|
||||
android:versionName="0.3.1-BETA3"
|
||||
android:installLocation="auto">
|
||||
|
||||
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user