Skip to content

Commit

Permalink
Inventor Boom
Browse files Browse the repository at this point in the history
- List all 5+ cost mechs that have died
- Temporary Zilliax Deluxe 3000 name workaround, assumes any variants used cost 5+
  • Loading branch information
batstyx committed May 22, 2024
2 parents 15e1316 + f98366b commit a5ce340
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
1 change: 1 addition & 0 deletions Graveyard/Graveyard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public class Graveyard
AzeriteRatView.Config,
LastPlayedView.EndgameConfig,
JepettoView.Config,
InventorBoomView.Config,
};

private readonly FrameworkElement FriendlyView;
Expand Down
1 change: 1 addition & 0 deletions Graveyard/Graveyard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
<Compile Include="FourHorsemenView.cs" />
<Compile Include="HighCultistBasalephView.cs" />
<Compile Include="HoldingEffectView.cs" />
<Compile Include="InventorBoomView.cs" />
<Compile Include="JepettoView.cs" />
<Compile Include="MenagerieView.cs" />
<Compile Include="MinionsCreatedView.cs" />
Expand Down
27 changes: 27 additions & 0 deletions Graveyard/InventorBoomView.cs
Original file line number Diff line number Diff line change
@@ -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;
},
});
}
}
}
4 changes: 2 additions & 2 deletions Graveyard/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

0 comments on commit a5ce340

Please sign in to comment.