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
Branches
Tags
No related merge requests found
......@@ -349,16 +349,21 @@ bookmarks=true]%
\newcommand\dicef[2][]{%
#1%
\setcounter{diceNo}{#2}%
\ifnum\value{diceNo}>0%
\whileboolexpr{%
test {\ifnumcomp{\value{diceNo}}{>}{6}}%
}{%
\addtocounter{diceNo}{-5}%
\epsdice{5}%
}%
\epsdice[black]{\value{diceNo}}%
\ifnum\value{diceNo}=12%
\epsdice[black]{6}%
\epsdice{6}%
\else%
\arabic{diceNo}%
\ifnum\value{diceNo}>0%
\whileboolexpr{%
test {\ifnumcomp{\value{diceNo}}{>}{6}}%
}{%
\addtocounter{diceNo}{-5}%
\epsdice{5}%
}%
\epsdice[black]{\value{diceNo}}%
\else%
\arabic{diceNo}%
\fi%
\fi%
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment