Commit Graph

49 Commits

Author SHA1 Message Date
Adam Goldsmith a32bfd5d03 Rename `member` to `deck_task` for clarity 2021-09-17 15:55:51 -04:00
Adam Goldsmith 25262e64cf Save/restore `pack_code` and `cycle_prefix` in the deck task settings 2021-09-17 15:54:17 -04:00
Adam Goldsmith d471e39b45 Get card `quantity` from Deck's `CopiesList` 2021-09-17 15:35:35 -04:00
Adam Goldsmith 011962af33 Query the user for `pack_code` and `cycle_prefix` at runtime 2021-09-17 15:25:01 -04:00
Adam Goldsmith 62e9e1ec4f Convert to plugin structure 2021-09-17 15:24:52 -04:00
Adam Goldsmith b6cf75b197 Switch to 200 DPI and JPEG as defaults for image output 2021-09-16 16:04:58 -04:00
Adam Goldsmith 1881a56e28 Don't hard code the exported image extension 2021-09-16 16:04:40 -04:00
Adam Goldsmith 7b58aacc79 Remove an invisible character from `ProjectUtilities.writeTextFile()` call 2021-09-16 15:45:24 -04:00
Adam Goldsmith ca4bb08a7a Only print "Generating..." message for valid card types 2021-09-15 23:20:23 -04:00
Adam Goldsmith 640c8d9733 Only re-export image if the source file is newer than the image 2021-09-15 15:20:26 -04:00
Adam Goldsmith 5fa9bf0cdd Fix skill_icon accumulating the first symbol (const -> let) 2021-09-15 15:20:04 -04:00
Adam Goldsmith df51724b59 Use `ProjectUtilities.writeTextFile​` to save JSON file 2021-09-15 15:02:45 -04:00
Adam Goldsmith 11cd73c70b Change default cycle prefix to not collide with existing data 2021-09-14 14:13:37 -04:00
Adam Goldsmith 92a93d6b6d Generate images for front face of each card 2021-09-14 13:44:04 -04:00
Adam Goldsmith ad4e082012 Write arkhamdb json output to a file 2021-09-14 13:43:19 -04:00
Adam Goldsmith c3051b19d2 Recursively iterate through all (supported) cards in the project 2021-09-14 13:43:19 -04:00
Adam Goldsmith fff366770a Switch from var to let/const, as appropriate 2021-09-13 17:39:11 -04:00
Adam Goldsmith 642cdeb40a Capitalize "Forced" keyword 2021-09-08 23:13:40 -04:00
Adam Goldsmith f13c2d8295 Omit health/sanity properties when their value is '-'
I'm not really sure about this one, but that's what the ArkhamDB JSON
schema suggests
2021-09-08 22:39:45 -04:00
Adam Goldsmith c024c8b8a8 Convert Weakness/Basic Weakness pseudo-classes into `subtype_code` 2021-09-08 22:38:27 -04:00
Adam Goldsmith d67d1192cf Don't include a faction if the card type doesn't have one
ie treachery weaknesses
2021-09-08 22:35:08 -04:00
Adam Goldsmith 1508e727bf Fix sanity property typo 2021-09-08 22:04:49 -04:00
Adam Goldsmith a0f66b935a Sort card data by keys for consistent diffs 2021-09-08 21:31:38 -04:00
Adam Goldsmith 2e498dab9b Replace tags globaly in card text 2021-09-08 20:08:36 -04:00
Adam Goldsmith 1a9c236c01 Don't include health/sanity if it is 'None' 2021-09-08 20:08:30 -04:00
Adam Goldsmith c7b81daa01 Use correct value for pack_code, add cycle_prefix 2021-09-08 19:57:42 -04:00
Adam Goldsmith 8db642fd48 Trim strings in substitute_tags 2021-09-08 19:57:20 -04:00
Adam Goldsmith fb0a079666 Don't include `slot` if it is 'None' 2021-09-08 19:48:54 -04:00
Adam Goldsmith df38eadc4c Sort list of cards by their codes 2021-09-08 17:14:14 -04:00
Adam Goldsmith 6ce8f04f42 Left pad card number for code 2021-09-08 17:12:58 -04:00
Adam Goldsmith abc474c993 Convert raw_slot2 to String 2021-09-08 14:57:26 -04:00
Adam Goldsmith efbf6e2814 Print out names of files as they are processed 2021-09-08 14:57:13 -04:00
Adam Goldsmith df43fa7333 Use faction2 variable instead of retrieving setting again 2021-09-08 14:46:37 -04:00
Adam Goldsmith e4a6b2db6b Fix stringyness of subtitle 2021-09-08 14:46:26 -04:00
Adam Goldsmith 7351eade40 Only include `skill_` fields when card has at least 1 of that symbol 2021-09-08 14:40:20 -04:00
Adam Goldsmith 01a0ff0aae Generate JSONs for all cards in project 2021-09-08 14:25:07 -04:00
Adam Goldsmith a86390579e Don't include cost if a card type doesn't have it 2021-09-08 13:26:17 -04:00
Adam Goldsmith 2b40a70299 Don't include second faction if the card type doesn't have it 2021-09-08 13:25:29 -04:00
Adam Goldsmith 25b4628348 Improve handling of integers, including values of 'X' 2021-09-08 13:25:29 -04:00
Adam Goldsmith 5e25b42e2a Correctly handle cards that do not have a `slot` 2021-09-08 13:25:28 -04:00
Adam Goldsmith b91b6a69ad Correctly place subtitle in `subname` field 2021-09-08 13:24:59 -04:00
Adam Goldsmith 65abe1c7cb Fix arkhamdb skill tags 2021-09-08 13:24:56 -04:00
Adam Goldsmith 6c9bed5fe0 Add missing XP field (and note about Victory) 2021-09-07 23:46:31 -04:00
Adam Goldsmith d1801add7a cleanup: Collapse some comments 2021-09-07 23:35:49 -04:00
Adam Goldsmith 236fb6c2a3 Add keywords to card text 2021-09-07 23:35:09 -04:00
Adam Goldsmith 37ebabcf42 Substitute out strange eons tags for arkhamdb equivalents 2021-09-07 23:30:17 -04:00
Adam Goldsmith 1d21b1e10c Only add 'faction2_code' if the card has a second class 2021-09-07 23:22:39 -04:00
Adam Goldsmith f2a9f81834 Make 'cost' an integer 2021-09-07 23:22:15 -04:00
Adam Goldsmith b779427b62 Initial Commit 2021-09-07 22:53:27 -04:00