X-Git-Url: https://git.yukkurigames.com/?p=mlpccg-meta.git;a=blobdiff_plain;f=mlpccg%2FDeckList.py;h=ec576456dbebf93b51238d740c76d383ef710a46;hp=415c91d561cc6bb1a6f238916d8cedc4e8518227;hb=HEAD;hpb=eef1965dcc0281ff5a0cf7bba05b6b79f79efaa0 diff --git a/mlpccg/DeckList.py b/mlpccg/DeckList.py index 415c91d..ec57645 100644 --- a/mlpccg/DeckList.py +++ b/mlpccg/DeckList.py @@ -35,7 +35,7 @@ class DeckList: aspects_sorted = sorted(aspects.iteritems(), reverse=True, key=operator.itemgetter(1)) aspects_sum = float(sum([aspect[1] for aspect in aspects_sorted])) aspects_filtered = [] - cutoff = 0.5 + cutoff = 0.6 amount = 0.0 for aspect, value in aspects_sorted: amount += value / aspects_sum @@ -57,7 +57,7 @@ class DeckList: def ponyhead_link(self): cards = defaultdict(int) for card in self.cards: - cards[card['id'].replace('f', 'F')] += 1 + cards[card['id'].replace('pf', 'PF').replace('f', 'F')] += 1 cards = ['%sx%d' % (id, amount) for id, amount in cards.iteritems()]