DnD style roll fix, closes #143

This commit is contained in:
Master Kwoth 2016-04-01 20:47:23 +02:00
parent 7c2f922749
commit 7863c48901

View File

@ -72,8 +72,10 @@ namespace NadekoBot.Modules.Gambling
{
arr[i] = r.Next(1, n2 + 1);
}
await e.Channel.SendMessage($"`Rolled {n1} {(n1 == 1 ? "die" : "dice")} 1-{n2}.`\n`Result:`" + string.Join(", ", arr.OrderBy(x => x)));
var elemCnt = 0;
await e.Channel.SendMessage($"`Rolled {n1} {(n1 == 1 ? "die" : "dice")} 1-{n2}.`\n`Result:` " + string.Join(", ", arr.OrderBy(x => x).Select(x => elemCnt++ % 2 == 0 ? $"**{x}**" : x.ToString())));
}
return;
}
try
{