dfpyre 0.8.13__py3-none-any.whl → 0.8.14__py3-none-any.whl

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/actiondump.py CHANGED
@@ -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
  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
@@ -1,13 +1,13 @@
1
1
  dfpyre/__init__.py,sha256=apPsSxJ1Tztfl71MoORoSmDfX7LyKLYlLwOGeLQUitw,25
2
2
  dfpyre/action_literals.py,sha256=bwdLVDi2sU_4HUmvyOJtCguPOWJga_fQTPLtzPm4Mr4,52084
3
- dfpyre/actiondump.py,sha256=zsdvsfVk2eZ3-O_G_azB4SDsFWMRkuzkNf-gqUfOsYc,3401
3
+ dfpyre/actiondump.py,sha256=FiL6Bit39djj_7NJo3vDZwOvVzv8pax4fRejL6isqnU,3579
4
4
  dfpyre/data/actiondump_min.json,sha256=a7Wvc_qBuzv-C_puidQ0vq7pYeM1oojeAimYpVykP_o,2478020
5
5
  dfpyre/items.py,sha256=GOUogkwm7TzgC4AmRem623BtGggxtFcgD2uTporNDgs,17409
6
6
  dfpyre/pyre.py,sha256=iP7D8Bt36vRZp_gd_M7IgViWYHzSDdh2fT_sDLrAMso,25454
7
7
  dfpyre/scriptgen.py,sha256=uCG32PlOdcJJBBKn91458eMgP_Ml4K4-n2Fk3LN0T4g,8054
8
8
  dfpyre/style.py,sha256=mLW1CFvvi8_9fk8JaH10I5S4WI0YBdQIXHtI3G_4sR8,980
9
9
  dfpyre/util.py,sha256=Jt-gJjbBWvv2Q2HFxU09OUeLje2OZbB3nAvs87IuHqQ,807
10
- dfpyre-0.8.13.dist-info/LICENSE,sha256=_vuDskB0ja2c-Fgm7Gt8Q8cO9NsLNpZAVyvmZwX7E6o,1060
11
- dfpyre-0.8.13.dist-info/METADATA,sha256=bxATIPmf0x6MjjFgj_zQqmFTVq1rXotLQx8S22Eo1qs,11949
12
- dfpyre-0.8.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
- dfpyre-0.8.13.dist-info/RECORD,,
10
+ dfpyre-0.8.14.dist-info/LICENSE,sha256=_vuDskB0ja2c-Fgm7Gt8Q8cO9NsLNpZAVyvmZwX7E6o,1060
11
+ dfpyre-0.8.14.dist-info/METADATA,sha256=qVBDbQiYa4dkAProrhYeheVM25z9ImYsu47g9-l6HHE,11949
12
+ dfpyre-0.8.14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
+ dfpyre-0.8.14.dist-info/RECORD,,