dfpyre 0.8.13__tar.gz → 0.8.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dfpyre might be problematic. Click here for more details.
- {dfpyre-0.8.13 → dfpyre-0.8.14}/PKG-INFO +1 -1
- {dfpyre-0.8.13 → dfpyre-0.8.14}/dfpyre/actiondump.py +5 -3
- {dfpyre-0.8.13 → dfpyre-0.8.14}/pyproject.toml +1 -1
- {dfpyre-0.8.13 → dfpyre-0.8.14}/LICENSE +0 -0
- {dfpyre-0.8.13 → dfpyre-0.8.14}/README.md +0 -0
- {dfpyre-0.8.13 → dfpyre-0.8.14}/dfpyre/__init__.py +0 -0
- {dfpyre-0.8.13 → dfpyre-0.8.14}/dfpyre/action_literals.py +0 -0
- {dfpyre-0.8.13 → dfpyre-0.8.14}/dfpyre/data/actiondump_min.json +0 -0
- {dfpyre-0.8.13 → dfpyre-0.8.14}/dfpyre/items.py +0 -0
- {dfpyre-0.8.13 → dfpyre-0.8.14}/dfpyre/pyre.py +0 -0
- {dfpyre-0.8.13 → dfpyre-0.8.14}/dfpyre/scriptgen.py +0 -0
- {dfpyre-0.8.13 → dfpyre-0.8.14}/dfpyre/style.py +0 -0
- {dfpyre-0.8.13 → dfpyre-0.8.14}/dfpyre/util.py +0 -0
|
@@ -52,20 +52,22 @@ def parse_actiondump() -> ActiondumpResult:
|
|
|
52
52
|
codeblock_data = {n: {} for n in CODEBLOCK_NAME_LOOKUP.values()}
|
|
53
53
|
codeblock_data['else'] = {'tags': []}
|
|
54
54
|
|
|
55
|
-
|
|
56
55
|
if not os.path.exists(ACTIONDUMP_PATH):
|
|
57
56
|
warn('data.json not found -- Item tags and error checking will not work.')
|
|
58
57
|
return {}, set()
|
|
59
58
|
|
|
60
59
|
with open(ACTIONDUMP_PATH, 'r', encoding='utf-8') as f:
|
|
61
60
|
actiondump = json.loads(f.read())
|
|
62
|
-
|
|
63
61
|
for action_data in actiondump['actions']:
|
|
64
62
|
action_tags = get_action_tags(action_data)
|
|
65
|
-
parsed_action_data = {'tags': action_tags}
|
|
63
|
+
parsed_action_data = {'tags': action_tags, 'required_rank': 'None'}
|
|
66
64
|
if dep_note := action_data['icon']['deprecatedNote']:
|
|
67
65
|
parsed_action_data['deprecatedNote'] = ' '.join(dep_note)
|
|
68
66
|
|
|
67
|
+
required_rank = action_data['icon']['requiredRank']
|
|
68
|
+
if required_rank:
|
|
69
|
+
parsed_action_data['required_rank'] = required_rank
|
|
70
|
+
|
|
69
71
|
codeblock_name = CODEBLOCK_NAME_LOOKUP[action_data['codeblockName']]
|
|
70
72
|
codeblock_data[codeblock_name][action_data['name']] = parsed_action_data
|
|
71
73
|
if aliases := action_data['aliases']:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|