beiyanpiki 1 year ago
parent 279701f9b4
commit 2cd7e8bf88

@ -95426,27 +95426,6 @@
"regulation_mark": "A",
"effect_id": "099fd71f7e7e757cf370184f10e6fb0e"
},
{
"name": "\u57fa\u672c\u94a2\u80fd\u91cf",
"text": "",
"type": "Basic Energy",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sun & Moon",
"set_symbol": "CSMPhC",
"card_no": "MET",
"set_collect_num": null,
"artist_name": null,
"rarity": ""
},
"energy_attr": {
"energy": "M"
},
"regulation_mark": "C",
"effect_id": "4557c01497b81767fdaa0004089ecfb3"
},
{
"name": "\u57fa\u672c\u94a2\u80fd\u91cf",
"text": "",
@ -96160,27 +96139,6 @@
"regulation_mark": "A",
"effect_id": "099fd71f7e7e757cf370184f10e6fb0e"
},
{
"name": "\u57fa\u672c\u6076\u80fd\u91cf",
"text": "",
"type": "Basic Energy",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sun & Moon",
"set_symbol": "CSMPgC",
"card_no": "DAR",
"set_collect_num": null,
"artist_name": null,
"rarity": ""
},
"energy_attr": {
"energy": "D"
},
"regulation_mark": "C",
"effect_id": "46c769fc57a6c250c560df648bb779f8"
},
{
"name": "\u57fa\u672c\u6076\u80fd\u91cf",
"text": "",
@ -96877,27 +96835,6 @@
"regulation_mark": "A",
"effect_id": "099fd71f7e7e757cf370184f10e6fb0e"
},
{
"name": "\u57fa\u672c\u6597\u80fd\u91cf",
"text": "",
"type": "Basic Energy",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sun & Moon",
"set_symbol": "CSMPfC",
"card_no": "FIG",
"set_collect_num": null,
"artist_name": null,
"rarity": ""
},
"energy_attr": {
"energy": "F"
},
"regulation_mark": "C",
"effect_id": "9fedb80a97ddd5cc8b8022a21364c326"
},
{
"name": "\u57fa\u672c\u6597\u80fd\u91cf",
"text": "",
@ -97582,27 +97519,6 @@
"regulation_mark": "C",
"effect_id": "28dd06651afde1b9ac4b620615b98958"
},
{
"name": "\u57fa\u672c\u8d85\u80fd\u91cf",
"text": "",
"type": "Basic Energy",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sun & Moon",
"set_symbol": "CSMPeC",
"card_no": "PSY",
"set_collect_num": null,
"artist_name": null,
"rarity": ""
},
"energy_attr": {
"energy": "P"
},
"regulation_mark": "C",
"effect_id": "41b2d1a95fafc35e4cf39383ffae928a"
},
{
"name": "\u57fa\u672c\u8d85\u80fd\u91cf",
"text": "",
@ -98237,27 +98153,6 @@
"regulation_mark": "A",
"effect_id": "b43e16912251090b70acbc79ad9aa823"
},
{
"name": "\u57fa\u672c\u96f7\u80fd\u91cf",
"text": "",
"type": "Basic Energy",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sun & Moon",
"set_symbol": "CSMPdC",
"card_no": "LIG",
"set_collect_num": null,
"artist_name": null,
"rarity": ""
},
"energy_attr": {
"energy": "L"
},
"regulation_mark": "C",
"effect_id": "45550fd10011f6ade7eef16ba88788cf"
},
{
"name": "\u57fa\u672c\u96f7\u80fd\u91cf",
"text": "",
@ -99053,27 +98948,6 @@
"regulation_mark": "A",
"effect_id": "b43e16912251090b70acbc79ad9aa823"
},
{
"name": "\u57fa\u672c\u6c34\u80fd\u91cf",
"text": "",
"type": "Basic Energy",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sun & Moon",
"set_symbol": "CSMPcC",
"card_no": "WAT",
"set_collect_num": null,
"artist_name": null,
"rarity": ""
},
"energy_attr": {
"energy": "W"
},
"regulation_mark": "C",
"effect_id": "0cf075ae61b8a0b4e9151e5146c3aa26"
},
{
"name": "\u57fa\u672c\u6c34\u80fd\u91cf",
"text": "",
@ -99844,27 +99718,6 @@
"regulation_mark": "A",
"effect_id": "b43e16912251090b70acbc79ad9aa823"
},
{
"name": "\u57fa\u672c\u706b\u80fd\u91cf",
"text": "",
"type": "Basic Energy",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sun & Moon",
"set_symbol": "CSMPbC",
"card_no": "FIR",
"set_collect_num": null,
"artist_name": null,
"rarity": ""
},
"energy_attr": {
"energy": "R"
},
"regulation_mark": "C",
"effect_id": "22db5405bf0cce61a00aa8082cdd1e65"
},
{
"name": "\u57fa\u672c\u706b\u80fd\u91cf",
"text": "",
@ -100596,27 +100449,6 @@
"regulation_mark": "A",
"effect_id": "b43e16912251090b70acbc79ad9aa823"
},
{
"name": "\u57fa\u672c\u8349\u80fd\u91cf",
"text": "",
"type": "Basic Energy",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sun & Moon",
"set_symbol": "CSMPaC",
"card_no": "GRA",
"set_collect_num": null,
"artist_name": null,
"rarity": ""
},
"energy_attr": {
"energy": "G"
},
"regulation_mark": "C",
"effect_id": "5e2d0ce37ca0c539aa45908da10544a0"
},
{
"name": "\u57fa\u672c\u8349\u80fd\u91cf",
"text": "",
@ -149003,7 +148835,7 @@
},
{
"name": "\u592a\u9633&\u6708\u4eae \u7279\u5178\u5361",
"set_id": "PROMO",
"set_id": "SMP",
"symbol": "SMP",
"release_date": "",
"series": "Sun & Moon",
@ -151629,7 +151461,7 @@
},
{
"name": "\u5251&\u76fe \u7279\u5178\u5361",
"set_id": "PROMO3",
"set_id": "SSP",
"symbol": "SSP",
"release_date": "",
"series": "Sword & Shield",

File diff suppressed because one or more lines are too long

@ -351,17 +351,27 @@ def main():
elif database[k].series == Series.SS:
database[k].cards[i].collection_attr.set_symbol = 'SSP'
database[k].cards_num = len(v.cards)
database["SSP"].symbol = 'SSP'
database["SSP"].set_id = 'SSP'
database["SSP"].name = "剑&盾 特典卡"
database["SMP"].symbol = 'SMP'
database["SMP"].set_id = 'SMP'
database["SMP"].name = '太阳&月亮 特典卡'
database['SSP'].release_date = ''
database['SMP'].release_date = ''
for k, v in database.items():
if k in ['CSMPaC', 'CSMPbC', 'CSMPcC', 'CSMPdC', 'CSMPeC', 'CSMPfC', 'CSMPgC', 'CSMPhC', ]:
database[k].cards = [c for c in database[k].cards if
not (c.type == CardType.BasicEnergy and c.regulation_mark == 'C')]
for k, v in database.items():
if k == 'SMP':
# PROMO has overlap cards
database[k].cards = [c for c in database[k].cards if c.collection_attr.card_no is not None]
database[k].cards = sorted(database[k].cards, key=sort_cards_by_card_no)
return database
@ -384,6 +394,8 @@ if __name__ == '__main__':
sets = []
for k, v in data.items():
for card in v.cards:
if card.name == '皮卡丘':
print(card.name, card.img_path, '--', card.collection_attr.set_symbol, card.collection_attr.card_no)
src = f'../PTCG-CHS-Datasets/{card.img_path}'
dst = f'../output/img/{card.collection_attr.set_symbol}/{card.collection_attr.card_no}.jpg'
folder = Path(f'../output/img/{card.collection_attr.set_symbol}')

Loading…
Cancel
Save