protected virtual string GetRandomQualityMessage(int quality)
{
string[] msgs = null;
switch (this.GetQualityRating(quality))
{
case PlayingQuality.VeryGood:
msgs = new string[] {
Localization.Get("Your song came from the heavens!"),
Localization.Get("That was a perfect song"),
};
break;
case PlayingQuality.Good:
msgs = new string[] {
Localization.Get("You gave a great performance"),
Localization.Get("The performance was quite alright"),
Localization.Get("Not a bad performance"),
Localization.Get("I'm slowly gaining confidence in playing instruments."),
};
break;
case PlayingQuality.Bad:
msgs = new string[] {
Localization.Get("Lots of mistakes, although most didn't notice"),
Localization.Get("An embarrassing performance"),
Localization.Get("The song is still too difficult for me."),
Localization.Get("You'll need to practice hard to master this song."),
};
break;
case PlayingQuality.VeryBad:
msgs = new string[] {
Localization.Get("A disastrous performance"),
Localization.Get("That was a total mess..."),
Localization.Get("That was a difficult song for me to play."),
};
break;
}
if (msgs == null || msgs.Length < 1)
return "...";
return msgs[RandomProvider.Get().Next(0, msgs.Length)].Trim();
}