Remove some unnecessary text from the dice command
This commit is contained in:
parent
3568b61f38
commit
3bd7274d68
1 changed files with 0 additions and 4 deletions
|
@ -67,7 +67,6 @@ namespace Geekbot.net.Commands.Utils.Dice
|
||||||
rep.Append("**Result:** ");
|
rep.Append("**Result:** ");
|
||||||
var resultStrings = new List<string>();
|
var resultStrings = new List<string>();
|
||||||
var total = 0;
|
var total = 0;
|
||||||
var extraText = "";
|
|
||||||
foreach (var dice in dices)
|
foreach (var dice in dices)
|
||||||
{
|
{
|
||||||
var results = new List<int>();
|
var results = new List<int>();
|
||||||
|
@ -76,8 +75,6 @@ namespace Geekbot.net.Commands.Utils.Dice
|
||||||
var roll = _randomNumberGenerator.Next(1, dice.Sides);
|
var roll = _randomNumberGenerator.Next(1, dice.Sides);
|
||||||
total += roll;
|
total += roll;
|
||||||
results.Add(roll);
|
results.Add(roll);
|
||||||
if (roll == dice.Sides) extraText = "**Critical Hit!**";
|
|
||||||
if (roll == 1) extraText = "**Critical Fail!**";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resultStrings.Add($"{dice.DiceType} ({string.Join(",", results)})");
|
resultStrings.Add($"{dice.DiceType} ({string.Join(",", results)})");
|
||||||
|
@ -92,7 +89,6 @@ namespace Geekbot.net.Commands.Utils.Dice
|
||||||
|
|
||||||
rep.AppendLine();
|
rep.AppendLine();
|
||||||
rep.AppendLine($"**Total:** {total}");
|
rep.AppendLine($"**Total:** {total}");
|
||||||
if (extraText != "") rep.AppendLine(extraText);
|
|
||||||
await ReplyAsync(rep.ToString());
|
await ReplyAsync(rep.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue