public static bool RemoveItem(List <ItemInfo> items, ItemInfo target, int index) { bool result = false; if (items != null && target != null) { if (!(result = BattleEquipTools_op.SubstractItemNum(target))) { if (result = BattleEquipTools_op.RemoveItem(items, index)) { } } } return(result); }