Send modified item inventory update with checkAndEquipAmmunition method.
This commit is contained in:
+5
-2
@@ -5827,11 +5827,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList(false);
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5829,11 +5829,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList(false);
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5831,11 +5831,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList(false);
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5826,11 +5826,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList(false);
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5809,11 +5809,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5809,11 +5809,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5810,11 +5810,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5774,11 +5774,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -5819,7 +5819,9 @@ public class PlayerInstance extends Playable
|
||||
if (ammunition != null)
|
||||
{
|
||||
addAmmunitionSkills(ammunition);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(ammunition);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -5836,7 +5836,9 @@ public class PlayerInstance extends Playable
|
||||
if (ammunition != null)
|
||||
{
|
||||
addAmmunitionSkills(ammunition);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(ammunition);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -5869,7 +5869,9 @@ public class PlayerInstance extends Playable
|
||||
if (ammunition != null)
|
||||
{
|
||||
addAmmunitionSkills(ammunition);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(ammunition);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+5
-2
@@ -5802,11 +5802,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList(false);
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5802,11 +5802,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList(false);
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5788,11 +5788,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5802,11 +5802,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5802,11 +5802,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5756,11 +5756,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -5783,11 +5783,14 @@ public class PlayerInstance extends Playable
|
||||
{
|
||||
arrows = _inventory.findBoltForCrossBow(weapon);
|
||||
}
|
||||
|
||||
// Equip arrows needed in left hand.
|
||||
if (arrows != null)
|
||||
{
|
||||
// Equip arrows needed in left hand
|
||||
_inventory.setPaperdollItem(Inventory.PAPERDOLL_LHAND, arrows);
|
||||
sendItemList(false);
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(arrows);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -5835,7 +5835,9 @@ public class PlayerInstance extends Playable
|
||||
if (ammunition != null)
|
||||
{
|
||||
addAmmunitionSkills(ammunition);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(ammunition);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -5880,7 +5880,9 @@ public class PlayerInstance extends Playable
|
||||
if (ammunition != null)
|
||||
{
|
||||
addAmmunitionSkills(ammunition);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(ammunition);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -5880,7 +5880,9 @@ public class PlayerInstance extends Playable
|
||||
if (ammunition != null)
|
||||
{
|
||||
addAmmunitionSkills(ammunition);
|
||||
sendItemList();
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
iu.addModifiedItem(ammunition);
|
||||
sendInventoryUpdate(iu);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user