summaryrefslogtreecommitdiff
path: root/DSACore/DSA_Game
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-10-07 12:06:12 +0200
committerTrueDoctor <d-kobert@web.de>2018-10-07 12:06:12 +0200
commit6e7b818154e7e6fe34f69bd7d51033c1b3de1e0b (patch)
tree80eb75bf07e8f64c59e5115eeb57e182f6de326a /DSACore/DSA_Game
parent373af0a9c563dcd6bfb5e136f75f23e48bfb961c (diff)
fixed stuff
Diffstat (limited to 'DSACore/DSA_Game')
-rw-r--r--DSACore/DSA_Game/Dsa.cs9
1 files changed, 7 insertions, 2 deletions
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<ICharacter> Chars { get; set; } = new List<ICharacter>(); // 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();