def getSuggestions(self): card_set = CardSet() self.item_suggest = card_set.findCombos(self.chars, .8, "ITEMS") self.char_suggest = card_set.findCombos(self.items, .8, "CHARS") if not self.item_suggest is None: self.item_suggest.cards.sort(key=lambda x: -x.rarity) if not self.char_suggest is None: self.char_suggest.cards.sort(key=lambda x: -x.rarity)
def accepts(self, value: Union[Card, Iterable[Card], CardSet]): try: iter(value) except TypeError: if isinstance(value, Card): self._accepts = CardSet(value) elif isinstance(value, CardSet): self._accepts = value else: raise NotImplemented else: self._accepts = CardSet(*value)
def __init__(self): self._cards = [] self._accepts = CardSet()
def get_bge_turd_pack(): # bgeContext = BGEContext(request) return CardSet().getTurdPack("addicted")
def get_bge_set_spreadsheet(): # bgeContext = BGEContext(request) return CardSet().getBGESpreadsheets("addicted")
def get_bge_set_image(): # todo: need a new context - include bge selection # bgeContext = BGEContext(request) return CardSet().getBGEImages("addicted")
def get_basic_set_image(): return CardSet().getBasicSet()
def get_stones_image(): return CardSet().createStoneImages()