public int GetCraftSkillRequired(Mobile from, Type typeRes, CraftSystem craftSystem) { var itemSkillRequired = GetCraftItemSkillRequired(from, craftSystem); var craftResourceType = typeRes != null ? typeRes : Resources[0].ItemType; var craftSkillRequired = craftSystem.GetCraftSkillRequired(itemSkillRequired, craftResourceType); if (craftSkillRequired < 1) { craftSkillRequired = 1; } else if (craftSkillRequired > 140) { craftSkillRequired = 140; } return(craftSkillRequired); }