v0.2.3f: fixed yet more quickslot issues, this should be all of them.
This commit is contained in:
parent
d0e6aa6c1f
commit
944d2d33a2
|
@ -179,7 +179,7 @@ public class Item implements Bundlable {
|
|||
}
|
||||
|
||||
items.add( this );
|
||||
Dungeon.quickslot.replaceSimilar(this);
|
||||
if (stackable || this instanceof Boomerang) Dungeon.quickslot.replaceSimilar(this);
|
||||
updateQuickslot();
|
||||
Collections.sort( items, itemComparator );
|
||||
return true;
|
||||
|
@ -205,7 +205,7 @@ public class Item implements Bundlable {
|
|||
} else
|
||||
if (quantity == 1) {
|
||||
|
||||
if (stackable == true || this instanceof Boomerang){
|
||||
if (stackable || this instanceof Boomerang){
|
||||
Dungeon.quickslot.convertToPlaceholder(this);
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public class Boomerang extends MissileWeapon {
|
|||
|
||||
MIN = 1;
|
||||
MAX = 4;
|
||||
|
||||
|
||||
stackable = false;
|
||||
|
||||
bones = false;
|
||||
|
@ -100,6 +100,8 @@ public class Boomerang extends MissileWeapon {
|
|||
if (throwEquiped) {
|
||||
owner.belongings.weapon = this;
|
||||
owner.spend( -TIME_TO_EQUIP );
|
||||
Dungeon.quickslot.replaceSimilar(this);
|
||||
updateQuickslot();
|
||||
} else
|
||||
if (!collect( curUser.belongings.backpack )) {
|
||||
Dungeon.level.drop( this, owner.pos ).sprite.drop();
|
||||
|
|
Loading…
Reference in New Issue
Block a user