Beispiel #1
0
        private string GenerateName(ItemMaterial material, string typeName, ArmorType type)
        {
            var materialPrefix = NameGenerationHelper.GetMaterialPrefix(material);
            var armorTypeName  = GetArmorTypeName(type);

            var builder = new List <string>();

            if (!string.IsNullOrEmpty(materialPrefix))
            {
                builder.Add(materialPrefix);
            }

            if (!string.IsNullOrEmpty(typeName))
            {
                builder.Add(typeName);
            }

            builder.Add(armorTypeName);

            return(string.Join(" ", builder));
        }
Beispiel #2
0
        private string GenerateName(ItemMaterial material)
        {
            var materialPrefix = NameGenerationHelper.GetMaterialPrefix(material);

            return($"{materialPrefix} {baseName}");
        }