From 8b618f880ad4127cd472916f66f0762da89d8649 Mon Sep 17 00:00:00 2001 From: jamckee Date: Tue, 7 May 2019 22:13:32 -0600 Subject: [PATCH] New development branch --- LarkatorGUI/ArkReader.cs | 4 ++-- LarkatorGUI/MainWindow.xaml.cs | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/LarkatorGUI/ArkReader.cs b/LarkatorGUI/ArkReader.cs index 665f365..7bbd59f 100644 --- a/LarkatorGUI/ArkReader.cs +++ b/LarkatorGUI/ArkReader.cs @@ -120,11 +120,11 @@ private Dino ConvertCreature(GameObject obj) Id = (ulong)obj.GetDinoId(), BaseLevel = obj.GetBaseLevel(), Name = obj.GetPropertyValue("TamedName", defaultValue: ""), - IsTameable = !obj.GetPropertyValue("bForceDisablingTaming",defaultValue: false), + IsTameable = !obj.GetPropertyValue("bForceDisablingTaming", defaultValue: false), Location = ConvertCoordsToLatLong(obj.Location), WildLevels = new StatPoints(), }; - + var status = obj.CharacterStatusComponent(); if (status != null) { diff --git a/LarkatorGUI/MainWindow.xaml.cs b/LarkatorGUI/MainWindow.xaml.cs index 3e52972..0a3c9bc 100644 --- a/LarkatorGUI/MainWindow.xaml.cs +++ b/LarkatorGUI/MainWindow.xaml.cs @@ -545,11 +545,12 @@ private void SaveSearch_Click(object sender, RoutedEventArgs e) try { + ObservableCollection tempListSearch = new ObservableCollection(ListSearches.Where(sc => sc.Group == (String) groupsCombo.SelectedValue)); foreach (String newDino in NewSearchList) { tempSearch = new SearchCriteria(NewSearch); tempSearch.Species = newDino; - tempSearch.Order = ListSearches.Where(sc => sc.Group == NewSearch.Group).Max(sc => sc.Order) + 100; + tempSearch.Order = ListSearches.Where(sc => sc.Group == tempSearch.Group).Max(sc => sc.Order) + 100; ListSearches.Add(tempSearch); } } @@ -757,7 +758,7 @@ private void UpdateSearchResults(IList searches) ListResults.Clear(); foreach (var result in found) - if (!Properties.Settings.Default.hideUntameable || (Properties.Settings.Default.hideUntameable && result.IsTameable)) + if (!Properties.Settings.Default.hideUntameable || (result.IsTameable)) ListResults.Add(result); ShowCounts = true;