swlegion / tts

Table Top Simulator Mod for Star Wars: Legion
MIT License
43 stars 27 forks source link

Card content refactor #547

Closed dicewrench closed 2 years ago

dicewrench commented 2 years ago

Splits official.json units array into per faction JSON files.

UnitData now supports an optional "content" path string which can point at additional JSON files for unit data. These are checked during Deck generation (cards include) and loaded to populate each unit. This means units that are shared cross-factions can have their content stored in a single location (less work, less fragility).

For an example; watch me ramble here: https://drive.google.com/file/d/1-vJ0LZHZ3qbPijeibfNwNsGQFD06O9qm/view?usp=sharing