Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
cadaei committed May 15, 2020
2 parents 177f131 + 9d173af commit beb86bd
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 33 deletions.
50 changes: 25 additions & 25 deletions ARKBreedingStats/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion ARKBreedingStats/Form1.collection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,11 @@ private bool LoadCollectionFile(string filePath, bool keepCurrentCreatures = fal
creatureBoxListView.Clear();
}

creatureCollection.DeletedCreatureGuids = null; // no longer needed
creatureCollection.DeletedCreatureGuids = null; // the info was processed and is no longer needed.

// remove creature entries without species information. some outdated and invisible entries can exist with that. the blueprintInfo is not deleted with the current version, so no new such entries should appear.
creatureCollection.creatures = creatureCollection.creatures
.Where(c => !string.IsNullOrEmpty(c.speciesBlueprint)).ToList();

InitializeCollection();

Expand Down
1 change: 0 additions & 1 deletion ARKBreedingStats/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Windows.Forms;
Expand Down
2 changes: 1 addition & 1 deletion ARKBreedingStats/Form1.extractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ private void ExtractExportedFileInExtractor(importExported.ExportedCreatureContr
// gets deleted in extractLevels()
exportedCreatureControl = ecc;

if (exportedCreatureList != null && exportedCreatureList.ownerSuffix != null)
if (!string.IsNullOrEmpty(exportedCreatureList?.ownerSuffix))
creatureInfoInputExtractor.CreatureOwner += exportedCreatureList.ownerSuffix;
}

Expand Down
8 changes: 4 additions & 4 deletions ARKBreedingStats/Form1.library.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ private void AddCreatureToCollection(bool fromExtractor = true, long motherArkId

creatureCollection.MergeCreatureList(new List<Creature> { creature });

// set status of exportedCreatureControl if available
exportedCreatureControl?.setStatus(importExported.ExportedCreatureControl.ImportStatus.JustImported, DateTime.Now);

// if creature already exists by guid, use the already existing creature object for the parent assignments
creature = creatureCollection.creatures.SingleOrDefault(c => c.guid == creature.guid) ?? creature;

Expand Down Expand Up @@ -142,9 +145,6 @@ private void AddCreatureToCollection(bool fromExtractor = true, long motherArkId
creatureInfoInputExtractor.parentListValid = false;
creatureInfoInputTester.parentListValid = false;

// set status of exportedCreatureControl if available
exportedCreatureControl?.setStatus(importExported.ExportedCreatureControl.ImportStatus.JustImported, DateTime.Now);

SetCollectionChanged(true, species);
}

Expand Down Expand Up @@ -1048,7 +1048,7 @@ private void FilterLib()
if (listBoxSpeciesLib.SelectedIndex > 0
&& listBoxSpeciesLib.SelectedItem is Species selectedSpecies)
{
filteredList = filteredList.Where(c => c.Species.Equals(selectedSpecies));
filteredList = filteredList.Where(c => c.Species == selectedSpecies);
if (selectedSpecies.IsGlowSpecies)
chargeStatsHeaders = true;
}
Expand Down
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.39.6.0")]
[assembly: AssemblyFileVersion("0.39.6.1")]
[assembly: NeutralResourcesLanguage("en")]

0 comments on commit beb86bd

Please sign in to comment.