summaryrefslogtreecommitdiff
path: root/DiscoBot/DSA_Game/Dsa.cs
diff options
context:
space:
mode:
authorKobert <Kassian.Kobert@gmail.com>2018-06-04 23:50:02 +0200
committerKobert <Kassian.Kobert@gmail.com>2018-06-04 23:50:02 +0200
commit58e3338cf0f1f454f8d59c37d9b1d7986c1cc696 (patch)
treef6519043d7311588816f92d0f2c26ea2074bd632 /DiscoBot/DSA_Game/Dsa.cs
parentb07b3dcea813f28a9f0f345352d7bd4e60289c5e (diff)
parent7f55f6f289b5ab5b7fd4ac42b472b51a9a0e679e (diff)
Merge
Diffstat (limited to 'DiscoBot/DSA_Game/Dsa.cs')
-rw-r--r--DiscoBot/DSA_Game/Dsa.cs59
1 files changed, 59 insertions, 0 deletions
diff --git a/DiscoBot/DSA_Game/Dsa.cs b/DiscoBot/DSA_Game/Dsa.cs
new file mode 100644
index 0000000..c645eb7
--- /dev/null
+++ b/DiscoBot/DSA_Game/Dsa.cs
@@ -0,0 +1,59 @@
+namespace DiscoBot.DSA_Game
+{
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Linq;
+
+ using DiscoBot.Audio;
+ using DiscoBot.Auxiliary;
+ using DiscoBot.DSA_Game.Characters;
+
+ using Discord.Commands;
+
+ public static class Dsa
+ {
+ public static ICommandContext GeneralContext { get; set; }
+
+ public static AudioService Service { get; set; }
+
+ public static Dictionary<string, string> Relation { get; set; } = new Dictionary<string, string>(); // dictionary to match the char
+
+ public static List<ICharacter> Chars { get; set; } = new List<ICharacter>(); // list of all characters
+
+ public static List<Talent> Talente { get; set; } = new List<Talent>();
+
+ public static void Startup()
+ {
+ Relation.Add("The Doctor", "Numeri Illuminus"); // Relation
+ Relation.Add("Tardis", "Helga von Drachenei, Tausendsasserin"); // "Numeri Illuminus");
+ Relation.Add("DSA Bot", "Morla"); // "Felis Exodus Schattenwald");
+ Relation.Add("Morla", "Morla");
+ Relation.Add("Rhoktar", "Rhoktar4");
+ Relation.Add("MagicBro5", "Krenko");
+ Relation.Add("Nicolas", "Hartmut Reiher");
+ Relation.Add("TrueKuehli", "Ledur Torfinson");
+
+ relation.Add("Papo","Gwendelson");
+ //Relation.Add("Papo", "Pump aus der Gosse");
+
+ //Nachteile für LE, AE, MR
+ // Relation.Add("Papo", "Angilbert Arres");
+
+ //Vorteile für LE, AE, MR
+ //Relation.Add("Papo", "Beef");
+ //Relation.Add("Papo", "Astrallos");
+
+ Relation.Add("Potus", "Potus");
+
+ // relation.Add("Papo", "Pump aus der Gosse");
+ foreach (var filename in Directory.GetFiles("helden", "*.xml"))
+ {
+ Chars.Add(new Character(filename));
+ (Chars.Last() as Character)?.Talente.Select(x => new Talent(x.Name, x.Probe, 0))
+ .Where(c => !Talente.Exists(v => v.Name.Equals(c.Name))).ToList().ForEach(v => Talente.Add(v));
+ }
+
+ Talente = Talente.OrderBy(x => x.Name).ToList();
+ }
+ }
+} \ No newline at end of file