public string GetPriceUnitName() { if (currencyType == 1) { return(ItemParentData.GetItem(2).Name); } else { return(ItemParentData.GetItem(3).Name); } }
static public string GetAccuCurRankIcon(int contri) { var id = dataMap.First(t => t.Value.type == 3 && t.Value.contribution == contri); if (dataMap[id.Key].items != null) { return(ItemParentData.GetItem(dataMap[id.Key].items.Keys.ElementAt(0)).Icon); } else { return(string.Empty); } }
/// <summary> /// 飞龙名称 /// </summary> /// <param name="bHasColor">是否加上颜色值</param> /// <returns></returns> public string GetName(bool bHasColor = true) { string dragonName = LanguageData.GetContent(name); if (bHasColor) { int q = quality; if (!QualityColorData.dataMap.ContainsKey(q)) { q = 1; } string qualityColor = ItemParentData.GetQualityColorByQuality(q); dragonName = string.Concat("[", qualityColor, "]", dragonName, "[-]"); } return(dragonName); }