|
|
@ -5,24 +5,28 @@ exp_banned = [
|
|
|
|
['CSM1aC', '128'],
|
|
|
|
['CSM1aC', '128'],
|
|
|
|
['CSM1cC', '137'],
|
|
|
|
['CSM1cC', '137'],
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
exp_banned_effect = []
|
|
|
|
|
|
|
|
|
|
|
|
with open('../output/sets_min.json', 'r') as f:
|
|
|
|
with open('../output/sets_min.json', 'r') as f:
|
|
|
|
contents = f.read()
|
|
|
|
contents = f.read()
|
|
|
|
table = json.loads(contents)
|
|
|
|
table = json.loads(contents)
|
|
|
|
f.close()
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
|
|
|
|
banned_effect = []
|
|
|
|
|
|
|
|
for ban_card in exp_banned:
|
|
|
|
for ban_card in exp_banned:
|
|
|
|
found = False
|
|
|
|
found = False
|
|
|
|
for coll in table:
|
|
|
|
for coll in table:
|
|
|
|
for card in coll['cards']:
|
|
|
|
for card in coll['cards']:
|
|
|
|
if card['collection_attr']['set_symbol'] == ban_card[0] and card['collection_attr']['card_no'] == ban_card[
|
|
|
|
if card['collection_attr']['set_symbol'] == ban_card[0] and card['collection_attr']['card_no'] == ban_card[
|
|
|
|
1]:
|
|
|
|
1]:
|
|
|
|
banned_effect.append(card['effect_id'])
|
|
|
|
exp_banned_effect.append(card['effect_id'])
|
|
|
|
found = True
|
|
|
|
found = True
|
|
|
|
break
|
|
|
|
break
|
|
|
|
if found:
|
|
|
|
if found:
|
|
|
|
break
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
|
|
with open('../output/exp_banned.json', 'w') as f:
|
|
|
|
with open('../output/banned.json', 'w') as f:
|
|
|
|
f.write(json.dumps(banned_effect, separators=(',', ':')))
|
|
|
|
f.write(json.dumps({
|
|
|
|
|
|
|
|
'std': [],
|
|
|
|
|
|
|
|
'exp': exp_banned_effect,
|
|
|
|
|
|
|
|
'sm': [],
|
|
|
|
|
|
|
|
}, separators=(',', ':')))
|
|
|
|