summaryrefslogtreecommitdiff
path: root/DSACore/DSA_Game
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-09-27 23:46:43 +0200
committerTrueDoctor <d-kobert@web.de>2018-09-27 23:46:43 +0200
commitad0a46175e7efbbd5bdf952aacc69d8a7750b05a (patch)
tree4dc970234a3273940c59aecdb305bbca2b2e9ab3 /DSACore/DSA_Game
parent39da0da55a09a56bae3c250e6108c8edf77bfbfd (diff)
implemented rudemetary groups
Diffstat (limited to 'DSACore/DSA_Game')
-rw-r--r--DSACore/DSA_Game/Dsa.cs4
-rw-r--r--DSACore/DSA_Game/Save/Session.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/DSACore/DSA_Game/Dsa.cs b/DSACore/DSA_Game/Dsa.cs
index 7258e8c..94de194 100644
--- a/DSACore/DSA_Game/Dsa.cs
+++ b/DSACore/DSA_Game/Dsa.cs
@@ -13,7 +13,7 @@ namespace DSACore.DSA_Game
public static class Dsa
{
- public const string rootPath = "DiscoBot\\DSACore\\";
+ public const string rootPath = "";//"DiscoBot\\DSACore\\";
private static Session s_session;
@@ -46,7 +46,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("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))
diff --git a/DSACore/DSA_Game/Save/Session.cs b/DSACore/DSA_Game/Save/Session.cs
index d343920..b402656 100644
--- a/DSACore/DSA_Game/Save/Session.cs
+++ b/DSACore/DSA_Game/Save/Session.cs
@@ -9,7 +9,7 @@ namespace DSACore.DSA_Game.Save
public class Session
{
- public static string DirectoryPath { get; set; } = @"sessions";
+ public static string DirectoryPath { get; set; } = Dsa.rootPath + @"sessions";
public Dictionary<string, string> Relation { get; set; } = new Dictionary<string, string>(); // dictionary to match the char