No, employees don't get paid for "goodwill value" - whatever that means - they get paid for work they do in the course of their employment. If a company stands to lose if one of their employees changes jobs and works for a competitor, then the employer should be sure to give them generous raises and compensate them for the fair market value of their labor - not by relying on legal threats. I'm baffled by how widespread this belief that employees have some moral responsibility to sacrifice opportunities to the benefit of their current employer. Be a rational actor in the labor market, doing otherwise is an easy way to get taken advantage of.