Skip to content

Commit

Permalink
update HOWTO and black
Browse files Browse the repository at this point in the history
  • Loading branch information
StoicLoofah committed Oct 19, 2019
1 parent 24922b3 commit 3989bd3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sc2reader/data/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ At the time of writing, the latest build version is 53644.
e.g. `python3 sc2reader/generate_build_data.py LotV 53644 balance_data/ sc2reader/`
This will generate the necessary data files to support the new build version (namely, `53644_abilities.csv`, `53644_units.csv`, and updated versions of `ability_lookup.csv` and `unit_lookup.csv`).
4. Finally, modify `sc2reader/data/__init__.py` and `sc2reader/resources.py` to register support for the new build version.

If you are not able to see the correct expansion for the balance data, you may need to authenticate. See the instructions at
https://github.com/ggtracker/sc2reader/issues/98#issuecomment-542554588 on how to do that
12 changes: 11 additions & 1 deletion sc2reader/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,17 @@ def load_build(expansion, version):

# Load LotV Data
lotv_builds = dict()
for version in ("base", "44401", "47185", "48258", "53644", "54724", "59587", "70154", "76114"):
for version in (
"base",
"44401",
"47185",
"48258",
"53644",
"54724",
"59587",
"70154",
"76114",
):
lotv_builds[version] = load_build("LotV", version)

datapacks = builds = {"WoL": wol_builds, "HotS": hots_builds, "LotV": lotv_builds}

0 comments on commit 3989bd3

Please sign in to comment.