mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 03:07:19 +00:00
Add XXX message
This commit is contained in:
1 parent
3875fae35a
commit
5aba2ab23e
1 file changed
+2
@@ -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