From f98366b6acc254e2b6e029a78a01037d2aab89c4 Mon Sep 17 00:00:00 2001 From: Batian Styx Date: Wed, 22 May 2024 21:37:05 +0100 Subject: [PATCH] Inventor Boom view Includes temporary Zilliax Deluxe 3000 name shortcut, assumes any variant used costs 5 or more. --- Graveyard/Graveyard.cs | 1 + Graveyard/Graveyard.csproj | 1 + Graveyard/InventorBoomView.cs | 27 +++++++++++++++++++++++++++ Graveyard/Properties/AssemblyInfo.cs | 4 ++-- 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 Graveyard/InventorBoomView.cs diff --git a/Graveyard/Graveyard.cs b/Graveyard/Graveyard.cs index a654972..f74cac2 100644 --- a/Graveyard/Graveyard.cs +++ b/Graveyard/Graveyard.cs @@ -76,6 +76,7 @@ public class Graveyard AzeriteRatView.Config, LastPlayedView.EndgameConfig, JepettoView.Config, + InventorBoomView.Config, }; private readonly FrameworkElement FriendlyView; diff --git a/Graveyard/Graveyard.csproj b/Graveyard/Graveyard.csproj index c73fbb3..23de152 100644 --- a/Graveyard/Graveyard.csproj +++ b/Graveyard/Graveyard.csproj @@ -77,6 +77,7 @@ + diff --git a/Graveyard/InventorBoomView.cs b/Graveyard/InventorBoomView.cs new file mode 100644 index 0000000..9ddf7e9 --- /dev/null +++ b/Graveyard/InventorBoomView.cs @@ -0,0 +1,27 @@ +using Hearthstone_Deck_Tracker.API; +using static HearthDb.CardIds.Collectible; + +namespace HDT.Plugins.Graveyard +{ + internal class InventorBoomView + { + private static ViewConfig _Config; + internal static ViewConfig Config + { + get => _Config ?? (_Config = new ViewConfig(Warrior.InventorBoom) + { + CreateView = () => new NormalView(), + UpdateOn = GameEvents.OnPlayerPlayToGraveyard, + Condition = card => { + + if (card.Name == "Zilliax Deluxe 3000") + return true; + if (card.Race == "Mech" || card.Race == "All") + if (card.Cost >= 5) + return true; + return false; + }, + }); + } + } +} diff --git a/Graveyard/Properties/AssemblyInfo.cs b/Graveyard/Properties/AssemblyInfo.cs index 98f91d6..b23ec7c 100644 --- a/Graveyard/Properties/AssemblyInfo.cs +++ b/Graveyard/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.14.3.0")] -[assembly: AssemblyFileVersion("1.14.3.0")] +[assembly: AssemblyVersion("1.15.0.0")] +[assembly: AssemblyFileVersion("1.15.0.0")]