Skip to content
Snippets Groups Projects
Unverified Commit a27c4051 authored by Malin Freeborn's avatar Malin Freeborn
Browse files

let \dicef use 2 dice for 12

parent f9aca80c
No related branches found
No related tags found
No related merge requests found
...@@ -349,6 +349,10 @@ bookmarks=true]% ...@@ -349,6 +349,10 @@ bookmarks=true]%
\newcommand\dicef[2][]{% \newcommand\dicef[2][]{%
#1% #1%
\setcounter{diceNo}{#2}% \setcounter{diceNo}{#2}%
\ifnum\value{diceNo}=12%
\epsdice[black]{6}%
\epsdice{6}%
\else%
\ifnum\value{diceNo}>0% \ifnum\value{diceNo}>0%
\whileboolexpr{% \whileboolexpr{%
test {\ifnumcomp{\value{diceNo}}{>}{6}}% test {\ifnumcomp{\value{diceNo}}{>}{6}}%
...@@ -360,6 +364,7 @@ bookmarks=true]% ...@@ -360,6 +364,7 @@ bookmarks=true]%
\else% \else%
\arabic{diceNo}% \arabic{diceNo}%
\fi% \fi%
\fi%
} }
\newcounter{diceNo2} \newcounter{diceNo2}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment