forked from RedHatter/Graveyard
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- List all 5+ cost mechs that have died - Temporary Zilliax Deluxe 3000 name workaround, assumes any variants used cost 5+
- Loading branch information
Showing
4 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}, | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters