示例#1
0
        public string Description()
        {
            var stringBuilder = new StringBuilder();

            stringBuilder.Append($"Games won: {GamesWon.GetValueOrDefault(0)}, ");
            stringBuilder.Append($"Prestige: {Prestige.GetValueOrDefault(0)}, ");
            stringBuilder.Append($"Rating: {Rating}, ");
            stringBuilder.Append($"F*g: {(new Random().Next(2) == 0 ? "Yes" : "No")}");

            return(stringBuilder.ToString());
        }
示例#2
0
 public string Title(string battleTag)
 {
     return($"{battleTag} (Level {(Prestige.GetValueOrDefault(0) * 100) + Level.GetValueOrDefault(0)})");
 }