public override string ToString() { var msg = $"恭喜你在 【{Name}】 的伟大远征中获得以下奖励:"; var msgList = new List <string>(); if (Gold > 0) { msgList.Add($"金币:{Gold.CurencyFormat()}"); } if (!Items.IsNullOrEmpty()) { msgList.Add($"物品:{string.Join(",", Items.GroupBy(p => p).Select(p => $"{p.Key}*{p.Count()}"))}"); } if (!Flavorings.IsNullOrEmpty()) { msgList.Add($"调味料:{string.Join(",", Flavorings.GroupBy(p => p).Select(p => $"{p.Key}*{p.Count()}"))}"); } return($"{msg}\r\n{string.Join("\r\n", msgList)}"); }