diff --git a/PoE-MxFilterGen/PoE-MxFilterGen.csproj b/PoE-MxFilterGen/PoE-MxFilterGen.csproj index e77f31d..e90bc8a 100644 --- a/PoE-MxFilterGen/PoE-MxFilterGen.csproj +++ b/PoE-MxFilterGen/PoE-MxFilterGen.csproj @@ -55,12 +55,10 @@ - - diff --git a/PoE-MxFilterGen/TierGen.cs b/PoE-MxFilterGen/TierGen.cs deleted file mode 100644 index ec08e09..0000000 --- a/PoE-MxFilterGen/TierGen.cs +++ /dev/null @@ -1,122 +0,0 @@ -using PoE_MxFilterGen.json; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace PoE_MxFilterGen -{ - class TierGen - { - private static string iB; - - public static void Gen(string section, string api, string league, int minValue) - { - string giturl = settings.GetGIT(); - var js = web.ReadString($@"{giturl}/PoE-MxFilter-Structure/master/Tiers.txt"); - - if (iB == null) { iB = @""""""; } - 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 {js}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, @" HasExplicitMod ""Veiled""" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetTextColor 255 215 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBorderColor 112 255 112 255" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetFontSize 40" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " MinimapIcon 1 Green Star" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " PlayEffect Green" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, @" CustomAlertSound ""mx_tier.mp3""" + Environment.NewLine, Encoding.UTF8); - - File.AppendAllText(fn, "" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, "Show" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" BaseType {js}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " FracturedItem True" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetTextColor 255 215 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBorderColor 112 255 112 255" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetFontSize 40" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " MinimapIcon 1 Green Star" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " PlayEffect Green" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, @" CustomAlertSound ""mx_tier.mp3""" + Environment.NewLine, Encoding.UTF8); - - File.AppendAllText(fn, "" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, "Show" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" BaseType {js}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SynthesisedItem True" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetTextColor 255 215 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBorderColor 112 255 112 255" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetFontSize 40" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " MinimapIcon 1 Green Star" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " PlayEffect Green" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, @" CustomAlertSound ""mx_tier.mp3""" + Environment.NewLine, Encoding.UTF8); - - File.AppendAllText(fn, "" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, "Show" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" BaseType {js}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Identified True" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetTextColor 255 215 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBorderColor 0 0 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, @" CustomAlertSound ""mx_tier.mp3""" + Environment.NewLine, Encoding.UTF8); - - File.AppendAllText(fn, "" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, "Show" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" BaseType {js}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Corrupted True" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetTextColor 255 215 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBorderColor 210 0 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetFontSize 35" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, @" CustomAlertSound ""mx_tier.mp3""" + Environment.NewLine, Encoding.UTF8); - - File.AppendAllText(fn, "" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, "Show" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" BaseType {js}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel >= 75" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel <= 100" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetTextColor 255 215 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBorderColor 184 218 242" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetFontSize 40" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, @" CustomAlertSound ""mx_tier.mp3""" + Environment.NewLine, Encoding.UTF8); - - File.AppendAllText(fn, "" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, "Show" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" BaseType {js}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel >= 60" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel <= 74" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetTextColor 255 215 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBorderColor 222 118 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetFontSize 40" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, @" CustomAlertSound ""mx_tier.mp3""" + Environment.NewLine, Encoding.UTF8); - - File.AppendAllText(fn, "" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, "Show" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" BaseType {js}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel >= 60" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel <= 74" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Rare" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetTextColor 255 215 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBackgroundColor 54 54 54" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBorderColor 222 118 0" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetFontSize 40" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, @" CustomAlertSound ""mx_tier.mp3""" + Environment.NewLine, Encoding.UTF8); - } - - } -} diff --git a/PoE-MxFilterGen/generator/fossil.cs b/PoE-MxFilterGen/generator/fossil.cs deleted file mode 100644 index 584c33e..0000000 --- a/PoE-MxFilterGen/generator/fossil.cs +++ /dev/null @@ -1,122 +0,0 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; - -namespace FOSSIL__GEN_ -{ - public class Sparkline - { - public List data { get; set; } - public double totalChange { get; set; } - - } - - public class LowConfidenceSparkline - { - public List data { get; set; } - public double totalChange { get; set; } - - } - - public class ExplicitModifier - { - public string text { get; set; } - public bool optional { get; set; } - - } - - public class Line - { - 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 object 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 Sparkline sparkline { get; set; } - public LowConfidenceSparkline lowConfidenceSparkline { get; set; } - public List implicitModifiers { get; set; } - public List explicitModifiers { get; set; } - public string flavourText { get; set; } - public bool corrupted { get; set; } - public int gemLevel { get; set; } - public int gemQuality { get; set; } - public string itemType { get; set; } - public double chaosValue { get; set; } - public double exaltedValue { get; set; } - public int count { get; set; } - public string detailsId { get; set; } - public object tradeInfo { get; set; } - public object mapRegion { get; set; } - - } - - public class Translations - { - - } - - public class Language - { - public string name { get; set; } - public Translations translations { get; set; } - - } - - public class RootFossil - { - public List lines { get; set; } - public Language language { get; set; } - - } - - public class fossil - { - private static string iB; - - public static void Gen(string section, string api, string league, int minValue) - { - List itemBase = new List(); - - var RootFossil = JsonConvert.DeserializeObject>(File.ReadAllText("data/ninja.fossil.json", Encoding.UTF8)); - - foreach (var ln in RootFossil) - { - // Check if the item value is equal or superior to the minimum value - - foreach (var r in ln.lines) - { - if (r.chaosValue >= 10) - { - if (!itemBase.Contains(r.name)) - { - itemBase.Add(r.name); - iB = iB + string.Format(@" ""{0}""", r.name); - } - } - } - } - - if (iB == null) { iB = @""""""; } - 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 ""Stackable Currency""" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " BaseType" + iB + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetTextColor 255 165 0 255" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBackgroundColor 255 255 255" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetBorderColor 255 165 0 255" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " SetFontSize 40" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, @" CustomAlertSound ""mx_fossil.mp3""", Encoding.UTF8); - } - } -} diff --git a/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe b/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe index a4fb9f7..556a5c6 100644 Binary files a/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe and b/PoE-MxFilterGen/obj/Debug/mxfiltergen.exe differ diff --git a/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb b/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb index 952289f..4edb878 100644 Binary files a/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb and b/PoE-MxFilterGen/obj/Debug/mxfiltergen.pdb differ