public static bool CanExecuteTeamTask(GameEntity company, TeamTask teamTask, GameContext gameContext)
{
var taskCost = GetTaskCost(company, teamTask, gameContext);
if (teamTask.IsFeatureUpgrade)
return Companies.IsEnoughResources(company, taskCost);
if (teamTask.IsMarketingTask)
{
var payer = Companies.GetPayer(company, gameContext);
return Companies.IsEnoughResources(payer, taskCost);
}
return true;
}