mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +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 shield = equipment.get(EquipmentConstants.SHIELD);
|
||||
|
||||
// XXX: This is still pretty ugly in some parts, improve.
|
||||
|
||||
if (definition.isTwoHanded()) {
|
||||
int slotsRequired = weapon != null && shield != null ? 1 : 0;
|
||||
if (inventory.freeSlots() < slotsRequired) {
|
||||
|
||||
Reference in New Issue
Block a user