Skip to content

Commit

Permalink
feat: add CardClass.visiting_tourist
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Jul 17, 2024
1 parent a8e8707 commit 67a4940
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hearthstone/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,11 @@ def default_hero(self):
def is_playable(self):
return self != CardClass.WHIZBANG and self.default_hero

@property
def visiting_tourist(self):
from .utils import VISITING_TOURISTS
return VISITING_TOURISTS.get(self, None)

@property
def name_global(self):
return "GLOBAL_CLASS_%s" % (self.name)
Expand Down
14 changes: 14 additions & 0 deletions hearthstone/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,20 @@
CardClass.WARRIOR: 0,
}

VISITING_TOURISTS = {
CardClass.DEATHKNIGHT: "VAC_503",
CardClass.DRUID: "VAC_340",
CardClass.HUNTER: "VAC_957",
CardClass.MAGE: "VAC_519",
CardClass.PALADIN: "VAC_424",
CardClass.PRIEST: "VAC_501",
CardClass.ROGUE: "VAC_507",
CardClass.SHAMAN: "VAC_437",
CardClass.WARLOCK: "VAC_336",
CardClass.WARRIOR: "VAC_413",
CardClass.DEMONHUNTER: "VAC_450",
}


CRAFTING_COSTS = {
Rarity.COMMON: (40, 400),
Expand Down

0 comments on commit 67a4940

Please sign in to comment.