summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/ProbenTest.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-06-03 23:16:17 +0200
committerTrueDoctor <d-kobert@web.de>2018-06-03 23:16:17 +0200
commitd63ffc58db0f032cf7573b2a8a7720de2d5050ab (patch)
treed9a656651251bbd1eec233265ef824bf4b0389f0 /DiscoBot/Commands/ProbenTest.cs
parent256154e2ab4244e7267ffc21959a4ce65c982783 (diff)
-General restructuring
-seperated talents and spells
Diffstat (limited to 'DiscoBot/Commands/ProbenTest.cs')
-rw-r--r--DiscoBot/Commands/ProbenTest.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/DiscoBot/Commands/ProbenTest.cs b/DiscoBot/Commands/ProbenTest.cs
index bdfaf23..ae98ec2 100644
--- a/DiscoBot/Commands/ProbenTest.cs
+++ b/DiscoBot/Commands/ProbenTest.cs
@@ -2,6 +2,8 @@
{
using System.Threading.Tasks;
+ using DiscoBot.DSA_Game;
+
using Discord.Commands;
public class ProbenTest : ModuleBase
@@ -31,6 +33,31 @@
return this.ReplyAsync("```xl\n" + res + "\n```");
}
+ [Command("Zauber"), Summary("Würfelt ein Zauberprobe")]
+ [Alias("Z", "zauber", "z")]
+ public Task ZauberAsync([Summary("Zaubername")] string zauber, int erschwernis = 0)
+ {
+ string res;
+ try
+ {
+ res = Gm.CheckCommand(
+ Dsa.Relation[this.Context.User.Username],
+ CommandTypes.Zauber,
+ zauber,
+ erschwernis);
+ }
+ catch
+ {
+ res = Gm.CheckCommand(
+ Dsa.Relation["Tardis"],
+ CommandTypes.Zauber,
+ zauber,
+ erschwernis);
+ }
+
+ return this.ReplyAsync("```xl\n" + res + "\n```");
+ }
+
[Command("e"), Summary("Würfelt eine Eigenschaftsprobe")]
[Alias("E", "Eigenschaft", "eigenschaft", "eigen")]
public Task EigenschaftAsync([Summary("Eigenschaftskürzel und Erschwernis")] string talent, int erschwernis = 0)