Skip to content

Commit

Permalink
merge to master
Browse files Browse the repository at this point in the history
  • Loading branch information
cadaei committed Dec 27, 2019
1 parent 9e55813 commit 9c0508f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ARKBreedingStats/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

2 changes: 1 addition & 1 deletion ARKBreedingStats/json/values/_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"mod": { "id": "919470289", "tag": "SSFlyer", "title": "SSFlyer" }
},
"values.json": {
"version": "304.1.4503755"
"version": "304.23.4517691"
}
}
}
6 changes: 3 additions & 3 deletions ARKBreedingStats/json/values/values.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"format": "1.12",
"version": "304.1.4503755",
"version": "304.23.4517691",
"species": [
{
"name": "Rockwell",
Expand Down Expand Up @@ -18268,7 +18268,7 @@
},
"colors": [
{
"name": "Fur Mane",
"name": "Fur Main",
"colors": [
"Black",
"Dark Grey",
Expand Down Expand Up @@ -18321,7 +18321,7 @@
]
},
{
"name": "Unknown",
"name": "Underside",
"colors": [
"Black",
"Dark Grey",
Expand Down
15 changes: 6 additions & 9 deletions ARKBreedingStats/uiControls/NamePatterns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ public static Dictionary<string, string> 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)
{
Expand All @@ -345,16 +347,11 @@ public static Dictionary<string, string> 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");
Expand Down

0 comments on commit 9c0508f

Please sign in to comment.