mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-05 16:49:04 +00:00
Add XXX message
This commit is contained in:
@@ -58,6 +58,8 @@ public final class EquipItemHandler extends MessageHandler<ItemOptionMessage> {
|
|||||||
Item weapon = equipment.get(EquipmentConstants.WEAPON);
|
Item weapon = equipment.get(EquipmentConstants.WEAPON);
|
||||||
Item shield = equipment.get(EquipmentConstants.SHIELD);
|
Item shield = equipment.get(EquipmentConstants.SHIELD);
|
||||||
|
|
||||||
|
// XXX: This is still pretty ugly in some parts, improve.
|
||||||
|
|
||||||
if (definition.isTwoHanded()) {
|
if (definition.isTwoHanded()) {
|
||||||
int slotsRequired = weapon != null && shield != null ? 1 : 0;
|
int slotsRequired = weapon != null && shield != null ? 1 : 0;
|
||||||
if (inventory.freeSlots() < slotsRequired) {
|
if (inventory.freeSlots() < slotsRequired) {
|
||||||
|
|||||||
Reference in New Issue
Block a user