Пример #1
0
    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)
Пример #2
0
 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)
Пример #3
0
 def __init__(self):
     self._cards = []
     self._accepts = CardSet()
Пример #4
0
def get_bge_turd_pack():
    # bgeContext = BGEContext(request)
    return CardSet().getTurdPack("addicted")
Пример #5
0
def get_bge_set_spreadsheet():
    # bgeContext = BGEContext(request)
    return CardSet().getBGESpreadsheets("addicted")
Пример #6
0
def get_bge_set_image():
    # todo: need a new context - include bge selection
    # bgeContext = BGEContext(request)
    return CardSet().getBGEImages("addicted")
Пример #7
0
def get_basic_set_image():
    return CardSet().getBasicSet()
Пример #8
0
def get_stones_image():
    return CardSet().createStoneImages()