diff --git a/CHANCING (Belt)/CHANCING (Belt).csproj b/CHANCING (Belt)/CHANCING (Belt).csproj deleted file mode 100644 index 4142e80..0000000 --- a/CHANCING (Belt)/CHANCING (Belt).csproj +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Debug - AnyCPU - {30965CCD-46DF-47A3-BDBC-6FC0B0900B4E} - Library - Properties - CHANCING__Belt_ - CHANCING %28Belt%29 - v4.6.1 - 512 - - - true - full - false - ..\Builds\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\Builds\ - TRACE - prompt - 4 - - - - ..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/CHANCING (Belt)/Generator.cs b/CHANCING (Belt)/Generator.cs deleted file mode 100644 index 2574537..0000000 --- a/CHANCING (Belt)/Generator.cs +++ /dev/null @@ -1,100 +0,0 @@ -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 -{ - public class ChanceSparklineBody - { - public List data { get; set; } - public double? totalChange { get; set; } - } - - public class ChanceExplicitModifierBody - { - public string text { get; set; } - public bool optional { get; set; } - } - - public class ChanceLineBody - { - 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 ChanceSparklineBody sparkline { get; set; } - public List implicitModifiers { get; set; } - public List explicitModifiers { get; set; } - public string flavourText { get; set; } - public string itemType { get; set; } - public double chaosValue { get; set; } - public double exaltedValue { get; set; } - public int count { get; set; } - } - - public class Theme - { - public string border { get; set; } - public string background { get; set; } - public string text { get; set; } - public int text_size { get; set; } - } - public class ChanceRootBody - { - public List lines { get; set; } - } - - class Generator - { - private static string iB; - - public static void Gen(string section, string api, string league, int minValue, int chanceMinValue, int confidence) - { - Theme jt = JsonConvert.DeserializeObject(File.ReadAllText("structure/Chancing.json", Encoding.UTF8)); - - List itemBase = new List(); - ChanceRootBody j = JsonConvert.DeserializeObject(File.ReadAllText("data/ninja.accessory.json", Encoding.UTF8)); - - foreach (var ln in j.lines) - { - // Check if the item count is at least equal to the desired confidence level - if (ln.count >= confidence && ln.links <= 4 && ln.itemType == "Belt") - { - // Check if the item value is equal or superior to the minimum value - if (ln.chaosValue >= chanceMinValue) - { - if (!itemBase.Contains(ln.baseType)) - { - itemBase.Add(ln.baseType); - iB = iB + string.Format(@" ""{0}""", ln.baseType); - } - } - } - } - - 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" + iB + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel >= 50" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetTextColor {jt.text}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetBorderColor {jt.border}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetFontSize {jt.text_size}", Encoding.UTF8); - } - } -} diff --git a/CHANCING (Belt)/Properties/AssemblyInfo.cs b/CHANCING (Belt)/Properties/AssemblyInfo.cs deleted file mode 100644 index b69d639..0000000 --- a/CHANCING (Belt)/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Les informations générales relatives à un assembly dépendent de -// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations -// associées à un assembly. -[assembly: AssemblyTitle("CHANCING (Belt)")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CHANCING (Belt)")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly -// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de -// COM, affectez la valeur true à l'attribut ComVisible sur ce type. -[assembly: ComVisible(false)] - -// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM -[assembly: Guid("30965ccd-46df-47a3-bdbc-6fc0b0900b4e")] - -// Les informations de version pour un assembly se composent des quatre valeurs suivantes : -// -// Version principale -// Version secondaire -// Numéro de build -// Révision -// -// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut -// en utilisant '*', comme indiqué ci-dessous : -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CHANCING (Belt)/packages.config b/CHANCING (Belt)/packages.config deleted file mode 100644 index 5762754..0000000 --- a/CHANCING (Belt)/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/CHANCING (Body)/CHANCING (Body).csproj b/CHANCING (Body)/CHANCING (Body).csproj deleted file mode 100644 index 13c4e3a..0000000 --- a/CHANCING (Body)/CHANCING (Body).csproj +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Debug - AnyCPU - {B4433CCE-879E-4061-9E18-518D473A39DC} - Library - Properties - chancing_body - CHANCING %28Body%29 - v4.6.1 - 512 - - - true - full - false - ..\Builds\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\Builds\ - TRACE - prompt - 4 - - - - ..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/CHANCING (Body)/Generator.cs b/CHANCING (Body)/Generator.cs deleted file mode 100644 index 048de50..0000000 --- a/CHANCING (Body)/Generator.cs +++ /dev/null @@ -1,101 +0,0 @@ -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 -{ - public class ChanceSparklineBody - { - public List data { get; set; } - public double? totalChange { get; set; } - } - - public class ChanceExplicitModifierBody - { - public string text { get; set; } - public bool optional { get; set; } - } - - public class ChanceLineBody - { - 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 ChanceSparklineBody sparkline { get; set; } - public List implicitModifiers { get; set; } - public List explicitModifiers { get; set; } - public string flavourText { get; set; } - public string itemType { get; set; } - public double chaosValue { get; set; } - public double exaltedValue { get; set; } - public int count { get; set; } - } - - public class Theme - { - public string border { get; set; } - public string background { get; set; } - public string text { get; set; } - public int text_size { get; set; } - } - - public class ChanceRootBody - { - public List lines { get; set; } - } - - class Generator - { - private static string iB; - - public static void Gen(string section, string api, string league, int minValue, int chanceMinValue, int confidence) - { - Theme jt = JsonConvert.DeserializeObject(File.ReadAllText("structure/Chancing.json", Encoding.UTF8)); - - List itemBase = new List(); - ChanceRootBody j = JsonConvert.DeserializeObject(File.ReadAllText("data/ninja.armour.json", Encoding.UTF8)); - - foreach (var ln in j.lines) - { - // Check if the item count is at least equal to the desired confidence level - if (ln.count >= confidence && ln.links <= 4 && ln.itemType == "Body Armour") - { - // Check if the item value is equal or superior to the minimum value - if (ln.chaosValue >= chanceMinValue) - { - if (!itemBase.Contains(ln.baseType)) - { - itemBase.Add(ln.baseType); - iB = iB + string.Format(@" ""{0}""", ln.baseType); - } - } - } - } - - 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" + iB + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel >= 50" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetTextColor {jt.text}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetBorderColor {jt.border}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetFontSize {jt.text_size}", Encoding.UTF8); - } - } -} diff --git a/CHANCING (Body)/Properties/AssemblyInfo.cs b/CHANCING (Body)/Properties/AssemblyInfo.cs deleted file mode 100644 index 4596ef1..0000000 --- a/CHANCING (Body)/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Les informations générales relatives à un assembly dépendent de -// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations -// associées à un assembly. -[assembly: AssemblyTitle("CHANCING (Body)")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CHANCING (Body)")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly -// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de -// COM, affectez la valeur true à l'attribut ComVisible sur ce type. -[assembly: ComVisible(false)] - -// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM -[assembly: Guid("b4433cce-879e-4061-9e18-518d473a39dc")] - -// Les informations de version pour un assembly se composent des quatre valeurs suivantes : -// -// Version principale -// Version secondaire -// Numéro de build -// Révision -// -// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut -// en utilisant '*', comme indiqué ci-dessous : -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CHANCING (Body)/packages.config b/CHANCING (Body)/packages.config deleted file mode 100644 index 5762754..0000000 --- a/CHANCING (Body)/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/CHANCING (Boots)/CHANCING (Boots).csproj b/CHANCING (Boots)/CHANCING (Boots).csproj deleted file mode 100644 index f56201c..0000000 --- a/CHANCING (Boots)/CHANCING (Boots).csproj +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Debug - AnyCPU - {BB8A89F2-5FD2-476C-8484-B01B60D70576} - Library - Properties - chancing_boot - CHANCING %28Boots%29 - v4.6.1 - 512 - - - true - full - false - ..\Builds\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\Builds\ - TRACE - prompt - 4 - - - - ..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/CHANCING (Boots)/Generator.cs b/CHANCING (Boots)/Generator.cs deleted file mode 100644 index 2051f82..0000000 --- a/CHANCING (Boots)/Generator.cs +++ /dev/null @@ -1,101 +0,0 @@ -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 -{ - public class ChanceSparklineBody - { - public List data { get; set; } - public double? totalChange { get; set; } - } - - public class ChanceExplicitModifierBody - { - public string text { get; set; } - public bool optional { get; set; } - } - - public class ChanceLineBody - { - 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 ChanceSparklineBody sparkline { get; set; } - public List implicitModifiers { get; set; } - public List explicitModifiers { get; set; } - public string flavourText { get; set; } - public string itemType { get; set; } - public double chaosValue { get; set; } - public double exaltedValue { get; set; } - public int count { get; set; } - } - - public class Theme - { - public string border { get; set; } - public string background { get; set; } - public string text { get; set; } - public int text_size { get; set; } - } - - public class ChanceRootBody - { - public List lines { get; set; } - } - - class Generator - { - private static string iB; - - public static void Gen(string section, string api, string league, int minValue, int chanceMinValue, int confidence) - { - Theme jt = JsonConvert.DeserializeObject(File.ReadAllText("structure/Chancing.json", Encoding.UTF8)); - - List itemBase = new List(); - ChanceRootBody j = JsonConvert.DeserializeObject(File.ReadAllText("data/ninja.armour.json", Encoding.UTF8)); - - foreach (var ln in j.lines) - { - // Check if the item count is at least equal to the desired confidence level - if (ln.count >= confidence && ln.links <= 4 && ln.itemType == "Boots") - { - // Check if the item value is equal or superior to the minimum value - if (ln.chaosValue >= chanceMinValue) - { - if (!itemBase.Contains(ln.baseType)) - { - itemBase.Add(ln.baseType); - iB = iB + string.Format(@" ""{0}""", ln.baseType); - } - } - } - } - - 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" + iB + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel >= 50" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetTextColor {jt.text}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetBorderColor {jt.border}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetFontSize {jt.text_size}", Encoding.UTF8); - } - } -} diff --git a/CHANCING (Boots)/Properties/AssemblyInfo.cs b/CHANCING (Boots)/Properties/AssemblyInfo.cs deleted file mode 100644 index 051bc4b..0000000 --- a/CHANCING (Boots)/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Les informations générales relatives à un assembly dépendent de -// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations -// associées à un assembly. -[assembly: AssemblyTitle("CHANCING (Boots)")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CHANCING (Boots)")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly -// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de -// COM, affectez la valeur true à l'attribut ComVisible sur ce type. -[assembly: ComVisible(false)] - -// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM -[assembly: Guid("bb8a89f2-5fd2-476c-8484-b01b60d70576")] - -// Les informations de version pour un assembly se composent des quatre valeurs suivantes : -// -// Version principale -// Version secondaire -// Numéro de build -// Révision -// -// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut -// en utilisant '*', comme indiqué ci-dessous : -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CHANCING (Boots)/packages.config b/CHANCING (Boots)/packages.config deleted file mode 100644 index 5762754..0000000 --- a/CHANCING (Boots)/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/CHANCING (Gloves)/CHANCING (Gloves).csproj b/CHANCING (Gloves)/CHANCING (Gloves).csproj deleted file mode 100644 index 62eb619..0000000 --- a/CHANCING (Gloves)/CHANCING (Gloves).csproj +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Debug - AnyCPU - {08A15B18-3572-4A15-8FEB-16933C1E34C2} - Library - Properties - CHANCING__Gloves_ - CHANCING %28Gloves%29 - v4.6.1 - 512 - - - true - full - false - ..\Builds\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\Builds\ - TRACE - prompt - 4 - - - - ..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/CHANCING (Gloves)/Generator.cs b/CHANCING (Gloves)/Generator.cs deleted file mode 100644 index d5c1dea..0000000 --- a/CHANCING (Gloves)/Generator.cs +++ /dev/null @@ -1,101 +0,0 @@ -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 -{ - public class ChanceSparklineBody - { - public List data { get; set; } - public double? totalChange { get; set; } - } - - public class ChanceExplicitModifierBody - { - public string text { get; set; } - public bool optional { get; set; } - } - - public class ChanceLineBody - { - 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 ChanceSparklineBody sparkline { get; set; } - public List implicitModifiers { get; set; } - public List explicitModifiers { get; set; } - public string flavourText { get; set; } - public string itemType { get; set; } - public double chaosValue { get; set; } - public double exaltedValue { get; set; } - public int count { get; set; } - } - - public class Theme - { - public string border { get; set; } - public string background { get; set; } - public string text { get; set; } - public int text_size { get; set; } - } - - public class ChanceRootBody - { - public List lines { get; set; } - } - - class Generator - { - private static string iB; - - public static void Gen(string section, string api, string league, int minValue, int chanceMinValue, int confidence) - { - Theme jt = JsonConvert.DeserializeObject(File.ReadAllText("structure/Chancing.json", Encoding.UTF8)); - - List itemBase = new List(); - ChanceRootBody j = JsonConvert.DeserializeObject(File.ReadAllText("data/ninja.armour.json", Encoding.UTF8)); - - foreach (var ln in j.lines) - { - // Check if the item count is at least equal to the desired confidence level - if (ln.count >= confidence && ln.links <= 4 && ln.itemType == "Gloves") - { - // Check if the item value is equal or superior to the minimum value - if (ln.chaosValue >= chanceMinValue) - { - if (!itemBase.Contains(ln.baseType)) - { - itemBase.Add(ln.baseType); - iB = iB + string.Format(@" ""{0}""", ln.baseType); - } - } - } - } - - 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" + iB + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel >= 50" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetTextColor {jt.text}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetBorderColor {jt.border}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetFontSize {jt.text_size}", Encoding.UTF8); - } - } -} diff --git a/CHANCING (Gloves)/Properties/AssemblyInfo.cs b/CHANCING (Gloves)/Properties/AssemblyInfo.cs deleted file mode 100644 index d89597d..0000000 --- a/CHANCING (Gloves)/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Les informations générales relatives à un assembly dépendent de -// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations -// associées à un assembly. -[assembly: AssemblyTitle("CHANCING (Gloves)")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CHANCING (Gloves)")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly -// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de -// COM, affectez la valeur true à l'attribut ComVisible sur ce type. -[assembly: ComVisible(false)] - -// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM -[assembly: Guid("08a15b18-3572-4a15-8feb-16933c1e34c2")] - -// Les informations de version pour un assembly se composent des quatre valeurs suivantes : -// -// Version principale -// Version secondaire -// Numéro de build -// Révision -// -// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut -// en utilisant '*', comme indiqué ci-dessous : -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CHANCING (Gloves)/packages.config b/CHANCING (Gloves)/packages.config deleted file mode 100644 index 5762754..0000000 --- a/CHANCING (Gloves)/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/CHANCING (Helmet)/CHANCING (Helmet).csproj b/CHANCING (Helmet)/CHANCING (Helmet).csproj deleted file mode 100644 index c24a1c9..0000000 --- a/CHANCING (Helmet)/CHANCING (Helmet).csproj +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Debug - AnyCPU - {F66DADB1-0E93-406F-AA8C-5FD93733455A} - Library - Properties - CHANCING__Helmet_ - CHANCING %28Helmet%29 - v4.6.1 - 512 - - - true - full - false - ..\Builds\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\Builds\ - TRACE - prompt - 4 - - - - ..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/CHANCING (Helmet)/Generator.cs b/CHANCING (Helmet)/Generator.cs deleted file mode 100644 index 53f7c96..0000000 --- a/CHANCING (Helmet)/Generator.cs +++ /dev/null @@ -1,101 +0,0 @@ -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 -{ - public class ChanceSparklineBody - { - public List data { get; set; } - public double? totalChange { get; set; } - } - - public class ChanceExplicitModifierBody - { - public string text { get; set; } - public bool optional { get; set; } - } - - public class ChanceLineBody - { - 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 ChanceSparklineBody sparkline { get; set; } - public List implicitModifiers { get; set; } - public List explicitModifiers { get; set; } - public string flavourText { get; set; } - public string itemType { get; set; } - public double chaosValue { get; set; } - public double exaltedValue { get; set; } - public int count { get; set; } - } - - public class Theme - { - public string border { get; set; } - public string background { get; set; } - public string text { get; set; } - public int text_size { get; set; } - } - - public class ChanceRootBody - { - public List lines { get; set; } - } - - class Generator - { - private static string iB; - - public static void Gen(string section, string api, string league, int minValue, int chanceMinValue, int confidence) - { - Theme jt = JsonConvert.DeserializeObject(File.ReadAllText("structure/Chancing.json", Encoding.UTF8)); - - List itemBase = new List(); - ChanceRootBody j = JsonConvert.DeserializeObject(File.ReadAllText("data/ninja.armour.json", Encoding.UTF8)); - - foreach (var ln in j.lines) - { - // Check if the item count is at least equal to the desired confidence level - if (ln.count >= confidence && ln.links <= 4 && ln.itemType == "Helmet") - { - // Check if the item value is equal or superior to the minimum value - if (ln.chaosValue >= chanceMinValue) - { - if (!itemBase.Contains(ln.baseType)) - { - itemBase.Add(ln.baseType); - iB = iB + string.Format(@" ""{0}""", ln.baseType); - } - } - } - } - - 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" + iB + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel >= 50" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetTextColor {jt.text}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetBorderColor {jt.border}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetFontSize {jt.text_size}", Encoding.UTF8); - } - } -} diff --git a/CHANCING (Helmet)/Properties/AssemblyInfo.cs b/CHANCING (Helmet)/Properties/AssemblyInfo.cs deleted file mode 100644 index a6df870..0000000 --- a/CHANCING (Helmet)/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Les informations générales relatives à un assembly dépendent de -// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations -// associées à un assembly. -[assembly: AssemblyTitle("CHANCING (Helmet)")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CHANCING (Helmet)")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly -// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de -// COM, affectez la valeur true à l'attribut ComVisible sur ce type. -[assembly: ComVisible(false)] - -// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM -[assembly: Guid("f66dadb1-0e93-406f-aa8c-5fd93733455a")] - -// Les informations de version pour un assembly se composent des quatre valeurs suivantes : -// -// Version principale -// Version secondaire -// Numéro de build -// Révision -// -// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut -// en utilisant '*', comme indiqué ci-dessous : -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CHANCING (Helmet)/packages.config b/CHANCING (Helmet)/packages.config deleted file mode 100644 index 5762754..0000000 --- a/CHANCING (Helmet)/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/CHANCING (Quiver)/CHANCING (Quiver).csproj b/CHANCING (Quiver)/CHANCING (Quiver).csproj deleted file mode 100644 index de1f5be..0000000 --- a/CHANCING (Quiver)/CHANCING (Quiver).csproj +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Debug - AnyCPU - {EEAB1016-0C68-441C-9BED-58C00163BC3B} - Library - Properties - CHANCING__Quiver_ - CHANCING %28Quiver%29 - v4.6.1 - 512 - - - true - full - false - ..\Builds\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\Builds\ - TRACE - prompt - 4 - - - - ..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/CHANCING (Quiver)/Generator.cs b/CHANCING (Quiver)/Generator.cs deleted file mode 100644 index fba1d7f..0000000 --- a/CHANCING (Quiver)/Generator.cs +++ /dev/null @@ -1,101 +0,0 @@ -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 -{ - public class ChanceSparklineBody - { - public List data { get; set; } - public double? totalChange { get; set; } - } - - public class ChanceExplicitModifierBody - { - public string text { get; set; } - public bool optional { get; set; } - } - - public class ChanceLineBody - { - 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 ChanceSparklineBody sparkline { get; set; } - public List implicitModifiers { get; set; } - public List explicitModifiers { get; set; } - public string flavourText { get; set; } - public string itemType { get; set; } - public double chaosValue { get; set; } - public double exaltedValue { get; set; } - public int count { get; set; } - } - - public class Theme - { - public string border { get; set; } - public string background { get; set; } - public string text { get; set; } - public int text_size { get; set; } - } - - public class ChanceRootBody - { - public List lines { get; set; } - } - - class Generator - { - private static string iB; - - public static void Gen(string section, string api, string league, int minValue, int chanceMinValue, int confidence) - { - Theme jt = JsonConvert.DeserializeObject(File.ReadAllText("structure/Chancing.json", Encoding.UTF8)); - - List itemBase = new List(); - ChanceRootBody j = JsonConvert.DeserializeObject(File.ReadAllText("data/ninja.armour.json", Encoding.UTF8)); - - foreach (var ln in j.lines) - { - // Check if the item count is at least equal to the desired confidence level - if (ln.count >= confidence && ln.links <= 4 && ln.itemType == "Quiver") - { - // Check if the item value is equal or superior to the minimum value - if (ln.chaosValue >= chanceMinValue) - { - if (!itemBase.Contains(ln.baseType)) - { - itemBase.Add(ln.baseType); - iB = iB + string.Format(@" ""{0}""", ln.baseType); - } - } - } - } - - 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" + iB + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel >= 50" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetTextColor {jt.text}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetBorderColor {jt.border}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetFontSize {jt.text_size}", Encoding.UTF8); - } - } -} diff --git a/CHANCING (Quiver)/Properties/AssemblyInfo.cs b/CHANCING (Quiver)/Properties/AssemblyInfo.cs deleted file mode 100644 index 747faea..0000000 --- a/CHANCING (Quiver)/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Les informations générales relatives à un assembly dépendent de -// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations -// associées à un assembly. -[assembly: AssemblyTitle("CHANCING (Quiver)")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CHANCING (Quiver)")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly -// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de -// COM, affectez la valeur true à l'attribut ComVisible sur ce type. -[assembly: ComVisible(false)] - -// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM -[assembly: Guid("eeab1016-0c68-441c-9bed-58c00163bc3b")] - -// Les informations de version pour un assembly se composent des quatre valeurs suivantes : -// -// Version principale -// Version secondaire -// Numéro de build -// Révision -// -// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut -// en utilisant '*', comme indiqué ci-dessous : -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CHANCING (Quiver)/packages.config b/CHANCING (Quiver)/packages.config deleted file mode 100644 index 5762754..0000000 --- a/CHANCING (Quiver)/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/CHANCING (Shield)/CHANCING (Shield).csproj b/CHANCING (Shield)/CHANCING (Shield).csproj deleted file mode 100644 index 35f5dd0..0000000 --- a/CHANCING (Shield)/CHANCING (Shield).csproj +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Debug - AnyCPU - {9530B929-416B-43FE-A1BA-FEEBFFB97575} - Library - Properties - CHANCING__Shield_ - CHANCING %28Shield%29 - v4.6.1 - 512 - - - true - full - false - ..\Builds\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\Builds\ - TRACE - prompt - 4 - - - - ..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/CHANCING (Shield)/Generator.cs b/CHANCING (Shield)/Generator.cs deleted file mode 100644 index 2a78a91..0000000 --- a/CHANCING (Shield)/Generator.cs +++ /dev/null @@ -1,101 +0,0 @@ -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 -{ - public class ChanceSparklineBody - { - public List data { get; set; } - public double? totalChange { get; set; } - } - - public class ChanceExplicitModifierBody - { - public string text { get; set; } - public bool optional { get; set; } - } - - public class ChanceLineBody - { - 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 ChanceSparklineBody sparkline { get; set; } - public List implicitModifiers { get; set; } - public List explicitModifiers { get; set; } - public string flavourText { get; set; } - public string itemType { get; set; } - public double chaosValue { get; set; } - public double exaltedValue { get; set; } - public int count { get; set; } - } - - public class Theme - { - public string border { get; set; } - public string background { get; set; } - public string text { get; set; } - public int text_size { get; set; } - } - - public class ChanceRootBody - { - public List lines { get; set; } - } - - class Generator - { - private static string iB; - - public static void Gen(string section, string api, string league, int minValue, int chanceMinValue, int confidence) - { - Theme jt = JsonConvert.DeserializeObject(File.ReadAllText("structure/Chancing.json", Encoding.UTF8)); - - List itemBase = new List(); - ChanceRootBody j = JsonConvert.DeserializeObject(File.ReadAllText("data/ninja.armour.json", Encoding.UTF8)); - - foreach (var ln in j.lines) - { - // Check if the item count is at least equal to the desired confidence level - if (ln.count >= confidence && ln.links <= 4 && ln.itemType == "Shield") - { - // Check if the item value is equal or superior to the minimum value - if (ln.chaosValue >= chanceMinValue) - { - if (!itemBase.Contains(ln.baseType)) - { - itemBase.Add(ln.baseType); - iB = iB + string.Format(@" ""{0}""", ln.baseType); - } - } - } - } - - 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" + iB + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " Rarity = Normal" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, " ItemLevel >= 50" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetTextColor {jt.text}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetBorderColor {jt.border}" + Environment.NewLine, Encoding.UTF8); - File.AppendAllText(fn, $" SetFontSize {jt.text_size}", Encoding.UTF8); - } - } -} diff --git a/CHANCING (Shield)/Properties/AssemblyInfo.cs b/CHANCING (Shield)/Properties/AssemblyInfo.cs deleted file mode 100644 index d3d2127..0000000 --- a/CHANCING (Shield)/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Les informations générales relatives à un assembly dépendent de -// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations -// associées à un assembly. -[assembly: AssemblyTitle("CHANCING (Shield)")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CHANCING (Shield)")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly -// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de -// COM, affectez la valeur true à l'attribut ComVisible sur ce type. -[assembly: ComVisible(false)] - -// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM -[assembly: Guid("9530b929-416b-43fe-a1ba-feebffb97575")] - -// Les informations de version pour un assembly se composent des quatre valeurs suivantes : -// -// Version principale -// Version secondaire -// Numéro de build -// Révision -// -// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut -// en utilisant '*', comme indiqué ci-dessous : -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CHANCING (Shield)/packages.config b/CHANCING (Shield)/packages.config deleted file mode 100644 index 5762754..0000000 --- a/CHANCING (Shield)/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file