fixed equipment issues so units can auto buy items

automatic item upgrades for agent based ai