Skip to content

Commit

Permalink
add comments and switch operator symbol for language consistency
Browse files Browse the repository at this point in the history
Signed-off-by: CyberFlame <cyberflameu@gmail.com>
  • Loading branch information
CyberFlameGO committed Oct 28, 2021
1 parent e6e314f commit 9b44e65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion rand_logic.basinc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
Symbol rand_var = rand_w_var
random rand_var
Symbol dice_out = dice_var
let dice_out = rand_w_var // mod_val
`You can use '//' instead of '%' for modulus division here
`but '%' is used more often in other languages,
'so for consistency is the one I'm using here.
let dice_out = rand_w_var % mod_val
#endmacro
#endregion
2 changes: 1 addition & 1 deletion rand_logic.basinc.settings
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<BreakPoints />
<SelectedLine>0</SelectedLine>
<SelectedColumn>0</SelectedColumn>
<CaretOffset>773</CaretOffset>
<CaretOffset>1064</CaretOffset>
<BottomVerticalSplitterPosition>0</BottomVerticalSplitterPosition>
<TopVerticalSplitterPosition>0</TopVerticalSplitterPosition>
<HorizontalSplitterPosition>0</HorizontalSplitterPosition>
Expand Down

0 comments on commit 9b44e65

Please sign in to comment.