diff options
author | TrueDoctor <d-kobert@web.de> | 2018-06-18 11:39:41 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-06-18 11:39:41 +0200 |
commit | 68e49d3b0936101deba1251e95b9788716c0722a (patch) | |
tree | 431d8b26148505ad8b5584fd9e7c2db644bcba15 /DiscoBot/Commands/ProbenTest.cs | |
parent | ba1f440d0762ab77cd3f08734043df7db5b4329e (diff) |
reworked Properties, to split each fiel into a different File
Diffstat (limited to 'DiscoBot/Commands/ProbenTest.cs')
-rw-r--r-- | DiscoBot/Commands/ProbenTest.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/DiscoBot/Commands/ProbenTest.cs b/DiscoBot/Commands/ProbenTest.cs index e14d5a4..9614b7c 100644 --- a/DiscoBot/Commands/ProbenTest.cs +++ b/DiscoBot/Commands/ProbenTest.cs @@ -16,7 +16,7 @@ try { res = Gm.CheckCommand( - Dsa.Relation[this.Context.User.Username], + Dsa.Session.Relation[this.Context.User.Username], CommandTypes.Talent, talent, erschwernis); @@ -24,7 +24,7 @@ catch { res = Gm.CheckCommand( - Dsa.Relation["Tardis"], + Dsa.Session.Relation["Tardis"], CommandTypes.Talent, talent, erschwernis); @@ -41,7 +41,7 @@ try { res = Gm.CheckCommand( - Dsa.Relation[this.Context.User.Username], + Dsa.Session.Relation[this.Context.User.Username], CommandTypes.Zauber, zauber, erschwernis); @@ -49,7 +49,7 @@ catch { res = Gm.CheckCommand( - Dsa.Relation["Tardis"], + Dsa.Session.Relation["Tardis"], CommandTypes.Zauber, zauber, erschwernis); @@ -62,7 +62,7 @@ [Alias("E", "Eigenschaft", "eigenschaft", "eigen")] public Task EigenschaftAsync([Summary("Eigenschaftskürzel und Erschwernis")] string talent, int erschwernis = 0) { - var chr = Dsa.Chars.Find(x => x.Name.Equals(Dsa.Relation[this.Context.User.Username])); + var chr = Dsa.Chars.Find(x => x.Name.Equals(Dsa.Session.Relation[this.Context.User.Username])); string res = chr.TestEigenschaft(talent, erschwernis); return this.ReplyAsync("```xl\n" + res + "\n```"); } @@ -71,21 +71,21 @@ [Alias("A", "At", "at", "Angriff", "angriff", "attackiere_mit", "attacke", "Attacke")] public Task AngriffAsync([Summary("Weapon")] string weapon, int erschwernis = 0) { - return this.ReplyAsync("```xl\n" + Dsa.Chars.Find(x => x.Name.Equals(Dsa.Relation[this.Context.User.Username])).Angriff(weapon, erschwernis) + "\n```"); + return this.ReplyAsync("```xl\n" + Dsa.Chars.Find(x => x.Name.Equals(Dsa.Session.Relation[this.Context.User.Username])).Angriff(weapon, erschwernis) + "\n```"); } [Command("p"), Summary("Würfelt eine Parade Probe")] [Alias("P", "Parade", "parade", "pariere_mit")] public Task ParadeAsync([Summary("Parade Weapon")] string talent, int erschwernis = 0) { - return this.ReplyAsync("```xl\n" + Dsa.Chars.Find(x => x.Name.Equals(Dsa.Relation[this.Context.User.Username])).Parade(talent, erschwernis) + "\n```"); + return this.ReplyAsync("```xl\n" + Dsa.Chars.Find(x => x.Name.Equals(Dsa.Session.Relation[this.Context.User.Username])).Parade(talent, erschwernis) + "\n```"); } [Command("f"), Summary("Führt eine Fernkampfprobe aus")] [Alias("F", "fern", "Fern", "Schuss", "schuss", "fernkampf", "Fernkampf", "schieße", "schieße_mit")] public Task FernkampfAsync([Summary("Fernkampfwaffe")] string waffe, int erschwernis = 0) { - return this.ReplyAsync("```xl\n" + Dsa.Chars.Find(x => x.Name.Equals(Dsa.Relation[this.Context.User.Username])).Fernkampf(waffe, erschwernis) + "\n```"); + return this.ReplyAsync("```xl\n" + Dsa.Chars.Find(x => x.Name.Equals(Dsa.Session.Relation[this.Context.User.Username])).Fernkampf(waffe, erschwernis) + "\n```"); } } } |