From 6e7b818154e7e6fe34f69bd7d51033c1b3de1e0b Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Sun, 7 Oct 2018 12:06:12 +0200 Subject: fixed stuff --- DSACore/DSA_Game/Dsa.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'DSACore/DSA_Game') diff --git a/DSACore/DSA_Game/Dsa.cs b/DSACore/DSA_Game/Dsa.cs index 9602791..3b2e4aa 100644 --- a/DSACore/DSA_Game/Dsa.cs +++ b/DSACore/DSA_Game/Dsa.cs @@ -15,8 +15,11 @@ namespace DSACore.DSA_Game public static class Dsa { +#if DEBUG public const string rootPath = "C:\\Users\\Dennis\\Source\\Repos\\DiscoBot\\DSACore\\";//"DiscoBot\\DSACore\\"; - +#else + public const string rootPath = "";//"DiscoBot\\DSACore\\"; +#endif private static Session s_session; public static List Chars { get; set; } = new List(); // list of all characters @@ -48,7 +51,7 @@ namespace DSACore.DSA_Game //new .Auxiliary.Calculator.StringSolver("1d100 - (1d200 + 1) * -50000").Solve(); /*Session = new Session();*/ // relation.Add("Papo", "Pump aus der Gosse"); - foreach (var filename in Directory.GetFiles(rootPath + "helden", "*.xml")) + /*foreach (var filename in Directory.GetFiles(rootPath + "helden", "*.xml")) { Chars.Add(new Character(filename)); (Chars.Last() as Character)?.Talente.Select(x => new Talent(x.Name, x.Probe, 0)) @@ -56,9 +59,11 @@ namespace DSACore.DSA_Game (Chars.Last() as Character)?.Zauber.Select(x => new Zauber(x.Name, x.Probe, 0, x.Complexity)) .Where(c => !Zauber.Exists(v => v.Name.Equals(c.Name))).ToList().ForEach(v => Zauber.Add(v)); } +*/ Properties.Deserialize(rootPath+"Properties"); Properties.Serialize(rootPath + "Properties"); + Talente = Talente.OrderBy(x => x.Name).ToList(); Zauber = Zauber.OrderBy(x => x.Name).ToList(); -- cgit v1.2.3-70-g09d2