Commit Graph

60 Commits

Author SHA1 Message Date
Adam Goldsmith f8e5039833 Bump catalog id 2022-12-05 12:06:40 -05:00
Adam Goldsmith be0288f216 Set `faction_code: "neutral"` on Treachery cards 2022-12-05 12:05:21 -05:00
Adam Goldsmith abd3eda48c Bump catalog id 2022-12-04 19:47:26 -05:00
Adam Goldsmith 73e78c7a02 Add support for investigator cards 2022-12-04 19:46:14 -05:00
Adam Goldsmith d79ba152b0 Bump catalog id 2022-06-05 22:55:20 -04:00
Adam Goldsmith 8befda7973 Remove explicit `String` casts, not needed in SE 3.3 2022-06-05 21:35:53 -04:00
Adam Goldsmith d3cbf1de9c Use String.padStart(), as SE3 version 3.3 now supports it 2022-06-05 21:35:44 -04:00
Adam Goldsmith 7a3d1d2ec5 Remove some debug prints 2022-06-05 21:14:34 -04:00
Adam Goldsmith 8e3ab9e43e Refactor JSON card generation to allow for more card types
Rather than trying all settings and using what exists, declare what
should exist (via calling appropriate functions), per card type
2021-10-09 22:16:24 -04:00
Adam Goldsmith e96795030a Mark as as tool for AHLCG in the catalog 2021-09-17 16:12:37 -04:00
Adam Goldsmith a0011f8380 Set a name, description, and homepage for the plugin catalog 2021-09-17 15:59:39 -04:00
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