From 1ef4aa027b6c77a45e7d895f4efcd074e3afaf88 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Tue, 19 Jun 2018 14:25:14 +0200 Subject: Implemented session saves --- DiscoBot/DSA_Game/Dsa.cs | 2 +- DiscoBot/DSA_Game/Save/Properties.cs | 6 +- DiscoBot/DSA_Game/Save/SaveCommand.cs | 41 ++- DiscoBot/DSA_Game/Save/Session.cs | 9 +- DiscoBot/Properties/DiscoBot-Audio-Sound.json | 7 + DiscoBot/Properties/DiscoBot-Commands-Help.json | 20 ++ .../DiscoBot-DSA_Game-Characters-Character.json | 290 +++++++++++++++++++++ DiscoBot/session.json | 36 --- DiscoBot/sessions/DiscoBot-Audio-Sound.json | 7 - DiscoBot/sessions/DiscoBot-Commands-Help.json | 20 -- .../DiscoBot-DSA_Game-Characters-Character.json | 290 --------------------- DiscoBot/sessions/copy/copy-0.json | 79 ++++++ DiscoBot/sessions/test/test-0.json | 79 ++++++ DiscoBot/sessions/test/test-1.json | 79 ++++++ 14 files changed, 601 insertions(+), 364 deletions(-) create mode 100644 DiscoBot/Properties/DiscoBot-Audio-Sound.json create mode 100644 DiscoBot/Properties/DiscoBot-Commands-Help.json create mode 100644 DiscoBot/Properties/DiscoBot-DSA_Game-Characters-Character.json delete mode 100644 DiscoBot/sessions/DiscoBot-Audio-Sound.json delete mode 100644 DiscoBot/sessions/DiscoBot-Commands-Help.json delete mode 100644 DiscoBot/sessions/DiscoBot-DSA_Game-Characters-Character.json create mode 100644 DiscoBot/sessions/copy/copy-0.json create mode 100644 DiscoBot/sessions/test/test-0.json create mode 100644 DiscoBot/sessions/test/test-1.json diff --git a/DiscoBot/DSA_Game/Dsa.cs b/DiscoBot/DSA_Game/Dsa.cs index 5b4833b..f1ed069 100644 --- a/DiscoBot/DSA_Game/Dsa.cs +++ b/DiscoBot/DSA_Game/Dsa.cs @@ -22,7 +22,7 @@ public static List Talente { get; set; } = new List(); - public static Session Session { get; set; } + public static Session Session { get; set; } = new Session(); public static void Startup() { diff --git a/DiscoBot/DSA_Game/Save/Properties.cs b/DiscoBot/DSA_Game/Save/Properties.cs index 45bad4a..67d30b0 100644 --- a/DiscoBot/DSA_Game/Save/Properties.cs +++ b/DiscoBot/DSA_Game/Save/Properties.cs @@ -34,7 +34,7 @@ namespace DiscoBot.DSA_Game.Save public static List Sounds { get => objects["Sound"] as List; set => objects["Sound"] = value; } - public static void Deserialize(string path = @"..\..\sessions") + public static void Deserialize(string path = @"..\..\Properties") { var files = Directory.GetFiles(path, "*.json"); @@ -65,7 +65,7 @@ namespace DiscoBot.DSA_Game.Save } - public static void Serialize(string path = @"..\..\sessions\") + public static void Serialize(string path = @"..\..\Properties\") { try { @@ -80,6 +80,8 @@ namespace DiscoBot.DSA_Game.Save catch (Exception e) { // ignored + var log = new LogMessage(LogSeverity.Warning, "Properties", $"Speichern von Save-File fehlgeschlagen.", e); + Console.WriteLine(log); } } } diff --git a/DiscoBot/DSA_Game/Save/SaveCommand.cs b/DiscoBot/DSA_Game/Save/SaveCommand.cs index 310d38a..07bcbac 100644 --- a/DiscoBot/DSA_Game/Save/SaveCommand.cs +++ b/DiscoBot/DSA_Game/Save/SaveCommand.cs @@ -15,27 +15,54 @@ namespace DiscoBot.DSA_Game.Save public class SaveCommand : ModuleBase { - [Command("save"), Summary("Save Session")] - public async Task ReportAsync() + [Command("load"), Summary("Load Session")] + public async Task LoadSessionAsync([Remainder, Summary("Session Name")] string name = "") { - + if (name.Equals("?") || name.Equals(string.Empty)) + { + await this.ReplyAsync($"Gespeicherte Sessions:"); + await this.ReplyAsync(this.ListSessions()); + return; + } + + var path = DSA_Game.Save.Session.DirectoryPath + @"\" + name; + + var files = Directory.GetFiles(path); + var session = files.OrderByDescending(x => Convert.ToInt32(x.Split('-').Last().Split('.').First())).First(); + Dsa.Session = Session.Load(session); - await this.ReplyAsync($"Dein report wurde hinzugefügt"); + await this.ReplyAsync($"{name} wurde geladen"); } [Command("save"), Summary("Save Session")] - public async Task ReportAsync([Remainder, Summary("Session Name")] string name) + public async Task SessionSaveAsync([Remainder, Summary("Session Name")] string name = "") { - if (name.Equals("?")) + if (name.Equals("?") || name.Equals(string.Empty)) { await this.ReplyAsync($"Gespeicherte Sessions:"); await this.ReplyAsync(this.ListSessions()); + return; } + + var path = DSA_Game.Save.Session.DirectoryPath + @"\" + name; + if (Directory.Exists(path)) + { + var files = Directory.GetFiles(path); + int current = files.Max(x => Convert.ToInt32(x.Split('-').Last().Split('.').First())); + Dsa.Session.Save(path + "\\" + name + $"-{++current}.json"); + } + else + { + Directory.CreateDirectory(path); + Dsa.Session.Save(path + "\\" + name + $"-0.json"); + } + + await this.ReplyAsync($"{name} wurde gespeichert"); } private string[] ListSessions() { - return Directory.GetDirectories(@"..\..\sessions"); + return Directory.GetDirectories(Session.DirectoryPath); } diff --git a/DiscoBot/DSA_Game/Save/Session.cs b/DiscoBot/DSA_Game/Save/Session.cs index ed9c18d..0358b22 100644 --- a/DiscoBot/DSA_Game/Save/Session.cs +++ b/DiscoBot/DSA_Game/Save/Session.cs @@ -10,12 +10,15 @@ namespace DiscoBot.DSA_Game.Save using DiscoBot.DSA_Game.Characters; + using Discord; using Discord.Commands; using Newtonsoft.Json; public class Session { + public static string DirectoryPath { get; set; } = @"..\..\sessions"; + public ICommandContext GeneralContext { get; set; } public Dictionary Relation { get; set; } = new Dictionary(); // dictionary to match the char @@ -23,7 +26,7 @@ namespace DiscoBot.DSA_Game.Save public List Chars { get; set; } = new List(); // list of all characters public string SessionName { get; set; } - + public static Session Load(string path = @"..\..\session.json") { try @@ -33,6 +36,8 @@ namespace DiscoBot.DSA_Game.Save catch (Exception e) { // ignored + var log = new LogMessage(LogSeverity.Warning, "Properties", $"Laden von Save-File {path} fehlgeschlagen.", e); + Console.WriteLine(log); return null; } } @@ -45,6 +50,8 @@ namespace DiscoBot.DSA_Game.Save } catch (Exception e) { + var log = new LogMessage(LogSeverity.Warning, "Properties", $"Speichern von Save-File {path} fehlgeschlagen.", e); + Console.WriteLine(log); // ignored } } diff --git a/DiscoBot/Properties/DiscoBot-Audio-Sound.json b/DiscoBot/Properties/DiscoBot-Audio-Sound.json new file mode 100644 index 0000000..87a0e6b --- /dev/null +++ b/DiscoBot/Properties/DiscoBot-Audio-Sound.json @@ -0,0 +1,7 @@ +[ + { + "Name": "Test", + "Url": "http", + "Volume": 100 + } +] \ No newline at end of file diff --git a/DiscoBot/Properties/DiscoBot-Commands-Help.json b/DiscoBot/Properties/DiscoBot-Commands-Help.json new file mode 100644 index 0000000..df1046d --- /dev/null +++ b/DiscoBot/Properties/DiscoBot-Commands-Help.json @@ -0,0 +1,20 @@ +[ + { + "Context": null + }, + { + "Context": null + }, + { + "Context": null + }, + { + "Context": null + }, + { + "Context": null + }, + { + "Context": null + } +] \ No newline at end of file diff --git a/DiscoBot/Properties/DiscoBot-DSA_Game-Characters-Character.json b/DiscoBot/Properties/DiscoBot-DSA_Game-Characters-Character.json new file mode 100644 index 0000000..2dee9db --- /dev/null +++ b/DiscoBot/Properties/DiscoBot-DSA_Game-Characters-Character.json @@ -0,0 +1,290 @@ +[ + { + "Name": "Felis Exodus Schattenwald", + "Lebenspunkte_Basis": 30, + "Lebenspunkte_Aktuell": 30, + "Astralpunkte_Basis": 20, + "Astralpunkte_Aktuell": 20, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + }, + { + "Name": "Gardist", + "Lebenspunkte_Basis": 29, + "Lebenspunkte_Aktuell": 29, + "Astralpunkte_Basis": 0, + "Astralpunkte_Aktuell": 0, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + }, + { + "Name": "Hartmut Reiher", + "Lebenspunkte_Basis": 31, + "Lebenspunkte_Aktuell": 31, + "Astralpunkte_Basis": 0, + "Astralpunkte_Aktuell": 0, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + }, + { + "Name": "Helga vom Drachenei, Tausendsasserin", + "Lebenspunkte_Basis": 21, + "Lebenspunkte_Aktuell": 21, + "Astralpunkte_Basis": 35, + "Astralpunkte_Aktuell": 35, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + }, + { + "Name": "Krenko", + "Lebenspunkte_Basis": 25, + "Lebenspunkte_Aktuell": 25, + "Astralpunkte_Basis": 0, + "Astralpunkte_Aktuell": 0, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + }, + { + "Name": "Ledur Torfinson", + "Lebenspunkte_Basis": 39, + "Lebenspunkte_Aktuell": 39, + "Astralpunkte_Basis": 0, + "Astralpunkte_Aktuell": 0, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + }, + { + "Name": "Morla", + "Lebenspunkte_Basis": 26, + "Lebenspunkte_Aktuell": 26, + "Astralpunkte_Basis": 13, + "Astralpunkte_Aktuell": 13, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + }, + { + "Name": "Numeri Illuminus", + "Lebenspunkte_Basis": 28, + "Lebenspunkte_Aktuell": 28, + "Astralpunkte_Basis": 40, + "Astralpunkte_Aktuell": 40, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + }, + { + "Name": "Potus", + "Lebenspunkte_Basis": 39, + "Lebenspunkte_Aktuell": 39, + "Astralpunkte_Basis": 16, + "Astralpunkte_Aktuell": 16, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + }, + { + "Name": "Pump aus der Gosse", + "Lebenspunkte_Basis": 18, + "Lebenspunkte_Aktuell": 18, + "Astralpunkte_Basis": 13, + "Astralpunkte_Aktuell": 13, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + }, + { + "Name": "Rhoktar4", + "Lebenspunkte_Basis": 34, + "Lebenspunkte_Aktuell": 34, + "Astralpunkte_Basis": 17, + "Astralpunkte_Aktuell": 17, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + }, + { + "Name": "Volant", + "Lebenspunkte_Basis": 28, + "Lebenspunkte_Aktuell": 28, + "Astralpunkte_Basis": 43, + "Astralpunkte_Aktuell": 43, + "Ausdauer_Basis": 0, + "Ausdauer_Aktuell": 0, + "Eigenschaften": {}, + "Talente": [], + "Zauber": [], + "Kampftalente": [], + "Vorteile": [], + "PropTable": { + "MU": "Mut", + "KL": "Klugheit", + "IN": "Intuition", + "CH": "Charisma", + "FF": "Fingerfertigkeit", + "GE": "Gewandtheit", + "KO": "Konstitution", + "KK": "Körperkraft" + } + } +] \ No newline at end of file diff --git a/DiscoBot/session.json b/DiscoBot/session.json index cd2e455..03c46f3 100644 --- a/DiscoBot/session.json +++ b/DiscoBot/session.json @@ -4,110 +4,74 @@ "Chars": [ { "Name": "Felis Exodus Schattenwald", - "Lebenspunkte_Basis": 30, "Lebenspunkte_Aktuell": 30, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 20, "Astralpunkte_Aktuell": 20 }, { "Name": "Gardist", - "Lebenspunkte_Basis": 29, "Lebenspunkte_Aktuell": 29, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 0, "Astralpunkte_Aktuell": 0 }, { "Name": "Hartmut Reiher", - "Lebenspunkte_Basis": 31, "Lebenspunkte_Aktuell": 31, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 0, "Astralpunkte_Aktuell": 0 }, { "Name": "Helga vom Drachenei, Tausendsasserin", - "Lebenspunkte_Basis": 21, "Lebenspunkte_Aktuell": 21, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 35, "Astralpunkte_Aktuell": 35 }, { "Name": "Krenko", - "Lebenspunkte_Basis": 25, "Lebenspunkte_Aktuell": 25, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 0, "Astralpunkte_Aktuell": 0 }, { "Name": "Ledur Torfinson", - "Lebenspunkte_Basis": 39, "Lebenspunkte_Aktuell": 39, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 0, "Astralpunkte_Aktuell": 0 }, { "Name": "Morla", - "Lebenspunkte_Basis": 26, "Lebenspunkte_Aktuell": 26, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 13, "Astralpunkte_Aktuell": 13 }, { "Name": "Numeri Illuminus", - "Lebenspunkte_Basis": 28, "Lebenspunkte_Aktuell": 28, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 40, "Astralpunkte_Aktuell": 40 }, { "Name": "Potus", - "Lebenspunkte_Basis": 39, "Lebenspunkte_Aktuell": 39, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 16, "Astralpunkte_Aktuell": 16 }, { "Name": "Pump aus der Gosse", - "Lebenspunkte_Basis": 18, "Lebenspunkte_Aktuell": 18, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 13, "Astralpunkte_Aktuell": 13 }, { "Name": "Rhoktar4", - "Lebenspunkte_Basis": 34, "Lebenspunkte_Aktuell": 34, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 17, "Astralpunkte_Aktuell": 17 }, { "Name": "Volant", - "Lebenspunkte_Basis": 28, "Lebenspunkte_Aktuell": 28, - "Ausdauer_Basis": 0, "Ausdauer_Aktuell": 0, - "Astralpunkte_Basis": 43, "Astralpunkte_Aktuell": 43 } ], diff --git a/DiscoBot/sessions/DiscoBot-Audio-Sound.json b/DiscoBot/sessions/DiscoBot-Audio-Sound.json deleted file mode 100644 index 87a0e6b..0000000 --- a/DiscoBot/sessions/DiscoBot-Audio-Sound.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "Name": "Test", - "Url": "http", - "Volume": 100 - } -] \ No newline at end of file diff --git a/DiscoBot/sessions/DiscoBot-Commands-Help.json b/DiscoBot/sessions/DiscoBot-Commands-Help.json deleted file mode 100644 index df1046d..0000000 --- a/DiscoBot/sessions/DiscoBot-Commands-Help.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "Context": null - }, - { - "Context": null - }, - { - "Context": null - }, - { - "Context": null - }, - { - "Context": null - }, - { - "Context": null - } -] \ No newline at end of file diff --git a/DiscoBot/sessions/DiscoBot-DSA_Game-Characters-Character.json b/DiscoBot/sessions/DiscoBot-DSA_Game-Characters-Character.json deleted file mode 100644 index 2dee9db..0000000 --- a/DiscoBot/sessions/DiscoBot-DSA_Game-Characters-Character.json +++ /dev/null @@ -1,290 +0,0 @@ -[ - { - "Name": "Felis Exodus Schattenwald", - "Lebenspunkte_Basis": 30, - "Lebenspunkte_Aktuell": 30, - "Astralpunkte_Basis": 20, - "Astralpunkte_Aktuell": 20, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - }, - { - "Name": "Gardist", - "Lebenspunkte_Basis": 29, - "Lebenspunkte_Aktuell": 29, - "Astralpunkte_Basis": 0, - "Astralpunkte_Aktuell": 0, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - }, - { - "Name": "Hartmut Reiher", - "Lebenspunkte_Basis": 31, - "Lebenspunkte_Aktuell": 31, - "Astralpunkte_Basis": 0, - "Astralpunkte_Aktuell": 0, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - }, - { - "Name": "Helga vom Drachenei, Tausendsasserin", - "Lebenspunkte_Basis": 21, - "Lebenspunkte_Aktuell": 21, - "Astralpunkte_Basis": 35, - "Astralpunkte_Aktuell": 35, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - }, - { - "Name": "Krenko", - "Lebenspunkte_Basis": 25, - "Lebenspunkte_Aktuell": 25, - "Astralpunkte_Basis": 0, - "Astralpunkte_Aktuell": 0, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - }, - { - "Name": "Ledur Torfinson", - "Lebenspunkte_Basis": 39, - "Lebenspunkte_Aktuell": 39, - "Astralpunkte_Basis": 0, - "Astralpunkte_Aktuell": 0, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - }, - { - "Name": "Morla", - "Lebenspunkte_Basis": 26, - "Lebenspunkte_Aktuell": 26, - "Astralpunkte_Basis": 13, - "Astralpunkte_Aktuell": 13, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - }, - { - "Name": "Numeri Illuminus", - "Lebenspunkte_Basis": 28, - "Lebenspunkte_Aktuell": 28, - "Astralpunkte_Basis": 40, - "Astralpunkte_Aktuell": 40, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - }, - { - "Name": "Potus", - "Lebenspunkte_Basis": 39, - "Lebenspunkte_Aktuell": 39, - "Astralpunkte_Basis": 16, - "Astralpunkte_Aktuell": 16, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - }, - { - "Name": "Pump aus der Gosse", - "Lebenspunkte_Basis": 18, - "Lebenspunkte_Aktuell": 18, - "Astralpunkte_Basis": 13, - "Astralpunkte_Aktuell": 13, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - }, - { - "Name": "Rhoktar4", - "Lebenspunkte_Basis": 34, - "Lebenspunkte_Aktuell": 34, - "Astralpunkte_Basis": 17, - "Astralpunkte_Aktuell": 17, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - }, - { - "Name": "Volant", - "Lebenspunkte_Basis": 28, - "Lebenspunkte_Aktuell": 28, - "Astralpunkte_Basis": 43, - "Astralpunkte_Aktuell": 43, - "Ausdauer_Basis": 0, - "Ausdauer_Aktuell": 0, - "Eigenschaften": {}, - "Talente": [], - "Zauber": [], - "Kampftalente": [], - "Vorteile": [], - "PropTable": { - "MU": "Mut", - "KL": "Klugheit", - "IN": "Intuition", - "CH": "Charisma", - "FF": "Fingerfertigkeit", - "GE": "Gewandtheit", - "KO": "Konstitution", - "KK": "Körperkraft" - } - } -] \ No newline at end of file diff --git a/DiscoBot/sessions/copy/copy-0.json b/DiscoBot/sessions/copy/copy-0.json new file mode 100644 index 0000000..03c46f3 --- /dev/null +++ b/DiscoBot/sessions/copy/copy-0.json @@ -0,0 +1,79 @@ +{ + "GeneralContext": null, + "Relation": {}, + "Chars": [ + { + "Name": "Felis Exodus Schattenwald", + "Lebenspunkte_Aktuell": 30, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 20 + }, + { + "Name": "Gardist", + "Lebenspunkte_Aktuell": 29, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Hartmut Reiher", + "Lebenspunkte_Aktuell": 31, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Helga vom Drachenei, Tausendsasserin", + "Lebenspunkte_Aktuell": 21, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 35 + }, + { + "Name": "Krenko", + "Lebenspunkte_Aktuell": 25, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Ledur Torfinson", + "Lebenspunkte_Aktuell": 39, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Morla", + "Lebenspunkte_Aktuell": 26, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 13 + }, + { + "Name": "Numeri Illuminus", + "Lebenspunkte_Aktuell": 28, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 40 + }, + { + "Name": "Potus", + "Lebenspunkte_Aktuell": 39, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 16 + }, + { + "Name": "Pump aus der Gosse", + "Lebenspunkte_Aktuell": 18, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 13 + }, + { + "Name": "Rhoktar4", + "Lebenspunkte_Aktuell": 34, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 17 + }, + { + "Name": "Volant", + "Lebenspunkte_Aktuell": 28, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 43 + } + ], + "SessionName": null +} \ No newline at end of file diff --git a/DiscoBot/sessions/test/test-0.json b/DiscoBot/sessions/test/test-0.json new file mode 100644 index 0000000..03c46f3 --- /dev/null +++ b/DiscoBot/sessions/test/test-0.json @@ -0,0 +1,79 @@ +{ + "GeneralContext": null, + "Relation": {}, + "Chars": [ + { + "Name": "Felis Exodus Schattenwald", + "Lebenspunkte_Aktuell": 30, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 20 + }, + { + "Name": "Gardist", + "Lebenspunkte_Aktuell": 29, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Hartmut Reiher", + "Lebenspunkte_Aktuell": 31, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Helga vom Drachenei, Tausendsasserin", + "Lebenspunkte_Aktuell": 21, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 35 + }, + { + "Name": "Krenko", + "Lebenspunkte_Aktuell": 25, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Ledur Torfinson", + "Lebenspunkte_Aktuell": 39, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Morla", + "Lebenspunkte_Aktuell": 26, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 13 + }, + { + "Name": "Numeri Illuminus", + "Lebenspunkte_Aktuell": 28, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 40 + }, + { + "Name": "Potus", + "Lebenspunkte_Aktuell": 39, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 16 + }, + { + "Name": "Pump aus der Gosse", + "Lebenspunkte_Aktuell": 18, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 13 + }, + { + "Name": "Rhoktar4", + "Lebenspunkte_Aktuell": 34, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 17 + }, + { + "Name": "Volant", + "Lebenspunkte_Aktuell": 28, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 43 + } + ], + "SessionName": null +} \ No newline at end of file diff --git a/DiscoBot/sessions/test/test-1.json b/DiscoBot/sessions/test/test-1.json new file mode 100644 index 0000000..03c46f3 --- /dev/null +++ b/DiscoBot/sessions/test/test-1.json @@ -0,0 +1,79 @@ +{ + "GeneralContext": null, + "Relation": {}, + "Chars": [ + { + "Name": "Felis Exodus Schattenwald", + "Lebenspunkte_Aktuell": 30, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 20 + }, + { + "Name": "Gardist", + "Lebenspunkte_Aktuell": 29, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Hartmut Reiher", + "Lebenspunkte_Aktuell": 31, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Helga vom Drachenei, Tausendsasserin", + "Lebenspunkte_Aktuell": 21, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 35 + }, + { + "Name": "Krenko", + "Lebenspunkte_Aktuell": 25, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Ledur Torfinson", + "Lebenspunkte_Aktuell": 39, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 0 + }, + { + "Name": "Morla", + "Lebenspunkte_Aktuell": 26, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 13 + }, + { + "Name": "Numeri Illuminus", + "Lebenspunkte_Aktuell": 28, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 40 + }, + { + "Name": "Potus", + "Lebenspunkte_Aktuell": 39, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 16 + }, + { + "Name": "Pump aus der Gosse", + "Lebenspunkte_Aktuell": 18, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 13 + }, + { + "Name": "Rhoktar4", + "Lebenspunkte_Aktuell": 34, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 17 + }, + { + "Name": "Volant", + "Lebenspunkte_Aktuell": 28, + "Ausdauer_Aktuell": 0, + "Astralpunkte_Aktuell": 43 + } + ], + "SessionName": null +} \ No newline at end of file -- cgit v1.3.1