update PROMO set name

main
beiyanpiki 1 year ago
parent 2cd7e8bf88
commit a077598960

@ -130198,55 +130198,6 @@
],
"cards_num": 217
},
{
"name": "\u739b\u4fd0\u7684\u51b3\u5fc3\u4e13\u5c5e\u793c\u76d2",
"set_id": "PROMO5",
"symbol": "PROMO",
"release_date": "2023-06-18",
"series": "Sword & Shield",
"main_expansion": false,
"cards": [
{
"name": "\u739b\u4fd0",
"text": "\u53cc\u65b9\u73a9\u5bb6\uff0c\u5404\u5c06\u81ea\u5df1\u6240\u6709\u7684\u624b\u724c\u53cd\u9762\u671d\u4e0a\u91cd\u6d17\uff0c\u653e\u56de\u724c\u5e93\u4e0b\u65b9\u3002\u7136\u540e\uff0c\u81ea\u5df1\u4ece\u724c\u5e93\u4e0a\u65b9\u62bd\u53d65\u5f20\u5361\u724c\uff0c\u5bf9\u624b\u4ece\u724c\u5e93\u4e0a\u65b9\u62bd\u53d64\u5f20\u5361\u724c\u3002\n\n\n\u5728\u81ea\u5df1\u7684\u56de\u5408\u53ea\u53ef\u4ee5\u4f7f\u75281\u5f20\u652f\u63f4\u8005\u5361\u3002\n",
"type": "Supporter",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sword & Shield",
"set_symbol": "SSP",
"card_no": "077",
"set_collect_num": "S-P",
"artist_name": "kirisAki",
"rarity": ""
},
"energy_attr": null,
"regulation_mark": "D",
"effect_id": "ec436f08720ec9e29bcf5bd4fd99708d"
},
{
"name": "\u739b\u4fd0",
"text": "\u53cc\u65b9\u73a9\u5bb6\uff0c\u5404\u5c06\u81ea\u5df1\u6240\u6709\u7684\u624b\u724c\u53cd\u9762\u671d\u4e0a\u91cd\u6d17\uff0c\u653e\u56de\u724c\u5e93\u4e0b\u65b9\u3002\u7136\u540e\uff0c\u81ea\u5df1\u4ece\u724c\u5e93\u4e0a\u65b9\u62bd\u53d65\u5f20\u5361\u724c\uff0c\u5bf9\u624b\u4ece\u724c\u5e93\u4e0a\u65b9\u62bd\u53d64\u5f20\u5361\u724c\u3002\n\n\n\u5728\u81ea\u5df1\u7684\u56de\u5408\u53ea\u53ef\u4ee5\u4f7f\u75281\u5f20\u652f\u63f4\u8005\u5361\u3002\n",
"type": "Supporter",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sword & Shield",
"set_symbol": "SSP",
"card_no": "078",
"set_collect_num": "S-P",
"artist_name": "Naoki Saito",
"rarity": ""
},
"energy_attr": null,
"regulation_mark": "D",
"effect_id": "ec436f08720ec9e29bcf5bd4fd99708d"
}
],
"cards_num": 2
},
{
"name": "\u5f3a\u5316\u5305 \u6781\u5de8\u653b\u9632",
"set_id": "CS1.5C",
@ -147300,140 +147251,6 @@
],
"cards_num": 143
},
{
"name": "\u55b7\u706b\u9f99VMAX\u5bf9\u6218\u5957\u88c5\u793c\u76d2",
"set_id": "PROMO8",
"symbol": "PROMO",
"release_date": "2023-08-18",
"series": "Sword & Shield",
"main_expansion": false,
"cards": [
{
"name": "\u55b7\u706b\u9f99VMAX",
"text": "\u5229\u722a\u5288\u5f00\t100\n\n\u8d85\u6781\u5de8\u5730\u72f1\u706d\u7130\t300\n\u9009\u62e9\u9644\u7740\u4e8e\u8fd9\u53ea\u5b9d\u53ef\u68a6\u8eab\u4e0a\u76842\u4e2a\u80fd\u91cf\uff0c\u653e\u4e8e\u5f03\u724c\u533a\u3002\n",
"type": "Pokemon",
"mechanic": null,
"label": null,
"pokemon_attr": {
"energy_type": "R",
"stage": "VMAX",
"hp": 330,
"ability": null,
"ancient_trait": null,
"weakness": {
"weakness_type": "W",
"weakness_value": "\u00d72"
},
"resistance": null,
"retreat_cost": 3,
"pokedex": "Y604",
"attacks": [
{
"name": "\u5229\u722a\u5288\u5f00",
"text": "none",
"cost": [
"C",
"C",
"C"
],
"damage": "100"
},
{
"name": "\u8d85\u6781\u5de8\u5730\u72f1\u706d\u7130",
"text": "\u9009\u62e9\u9644\u7740\u4e8e\u8fd9\u53ea\u5b9d\u53ef\u68a6\u8eab\u4e0a\u76842\u4e2a\u80fd\u91cf\uff0c\u653e\u4e8e\u5f03\u724c\u533a\u3002",
"cost": [
"R",
"R",
"R",
"C",
"C"
],
"damage": "300"
}
]
},
"collection_attr": {
"series": "Sword & Shield",
"set_symbol": "SSP",
"card_no": "079",
"set_collect_num": "S-P",
"artist_name": "aky CG Works",
"rarity": ""
},
"energy_attr": null,
"regulation_mark": "D",
"effect_id": "37ea42426b4bfed24b544081e7a61c05"
}
],
"cards_num": 1
},
{
"name": "\u55b7\u706b\u9f99VMAX\u6536\u85cf\u5957\u88c5\u793c\u76d2",
"set_id": "PROMO7",
"symbol": "PROMO",
"release_date": "2023-08-18",
"series": "Sword & Shield",
"main_expansion": false,
"cards": [
{
"name": "\u55b7\u706b\u9f99VMAX",
"text": "\u5229\u722a\u5288\u5f00\t100\n\n\u8d85\u6781\u5de8\u5730\u72f1\u706d\u7130\t300\n\u9009\u62e9\u9644\u7740\u4e8e\u8fd9\u53ea\u5b9d\u53ef\u68a6\u8eab\u4e0a\u76842\u4e2a\u80fd\u91cf\uff0c\u653e\u4e8e\u5f03\u724c\u533a\u3002\n",
"type": "Pokemon",
"mechanic": null,
"label": null,
"pokemon_attr": {
"energy_type": "R",
"stage": "VMAX",
"hp": 330,
"ability": null,
"ancient_trait": null,
"weakness": {
"weakness_type": "W",
"weakness_value": "\u00d72"
},
"resistance": null,
"retreat_cost": 3,
"pokedex": "Y604",
"attacks": [
{
"name": "\u5229\u722a\u5288\u5f00",
"text": "none",
"cost": [
"C",
"C",
"C"
],
"damage": "100"
},
{
"name": "\u8d85\u6781\u5de8\u5730\u72f1\u706d\u7130",
"text": "\u9009\u62e9\u9644\u7740\u4e8e\u8fd9\u53ea\u5b9d\u53ef\u68a6\u8eab\u4e0a\u76842\u4e2a\u80fd\u91cf\uff0c\u653e\u4e8e\u5f03\u724c\u533a\u3002",
"cost": [
"R",
"R",
"R",
"C",
"C"
],
"damage": "300"
}
]
},
"collection_attr": {
"series": "Sword & Shield",
"set_symbol": "SSP",
"card_no": "080",
"set_collect_num": "S-P",
"artist_name": "Shiburingaru",
"rarity": ""
},
"energy_attr": null,
"regulation_mark": "D",
"effect_id": "37ea42426b4bfed24b544081e7a61c05"
}
],
"cards_num": 1
},
{
"name": "\u8f89\u91d1\u80fd\u91cf\u793c\u76d2&\u8f89\u91d1\u80fd\u91cf\u8fdb\u9636\u793c\u76d2",
"set_id": "CSM2.1C",
@ -155058,5 +154875,188 @@
}
],
"cards_num": 83
},
{
"name": "\u739b\u4fd0\u7684\u51b3\u5fc3\u4e13\u5c5e\u793c\u76d2",
"set_id": "PROMO5",
"symbol": "PROMO",
"release_date": "2023-06-18",
"series": "Sword & Shield",
"main_expansion": false,
"cards": [
{
"name": "\u739b\u4fd0",
"text": "\u53cc\u65b9\u73a9\u5bb6\uff0c\u5404\u5c06\u81ea\u5df1\u6240\u6709\u7684\u624b\u724c\u53cd\u9762\u671d\u4e0a\u91cd\u6d17\uff0c\u653e\u56de\u724c\u5e93\u4e0b\u65b9\u3002\u7136\u540e\uff0c\u81ea\u5df1\u4ece\u724c\u5e93\u4e0a\u65b9\u62bd\u53d65\u5f20\u5361\u724c\uff0c\u5bf9\u624b\u4ece\u724c\u5e93\u4e0a\u65b9\u62bd\u53d64\u5f20\u5361\u724c\u3002\n\n\n\u5728\u81ea\u5df1\u7684\u56de\u5408\u53ea\u53ef\u4ee5\u4f7f\u75281\u5f20\u652f\u63f4\u8005\u5361\u3002\n",
"type": "Supporter",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sword & Shield",
"set_symbol": "SSP",
"card_no": "077",
"set_collect_num": "S-P",
"artist_name": "kirisAki",
"rarity": ""
},
"energy_attr": null,
"regulation_mark": "D",
"effect_id": "ec436f08720ec9e29bcf5bd4fd99708d"
},
{
"name": "\u739b\u4fd0",
"text": "\u53cc\u65b9\u73a9\u5bb6\uff0c\u5404\u5c06\u81ea\u5df1\u6240\u6709\u7684\u624b\u724c\u53cd\u9762\u671d\u4e0a\u91cd\u6d17\uff0c\u653e\u56de\u724c\u5e93\u4e0b\u65b9\u3002\u7136\u540e\uff0c\u81ea\u5df1\u4ece\u724c\u5e93\u4e0a\u65b9\u62bd\u53d65\u5f20\u5361\u724c\uff0c\u5bf9\u624b\u4ece\u724c\u5e93\u4e0a\u65b9\u62bd\u53d64\u5f20\u5361\u724c\u3002\n\n\n\u5728\u81ea\u5df1\u7684\u56de\u5408\u53ea\u53ef\u4ee5\u4f7f\u75281\u5f20\u652f\u63f4\u8005\u5361\u3002\n",
"type": "Supporter",
"mechanic": null,
"label": null,
"pokemon_attr": null,
"collection_attr": {
"series": "Sword & Shield",
"set_symbol": "SSP",
"card_no": "078",
"set_collect_num": "S-P",
"artist_name": "Naoki Saito",
"rarity": ""
},
"energy_attr": null,
"regulation_mark": "D",
"effect_id": "ec436f08720ec9e29bcf5bd4fd99708d"
}
],
"cards_num": 2
},
{
"name": "\u55b7\u706b\u9f99VMAX\u6536\u85cf\u5957\u88c5\u793c\u76d2",
"set_id": "PROMO7",
"symbol": "PROMO",
"release_date": "2023-08-18",
"series": "Sword & Shield",
"main_expansion": false,
"cards": [
{
"name": "\u55b7\u706b\u9f99VMAX",
"text": "\u5229\u722a\u5288\u5f00\t100\n\n\u8d85\u6781\u5de8\u5730\u72f1\u706d\u7130\t300\n\u9009\u62e9\u9644\u7740\u4e8e\u8fd9\u53ea\u5b9d\u53ef\u68a6\u8eab\u4e0a\u76842\u4e2a\u80fd\u91cf\uff0c\u653e\u4e8e\u5f03\u724c\u533a\u3002\n",
"type": "Pokemon",
"mechanic": null,
"label": null,
"pokemon_attr": {
"energy_type": "R",
"stage": "VMAX",
"hp": 330,
"ability": null,
"ancient_trait": null,
"weakness": {
"weakness_type": "W",
"weakness_value": "\u00d72"
},
"resistance": null,
"retreat_cost": 3,
"pokedex": "Y604",
"attacks": [
{
"name": "\u5229\u722a\u5288\u5f00",
"text": "none",
"cost": [
"C",
"C",
"C"
],
"damage": "100"
},
{
"name": "\u8d85\u6781\u5de8\u5730\u72f1\u706d\u7130",
"text": "\u9009\u62e9\u9644\u7740\u4e8e\u8fd9\u53ea\u5b9d\u53ef\u68a6\u8eab\u4e0a\u76842\u4e2a\u80fd\u91cf\uff0c\u653e\u4e8e\u5f03\u724c\u533a\u3002",
"cost": [
"R",
"R",
"R",
"C",
"C"
],
"damage": "300"
}
]
},
"collection_attr": {
"series": "Sword & Shield",
"set_symbol": "SSP",
"card_no": "080",
"set_collect_num": "S-P",
"artist_name": "Shiburingaru",
"rarity": ""
},
"energy_attr": null,
"regulation_mark": "D",
"effect_id": "37ea42426b4bfed24b544081e7a61c05"
}
],
"cards_num": 1
},
{
"name": "\u55b7\u706b\u9f99VMAX\u5bf9\u6218\u5957\u88c5\u793c\u76d2",
"set_id": "PROMO8",
"symbol": "PROMO",
"release_date": "2023-08-18",
"series": "Sword & Shield",
"main_expansion": false,
"cards": [
{
"name": "\u55b7\u706b\u9f99VMAX",
"text": "\u5229\u722a\u5288\u5f00\t100\n\n\u8d85\u6781\u5de8\u5730\u72f1\u706d\u7130\t300\n\u9009\u62e9\u9644\u7740\u4e8e\u8fd9\u53ea\u5b9d\u53ef\u68a6\u8eab\u4e0a\u76842\u4e2a\u80fd\u91cf\uff0c\u653e\u4e8e\u5f03\u724c\u533a\u3002\n",
"type": "Pokemon",
"mechanic": null,
"label": null,
"pokemon_attr": {
"energy_type": "R",
"stage": "VMAX",
"hp": 330,
"ability": null,
"ancient_trait": null,
"weakness": {
"weakness_type": "W",
"weakness_value": "\u00d72"
},
"resistance": null,
"retreat_cost": 3,
"pokedex": "Y604",
"attacks": [
{
"name": "\u5229\u722a\u5288\u5f00",
"text": "none",
"cost": [
"C",
"C",
"C"
],
"damage": "100"
},
{
"name": "\u8d85\u6781\u5de8\u5730\u72f1\u706d\u7130",
"text": "\u9009\u62e9\u9644\u7740\u4e8e\u8fd9\u53ea\u5b9d\u53ef\u68a6\u8eab\u4e0a\u76842\u4e2a\u80fd\u91cf\uff0c\u653e\u4e8e\u5f03\u724c\u533a\u3002",
"cost": [
"R",
"R",
"R",
"C",
"C"
],
"damage": "300"
}
]
},
"collection_attr": {
"series": "Sword & Shield",
"set_symbol": "SSP",
"card_no": "079",
"set_collect_num": "S-P",
"artist_name": "aky CG Works",
"rarity": ""
},
"energy_attr": null,
"regulation_mark": "D",
"effect_id": "37ea42426b4bfed24b544081e7a61c05"
}
],
"cards_num": 1
}
]

File diff suppressed because one or more lines are too long

@ -313,6 +313,9 @@ def main():
database["SMP"] = database.pop("PROMO")
database['SSP'] = database.pop("PROMO3")
database['PROMO-MARNIE'] = database.pop("PROMO5")
database['PROMO-CharizardA'] = database.pop("PROMO7")
database['PROMO-CharizardB'] = database.pop("PROMO8")
# Combine PROMO
cnt = 0
@ -328,7 +331,7 @@ def main():
cnt = 0
for k, v in database.items():
if k in ['PROMO4', 'PROMO6', 'PROMO7', 'PROMO8']:
if k in ['PROMO4', 'PROMO6', 'PROMO-CharizardA', 'PROMO-CharizardB']:
for card in v.cards:
c = card
c.collection_attr.set_symbol = 'SSP'
@ -372,6 +375,7 @@ def main():
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
@ -394,8 +398,6 @@ 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