public boolean equipItemIfBetter(Item item){
        if (item.glyph == ')' && target.canSwapWeapons && (target.weapon == null || item.getTotalValue() > target.weapon.getTotalValue())){
            target.equip(item);
            target.controller.onPickupItem(item);
            return true;
        } else if (item.glyph == ']' && target.canSwapArmor && (target.armor == null || item.getTotalValue() > target.armor.getTotalValue())){
            target.equip(item);
            target.controller.onPickupItem(item);
            return true;
        } else{
            return false;
        }
    }