diff --git a/.vs/PoE-MxFilterGen/v15/.suo b/.vs/PoE-MxFilterGen/v15/.suo
index 48cc5a2..e260ba4 100644
Binary files a/.vs/PoE-MxFilterGen/v15/.suo and b/.vs/PoE-MxFilterGen/v15/.suo differ
diff --git a/CHANGELOG b/CHANGELOG
index bd10ef5..e9885d7 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,6 @@
+[January 1, 2018][2.0.0]
++ Structure release. Will now generate from method or static data.
+
[October 26, 2017][1.0.4]
F Fixed 3 crashes due to "not nullable variables".
-F Will now verify if \data and \gen exists and create them if they don't.
-
-
-
+F Will now verify if \data and \gen exists and create them if they don't.
\ No newline at end of file
diff --git a/PoE-MxFilterGen/Chaos_Orb.ico b/PoE-MxFilterGen/Chaos_Orb.ico
new file mode 100644
index 0000000..f133660
Binary files /dev/null and b/PoE-MxFilterGen/Chaos_Orb.ico differ
diff --git a/PoE-MxFilterGen/PoE-MxFilterGen.csproj b/PoE-MxFilterGen/PoE-MxFilterGen.csproj
index ff4ac18..1187119 100644
--- a/PoE-MxFilterGen/PoE-MxFilterGen.csproj
+++ b/PoE-MxFilterGen/PoE-MxFilterGen.csproj
@@ -31,6 +31,9 @@
prompt
4
+
+ Chaos_Orb.ico
+
..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll
@@ -48,8 +51,15 @@
+
+
+
+
+
+
+
@@ -60,5 +70,8 @@
+
+
+
\ No newline at end of file
diff --git a/PoE-MxFilterGen/json/accessories.cs b/PoE-MxFilterGen/json/accessories.cs
index 28d8ee3..125e9da 100644
--- a/PoE-MxFilterGen/json/accessories.cs
+++ b/PoE-MxFilterGen/json/accessories.cs
@@ -53,7 +53,7 @@ namespace PoE_MxFilterGen.json
{
private static string iB;
- public static void GenAccessories()
+ public static void GenAccessories(string section)
{
List itemBase = new List();
RootAccessory j = JsonConvert.DeserializeObject(File.ReadAllText("data/ninja.accessory.json", Encoding.UTF8));
@@ -66,7 +66,10 @@ namespace PoE_MxFilterGen.json
// Check if the item value is equal or superior to the minimum value
if (ln.chaosValue >= json.settings.GetMinimumValue())
{
- msg.CMW(string.Format("[{0}][{1}c] Added to the list.", ln.baseType, ln.chaosValue), true, 1);
+ if (json.settings.GetVerbose())
+ {
+ msg.CMW(string.Format("[{0}][{1}c] Added to the list.", ln.name, ln.chaosValue), true, 1);
+ }
if (!itemBase.Contains(ln.baseType))
{
itemBase.Add(ln.baseType);
@@ -76,16 +79,17 @@ namespace PoE_MxFilterGen.json
}
}
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", "## Accessories Gen" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", "Show" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " BaseType" + iB + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " Rarity = Unique" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetTextColor 222 95 0" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetBackgroundColor 255 255 255" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetBorderColor 180 96 0" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetFontSize 45" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " PlayAlertSound 8 300" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", "## END #######" + Environment.NewLine + Environment.NewLine, Encoding.UTF8);
+ string fn = @"gen\" + section + ".filter";
+ File.AppendAllText(fn, string.Format("# Section: {0}", section) + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, "" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, "Show" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " BaseType" + iB + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " Rarity = Unique" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetTextColor 222 95 0" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetBackgroundColor 255 255 255" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetBorderColor 180 96 0" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetFontSize 45" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " PlayAlertSound 8 300", Encoding.UTF8);
}
}
}
diff --git a/PoE-MxFilterGen/json/armours.cs b/PoE-MxFilterGen/json/armours.cs
index ab5afde..499cc3a 100644
--- a/PoE-MxFilterGen/json/armours.cs
+++ b/PoE-MxFilterGen/json/armours.cs
@@ -53,7 +53,7 @@ namespace PoE_MxFilterGen.json
{
private static string iB;
- public static void GenArmours()
+ public static void GenArmours(string section)
{
List itemBase = new List();
RootArmour j = JsonConvert.DeserializeObject(File.ReadAllText("data/ninja.armour.json", Encoding.UTF8));
@@ -66,7 +66,10 @@ namespace PoE_MxFilterGen.json
// Check if the item value is equal or superior to the minimum value
if (ln.chaosValue >= json.settings.GetMinimumValue())
{
- msg.CMW(string.Format("[{0}][{1}c] Added to the list.", ln.baseType, ln.chaosValue), true, 1);
+ if (json.settings.GetVerbose())
+ {
+ msg.CMW(string.Format("[{0}][{1}c] Added to the list.", ln.name, ln.chaosValue), true, 1);
+ }
if (!itemBase.Contains(ln.baseType))
{
itemBase.Add(ln.baseType);
@@ -76,16 +79,17 @@ namespace PoE_MxFilterGen.json
}
}
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", "## Armours Gen" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", "Show" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " BaseType" + iB + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " Rarity = Unique" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetTextColor 222 95 0" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetBackgroundColor 255 255 255" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetBorderColor 180 96 0" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetFontSize 45" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " PlayAlertSound 8 300" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", "## END #######" + Environment.NewLine + Environment.NewLine, Encoding.UTF8);
+ string fn = @"gen\" + section + ".filter";
+ File.AppendAllText(fn, string.Format("# Section: {0}", section) + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, "" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, "Show" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " BaseType" + iB + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " Rarity = Unique" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetTextColor 222 95 0" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetBackgroundColor 255 255 255" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetBorderColor 180 96 0" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetFontSize 45" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " PlayAlertSound 8 300", Encoding.UTF8);
}
}
}
diff --git a/PoE-MxFilterGen/json/cards.cs b/PoE-MxFilterGen/json/cards.cs
index aa43ea6..1e1072f 100644
--- a/PoE-MxFilterGen/json/cards.cs
+++ b/PoE-MxFilterGen/json/cards.cs
@@ -53,7 +53,7 @@ namespace PoE_MxFilterGen.json
{
private static string iB;
- public static void GenCards()
+ public static void GenCards(string section)
{
List itemBase = new List();
RootCard j = JsonConvert.DeserializeObject(File.ReadAllText("data/ninja.card.json", Encoding.UTF8));
@@ -66,7 +66,10 @@ namespace PoE_MxFilterGen.json
// Check if the item value is equal or superior to the minimum value
if (ln.chaosValue >= json.settings.GetMinimumValue())
{
- msg.CMW(string.Format("[{0}][{1}c] Added to the list.", ln.name, ln.chaosValue), true, 1);
+ if (json.settings.GetVerbose())
+ {
+ msg.CMW(string.Format("[{0}][{1}c] Added to the list.", ln.name, ln.chaosValue), true, 1);
+ }
if (!itemBase.Contains(ln.name))
{
itemBase.Add(ln.name);
@@ -76,16 +79,17 @@ namespace PoE_MxFilterGen.json
}
}
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", "## Cards Gen" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", "Show" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", @" Class ""Divination Card""" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " BaseType" + iB + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetTextColor 20 65 110" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetBackgroundColor 224 224 224" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetBorderColor 57 97 145" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " SetFontSize 45" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", " PlayAlertSound 5 300" + Environment.NewLine, Encoding.UTF8);
- File.AppendAllText(@"gen\" + main.fDate + "_gen.txt", "## END #######" + Environment.NewLine + Environment.NewLine, Encoding.UTF8);
+ string fn = @"gen\"+section+".filter";
+ File.AppendAllText(fn, string.Format("# Section: {0}",section) + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, "" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, "Show" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, @" Class ""Divination Card""" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " BaseType" + iB + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetTextColor 20 65 110" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetBackgroundColor 224 224 224" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetBorderColor 57 97 145" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " SetFontSize 45" + Environment.NewLine, Encoding.UTF8);
+ File.AppendAllText(fn, " PlayAlertSound 5 300", Encoding.UTF8);
}
}
}
diff --git a/PoE-MxFilterGen/json/chanceBelt.cs b/PoE-MxFilterGen/json/chanceBelt.cs
new file mode 100644
index 0000000..d04b8ce
--- /dev/null
+++ b/PoE-MxFilterGen/json/chanceBelt.cs
@@ -0,0 +1,93 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace PoE_MxFilterGen.json
+{
+ public class ChanceSparklineBelt
+ {
+ public List data { get; set; }
+ public double? totalChange { get; set; }
+ }
+
+ public class ChanceExplicitModifierBelt
+ {
+ public string text { get; set; }
+ public bool optional { get; set; }
+ }
+
+ public class ChanceLineBelt
+ {
+ public int id { get; set; }
+ public string name { get; set; }
+ public string icon { get; set; }
+ public int mapTier { get; set; }
+ public int levelRequired { get; set; }
+ public string baseType { get; set; }
+ public int stackSize { get; set; }
+ public object variant { get; set; }
+ public object prophecyText { get; set; }
+ public object artFilename { get; set; }
+ public int links { get; set; }
+ public int itemClass { get; set; }
+ public ChanceSparklineQuiver sparkline { get; set; }
+ public List