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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dfpyre
3
- Version: 0.8.13
3
+ Version: 0.8.14
4
4
  Summary: A package for creating and modifying code templates for the DiamondFire Minecraft server.
5
5
  Home-page: https://github.com/Amp63/pyre
6
6
  License: MIT
@@ -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']:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "dfpyre"
3
- version = "0.8.13"
3
+ version = "0.8.14"
4
4
  description = "A package for creating and modifying code templates for the DiamondFire Minecraft server."
5
5
  authors = ["Amp"]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes