Skip to content

Commit

Permalink
feat: support multiple tourists per class
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Sep 6, 2024
1 parent b10ca9c commit 0da1a9e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions hearthstone/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,9 +1185,9 @@ def is_playable(self):
return self != CardClass.WHIZBANG and self.default_hero

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

@property
def name_global(self):
Expand Down
22 changes: 11 additions & 11 deletions hearthstone/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@
}

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",
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"],
}


Expand Down

0 comments on commit 0da1a9e

Please sign in to comment.