Skip to content

Commit

Permalink
data update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloodmallet committed Aug 19, 2024
1 parent 6838fa2 commit 623798f
Show file tree
Hide file tree
Showing 43 changed files with 51 additions and 45 deletions.
5 changes: 4 additions & 1 deletion simc_support/game_data/Talent.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ def _load_talents(
for raw_node in loaded_talents[spec]["specNodes"]:
talents = []
for raw_talent in raw_node["entries"]:
if not raw_talent:
continue

try:
talents.append(
Talent(
Expand All @@ -504,7 +507,7 @@ def _load_talents(
y=raw_node["posY"],
tree_node_type=TreeNodeType(raw_node["type"]),
required_invested_points=raw_node.get("reqPoints", 0),
max_rank=raw_node["maxRanks"],
max_rank=raw_node.get("maxRanks", 1),
children_ids=tuple(raw_node["next"]),
talents=tuple(talents),
order_index=order.index(raw_node["id"]),
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trees/druid_balance.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trees/druid_feral.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trees/mage_arcane.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trees/mage_fire.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trees/mage_frost.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trees/paladin_holy.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trees/priest_holy.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trees/priest_shadow.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trees/rogue_outlaw.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trees/warrior_arms.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trees/warrior_fury.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion simc_support/game_data/data_files/trinkets.json

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions simc_support/update/talents.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
or spec freebie
"""

import logging
import typing
import os
Expand Down Expand Up @@ -258,9 +259,11 @@ def combine_into_json(self, data: typing.Dict[str, LOCALE_TABLES]) -> None:
for tree in ["specNodes", "classNodes"]:
for node in spec_data[tree]:
for entry in node["entries"]:
entry["icon"] = spellicon_wowhead_icon_map.get(
entry["icon"], entry["icon"]
)
# somehow icons started to get missing
if "icon" in entry:
entry["icon"] = spellicon_wowhead_icon_map.get(
entry["icon"], entry["icon"]
)

# sanity/curiousity checks
logger.info(
Expand Down

0 comments on commit 623798f

Please sign in to comment.