diff --git a/src/StatisticsAnalysisTool/EstimatedMarketValue/EstimatedMarketValueController.cs b/src/StatisticsAnalysisTool/EstimatedMarketValue/EstimatedMarketValueController.cs index 3df22bd99..3e0c8b588 100644 --- a/src/StatisticsAnalysisTool/EstimatedMarketValue/EstimatedMarketValueController.cs +++ b/src/StatisticsAnalysisTool/EstimatedMarketValue/EstimatedMarketValueController.cs @@ -13,7 +13,7 @@ namespace StatisticsAnalysisTool.EstimatedMarketValue; public static class EstimatedMarketValueController { private static ObservableCollection _estimatedMarketValueObjects = new(); - + public static void Add(int itemId, long estimatedMarketValueInternal, ItemQuality quality = ItemQuality.Unknown) { if (itemId <= 0 || estimatedMarketValueInternal <= 0) diff --git a/src/StatisticsAnalysisTool/EventLogging/Notification/OtherGrabbedLootNotificationFragment.cs b/src/StatisticsAnalysisTool/EventLogging/Notification/OtherGrabbedLootNotificationFragment.cs index b788e2996..41dd83da8 100644 --- a/src/StatisticsAnalysisTool/EventLogging/Notification/OtherGrabbedLootNotificationFragment.cs +++ b/src/StatisticsAnalysisTool/EventLogging/Notification/OtherGrabbedLootNotificationFragment.cs @@ -1,6 +1,7 @@ using StatisticsAnalysisTool.Localization; using StatisticsAnalysisTool.Models; using System.Windows.Media.Imaging; +using StatisticsAnalysisTool.Common; namespace StatisticsAnalysisTool.EventLogging.Notification; @@ -15,6 +16,7 @@ public OtherGrabbedLootNotificationFragment(string lootedByName, string lootedFr LocalizedName = item.LocalizedName; Icon = item.Icon; Quantity = quantity; + AverageEstMarketValue = item.AverageEstMarketValue; } public string LootedByName { get; } @@ -23,6 +25,8 @@ public OtherGrabbedLootNotificationFragment(string lootedByName, string lootedFr public string LocalizedName { get; } public BitmapImage Icon { get; } public int Quantity { get; } + public long AverageEstMarketValue { get; set; } + public string AverageEstMarketValueShortString => AverageEstMarketValue.ToShortNumberString(); public string LootedFromName { get; } public string LootedFromGuild { get; } public bool IsLootedFromGuildEmpty => string.IsNullOrEmpty(LootedFromGuild); @@ -31,4 +35,5 @@ public OtherGrabbedLootNotificationFragment(string lootedByName, string lootedFr public static string FromTranslation => LocalizationController.Translation("FROM"); public static string LootedTranslation => LocalizationController.Translation("LOOTED"); public static string TranslationGuild => LocalizationController.Translation("GUILD_CAP"); + public static string TranslationAverageEstMarketValue => LocalizationController.Translation("AVERAGE_EST_MARKET_VALUE"); } \ No newline at end of file diff --git a/src/StatisticsAnalysisTool/Localization/localization.json b/src/StatisticsAnalysisTool/Localization/localization.json index 64c08c236..ae39d73c0 100644 --- a/src/StatisticsAnalysisTool/Localization/localization.json +++ b/src/StatisticsAnalysisTool/Localization/localization.json @@ -37261,6 +37261,19 @@ "seg": "Damage suffered" } ] + }, + { + "tuid": "AVERAGE_EST_MARKET_VALUE", + "tuv": [ + { + "lang": "de-DE", + "seg": "Geschätzte durchschnittlicher Markltwert" + }, + { + "lang": "en-US", + "seg": "Average est. Market value" + } + ] } ] } \ No newline at end of file diff --git a/src/StatisticsAnalysisTool/Models/Item.cs b/src/StatisticsAnalysisTool/Models/Item.cs index ccac0caf8..7004f820c 100644 --- a/src/StatisticsAnalysisTool/Models/Item.cs +++ b/src/StatisticsAnalysisTool/Models/Item.cs @@ -53,7 +53,7 @@ public string TierLevelString public List EstimatedMarketValues { get; set; } [JsonIgnore] - public long AverageEstQualityValue => EstimatedMarketValueController.CalculateNearestToAverage(EstimatedMarketValues).MarketValue.IntegerValue; + public long AverageEstMarketValue => EstimatedMarketValueController.CalculateNearestToAverage(EstimatedMarketValues).MarketValue.IntegerValue; [JsonIgnore] public string LastEstimatedUpdateTimeString => $"{LocalizationController.Translation("LAST_ESTIMATED_VALUE_UPDATE")}: {EstimatedMarketValueController.CalculateNearestToAverage(EstimatedMarketValues).Timestamp.DateTimeToLastUpdateTime()}"; diff --git a/src/StatisticsAnalysisTool/Models/LootLoggerObject.cs b/src/StatisticsAnalysisTool/Models/LootLoggerObject.cs index 94f23baab..c1e1f3c59 100644 --- a/src/StatisticsAnalysisTool/Models/LootLoggerObject.cs +++ b/src/StatisticsAnalysisTool/Models/LootLoggerObject.cs @@ -1,6 +1,7 @@ using System; using System.Globalization; using StatisticsAnalysisTool.Common; +using StatisticsAnalysisTool.EstimatedMarketValue; namespace StatisticsAnalysisTool.Models; @@ -21,6 +22,7 @@ public LootLoggerObject() public string LootedByName { get; set; } public string LootedByGuild { get; set; } public string LootedByAlliance { get; set; } + public long AverageEstMarketValue { get; set; } public string CsvOutput => GetCsvOutputStringWithRealItemName(); diff --git a/src/StatisticsAnalysisTool/Network/Manager/LootController.cs b/src/StatisticsAnalysisTool/Network/Manager/LootController.cs index 4f4704662..8aef07812 100644 --- a/src/StatisticsAnalysisTool/Network/Manager/LootController.cs +++ b/src/StatisticsAnalysisTool/Network/Manager/LootController.cs @@ -93,6 +93,7 @@ public async Task AddLootAsync(Loot loot) Quantity = loot.Quantity, ItemId = item.Index, UniqueItemName = item.UniqueName, + AverageEstMarketValue = item.AverageEstMarketValue, }); OnAddLoot?.Invoke(loot.LootedByName, loot.Quantity); @@ -243,7 +244,7 @@ await AddLootAsync(new Loot() ItemIndex = lootedItem.ItemIndex, LootedByName = _trackingController?.EntityController?.LocalUserData?.Username, LootedFromName = MobController.IsMob(identifiedBody.Name) ? LocalizationController.Translation("MOB") : identifiedBody.Name, - Quantity = lootedItem.Quantity + Quantity = lootedItem.Quantity, }); } diff --git a/src/StatisticsAnalysisTool/Properties/AssemblyInfo.cs b/src/StatisticsAnalysisTool/Properties/AssemblyInfo.cs index 294d4aeed..b35e75068 100644 --- a/src/StatisticsAnalysisTool/Properties/AssemblyInfo.cs +++ b/src/StatisticsAnalysisTool/Properties/AssemblyInfo.cs @@ -53,5 +53,5 @@ // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // indem Sie "*" wie unten gezeigt eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("7.7.0.*")] -[assembly: AssemblyFileVersion("7.7.0.0")] \ No newline at end of file +[assembly: AssemblyVersion("7.7.1.*")] +[assembly: AssemblyFileVersion("7.7.1.0")] \ No newline at end of file diff --git a/src/StatisticsAnalysisTool/Styles/GuildStyles.xaml b/src/StatisticsAnalysisTool/Styles/GuildStyles.xaml index 89b50f79f..16690a99c 100644 --- a/src/StatisticsAnalysisTool/Styles/GuildStyles.xaml +++ b/src/StatisticsAnalysisTool/Styles/GuildStyles.xaml @@ -28,9 +28,9 @@ - + - + diff --git a/src/StatisticsAnalysisTool/Styles/ItemSearchStyles.xaml b/src/StatisticsAnalysisTool/Styles/ItemSearchStyles.xaml index 12554186a..b682cf7d3 100644 --- a/src/StatisticsAnalysisTool/Styles/ItemSearchStyles.xaml +++ b/src/StatisticsAnalysisTool/Styles/ItemSearchStyles.xaml @@ -26,7 +26,7 @@ -