diff options
Diffstat (limited to 'DiscoBot/Char.cs')
-rw-r--r-- | DiscoBot/Char.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/DiscoBot/Char.cs b/DiscoBot/Char.cs index 352274f..45d975e 100644 --- a/DiscoBot/Char.cs +++ b/DiscoBot/Char.cs @@ -85,16 +85,23 @@ namespace DiscoBot var ttalent = talente[ttalentlist.IndexOf(error)]; var props = ttalent.Test(); //get the required properties int tap = ttalent.value; //get tap - output.AppendFormat("{0} {1} taw:{2} error: \n", ttalent.name,ttalent.probe,ttalent.value,error); + List<int> werte = new List<int>(); + foreach (string p in props) + { + werte.Add(eigenschaften[Proptable[p]]); + } + output.AppendFormat("{0} würfelt: {1} \n{2} - {3} taw:{4} \n", this.name,ttalent.name,ttalent.probe,String.Join("/",werte),ttalent.value); + output.Append(" "); for (int i = 0; i <= 2; i++) //foreach property, dice and tap { int temp = dice.Roll(); int eigenschaft = eigenschaften[Proptable[props[i]]]; if (eigenschaft < temp) tap -= temp - eigenschaft; - output.Append(temp + " "); //add to string + output.Append("["+temp + "]"); //add to string } - output.AppendFormat("tap: {0}",tap); + + output.AppendFormat(" tap: {0,20}",tap); if (error == 100) return talent + " nicht gefunden!"; return output.ToString(); //return output |