diff options
author | Kobert <Kassian.Kobert@gmail.com> | 2018-04-09 22:32:48 +0200 |
---|---|---|
committer | Kobert <Kassian.Kobert@gmail.com> | 2018-04-09 22:32:48 +0200 |
commit | 91ee301f7f459dbd4f7ef93a017c4ecb3927410e (patch) | |
tree | 8be38e2f31d8655c5c3884bb14025e88576fe005 | |
parent | 8bfd733d009c1777463500bc515336edabdf920c (diff) |
For pull
-rw-r--r-- | DiscoBot/Characters/Character.cs | 8 | ||||
-rw-r--r-- | DiscoBot/Commands/List.cs | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/DiscoBot/Characters/Character.cs b/DiscoBot/Characters/Character.cs index 34a1037..57debe2 100644 --- a/DiscoBot/Characters/Character.cs +++ b/DiscoBot/Characters/Character.cs @@ -25,6 +25,7 @@ public Character(string path) : this() { this.Load(path); // load + this.Post_process(); // calculate derived values } public Character(Character c, string name, int stDv = 2) : this() @@ -236,7 +237,12 @@ return output.ToString(); } - private void Load(string path) + private void Post_process() + { + + } + + private void Load(string path) { var reader = new XmlTextReader(path); while (reader.Read()) diff --git a/DiscoBot/Commands/List.cs b/DiscoBot/Commands/List.cs index 53f1ce4..79f908a 100644 --- a/DiscoBot/Commands/List.cs +++ b/DiscoBot/Commands/List.cs @@ -33,7 +33,8 @@ case "stats": res.Add(character.Name + ":"); res.AddRange( - character.Eigenschaften.Take(9).Select(s => s.Key + ":\t " + s.Value)); + character.Eigenschaften.Select(s => s.Key + ":\t " + s.Value)); + //character.Eigenschaften.Take(9).Select(s => s.Key + ":\t " + s.Value)); break; case "t": case "ta": |