From 9c0508fbaaf53422fbac418cdbdec0dee843c876 Mon Sep 17 00:00:00 2001 From: cadaei Date: Fri, 27 Dec 2019 02:25:02 +0100 Subject: [PATCH] merge to master --- ARKBreedingStats/Properties/AssemblyInfo.cs | 2 +- ARKBreedingStats/json/values/_manifest.json | 2 +- ARKBreedingStats/json/values/values.json | 6 +++--- ARKBreedingStats/uiControls/NamePatterns.cs | 15 ++++++--------- 4 files changed, 11 insertions(+), 14 deletions(-) diff --git a/ARKBreedingStats/Properties/AssemblyInfo.cs b/ARKBreedingStats/Properties/AssemblyInfo.cs index 0c0d58dd..63a31fa5 100644 --- a/ARKBreedingStats/Properties/AssemblyInfo.cs +++ b/ARKBreedingStats/Properties/AssemblyInfo.cs @@ -30,6 +30,6 @@ // Revision // [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("0.36.0.0")] +[assembly: AssemblyFileVersion("0.36.1.0")] [assembly: NeutralResourcesLanguage("en")] diff --git a/ARKBreedingStats/json/values/_manifest.json b/ARKBreedingStats/json/values/_manifest.json index 8cf10049..66fb62bc 100644 --- a/ARKBreedingStats/json/values/_manifest.json +++ b/ARKBreedingStats/json/values/_manifest.json @@ -130,7 +130,7 @@ "mod": { "id": "919470289", "tag": "SSFlyer", "title": "SSFlyer" } }, "values.json": { - "version": "304.1.4503755" + "version": "304.23.4517691" } } } \ No newline at end of file diff --git a/ARKBreedingStats/json/values/values.json b/ARKBreedingStats/json/values/values.json index 9caaa435..b14cb857 100644 --- a/ARKBreedingStats/json/values/values.json +++ b/ARKBreedingStats/json/values/values.json @@ -1,6 +1,6 @@ { "format": "1.12", - "version": "304.1.4503755", + "version": "304.23.4517691", "species": [ { "name": "Rockwell", @@ -18268,7 +18268,7 @@ }, "colors": [ { - "name": "Fur Mane", + "name": "Fur Main", "colors": [ "Black", "Dark Grey", @@ -18321,7 +18321,7 @@ ] }, { - "name": "Unknown", + "name": "Underside", "colors": [ "Black", "Dark Grey", diff --git a/ARKBreedingStats/uiControls/NamePatterns.cs b/ARKBreedingStats/uiControls/NamePatterns.cs index bd4f029e..3187780d 100644 --- a/ARKBreedingStats/uiControls/NamePatterns.cs +++ b/ARKBreedingStats/uiControls/NamePatterns.cs @@ -337,6 +337,8 @@ public static Dictionary CreateTokenDictionary(Creature creature int mutasn = creature.Mutations; string mutas = mutasn > 99 ? "99" : mutasn.ToString().PadLeft(2, '0'); + string old_name = creature.name; + string firstWordOfOldest = ""; if (speciesCreatures.Count > 0) { @@ -345,16 +347,11 @@ public static Dictionary CreateTokenDictionary(Creature creature { firstWordOfOldest = firstWordOfOldest.Substring(0, firstWordOfOldest.IndexOf(" ")); } - } - string old_name = string.Empty; - if (creature.guid != Guid.Empty) - { - old_name = speciesCreatures.FirstOrDefault(c => c.guid == creature.guid).name ?? creature.name; - } - else - { - old_name = creature.name; + if (creature.guid != Guid.Empty) + { + old_name = speciesCreatures.FirstOrDefault(c => c.guid == creature.guid).name ?? creature.name; + } } string speciesShort6 = creature.Species.name.Replace(" ", "").Replace("Aberrant", "Ab");