X-Git-Url: https://git.yukkurigames.com/?a=blobdiff_plain;ds=sidebyside;f=mlpccg%2FDeckList.py;h=5ff46bf9d6ec720dc5f20f552da6fee2a8d2aa1a;hb=ac0c692e40ad6aca1b28199a4ef9c850fa680427;hp=0e0cba1f6d5ea3a07ca905bb85b127a92ad7c054;hpb=f5f267a53e90455937409ad2bd15324e717c8e04;p=mlpccg-meta.git diff --git a/mlpccg/DeckList.py b/mlpccg/DeckList.py index 0e0cba1..5ff46bf 100644 --- a/mlpccg/DeckList.py +++ b/mlpccg/DeckList.py @@ -35,13 +35,12 @@ 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.66 + cutoff = 0.6 amount = 0.0 for aspect, value in aspects_sorted: amount += value / aspects_sum - if amount < cutoff: - aspects_filtered += [aspect] - else: + aspects_filtered += [aspect] + if amount >= cutoff: break return (mane, aspects_filtered)