Skip to content

Commit

Permalink
uh oh
Browse files Browse the repository at this point in the history
Signed-off-by: CyberFlame <cyberflameu@gmail.com>
  • Loading branch information
CyberFlameGO committed Nov 4, 2021
1 parent 9b44e65 commit 4864b75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions rand_logic.basinc
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
#region "Value generator macro"
;We use the macro preprocessor directive here
#macro dice_gen( rand_w_var, mod_val, dice_var )
Symbol rand_var = rand_w_var
random rand_var
Symbol dice_out = dice_var
random rand_w_var
`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
let dice_var = 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>1064</CaretOffset>
<CaretOffset>963</CaretOffset>
<BottomVerticalSplitterPosition>0</BottomVerticalSplitterPosition>
<TopVerticalSplitterPosition>0</TopVerticalSplitterPosition>
<HorizontalSplitterPosition>0</HorizontalSplitterPosition>
Expand Down

0 comments on commit 4864b75

Please sign in to comment.