diff --git a/Procurement/Controls/ItemHover.xaml b/Procurement/Controls/ItemHover.xaml index 2cc05ad0..e7b00582 100644 --- a/Procurement/Controls/ItemHover.xaml +++ b/Procurement/Controls/ItemHover.xaml @@ -176,29 +176,6 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + Microtransactions { get; private set; } public bool HasMicrotransactions { get; private set; } - public List CraftedMods { get; private set; } + + public List CraftedMods { get; set; } + public bool HasCraftedMods { get; private set; } + public ItemHoverViewModel(Item item) { this.Item = item; @@ -38,13 +41,9 @@ public ItemHoverViewModel(Item item) this.Properties = item.Properties; this.Requirements = new List(); - this.HasRequirements = Requirements != null && Requirements.Count > 0; - this.ExplicitMods = item.Explicitmods; - this.HasExplicitMods = ExplicitMods != null && ExplicitMods.Count > 0; this.ImplicitMods = new List(); - this.HasImplicitMods = ImplicitMods != null && ImplicitMods.Count > 0; this.DescriptionText = item.DescrText; @@ -54,10 +53,18 @@ public ItemHoverViewModel(Item item) this.HasMicrotransactions = item.Microtransactions.Count > 0; this.CraftedMods = item.CraftedMods; - this.HasCraftedMods = CraftedMods != null && CraftedMods.Count > 0; SecondaryDescriptionText = item.SecDescrText; + setTypeSpecificProperties(item); + this.HasExplicitMods = ExplicitMods != null && ExplicitMods.Count > 0; + this.HasImplicitMods = ImplicitMods != null && ImplicitMods.Count > 0; + this.HasCraftedMods = CraftedMods != null && CraftedMods.Count > 0; + this.HasRequirements = Requirements != null && Requirements.Count > 0; + } + + private void setTypeSpecificProperties(Item item) + { var gear = item as Gear; if (gear != null)