Skip to content

Commit

Permalink
fix: update mecha to fix indent bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed May 2, 2022
1 parent f9f5a2b commit 006a57a
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 105 deletions.
17 changes: 17 additions & 0 deletions examples/bolt_flat/demo/main.bolt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,20 @@ from demo.math import add

function ./foo:
say add(2, 3)

function ./oby:
stat_list = [
"damage",
"attack_speed",
"multishot",
"piercing"
]

if data storage firework:temp data.item.tag.aftermath.stats:

for stat in stat_list:
if data storage firework:temp f'data.item.tag.aftermath.stats.{stat}':
say f'{stat}, present'

unless data storage firework:temp data.item.tag.aftermath.stats:
say 'hi'
Loading

0 comments on commit 006a57a

Please sign in to comment.