Created
February 10, 2022 07:52
-
-
Save axlan/26147bf39be1e831181f934f9a41dec0 to your computer and use it in GitHub Desktop.
Python Script to Modify Card Conjurer Save
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
CARD_FILE_IN = 'card_save.json' | |
CARD_FILE_OUT = 'card_save_fixed.json' | |
with open(CARD_FILE_IN, 'rb') as fd: | |
data = json.load(fd) | |
for i, card in enumerate(data): | |
card["data"]["bottomInfo"]["wizards"]["text"] = '' | |
card["data"]["bottomInfo"]["bottomRight"]["text"] = '' | |
card["data"]["infoArtist"] = 'Mike Mignola' | |
card["data"]["infoSet"] = 'HLB' | |
card["data"]["infoNumber"] = str(i) | |
card["data"]["infoArtist"] = 'Mike Mignola' | |
card["data"]["setSymbolSource"] = "http://localhost:8000/pics/bprd.svg" | |
card["data"]["setSymbolZoom"] = 0.18 | |
with open(CARD_FILE_OUT, 'w') as fd: | |
json.dump(data, fd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment