Skip to content
Snippets Groups Projects
Verified Commit 6ec1750a authored by Malin Freeborn's avatar Malin Freeborn
Browse files

remove \randomdozen command

parent 71b78922
Branches
No related tags found
No related merge requests found
......@@ -1030,15 +1030,6 @@ bookmarks=true]%
\stepcounter{r4b}%
}
\newcommand{\randomdozen}{%
\randomfourB%
\setcounter{r12}{0}%
\addtocounter{r12}{\value{r4b}}%
\addtocounter{r12}{\value{r3c}}%
\addtocounter{r12}{\value{r3}}%
\addtocounter{r12}{\value{r4}}%
}
\newcommand\randomize{%
\stepcounter{r2}%
\stepcounter{r3}%
......
......@@ -92,8 +92,10 @@
\iftoggle{genExamples}{%
\ifodd\value{r2}%
$3D6$\else$2D6$%
\fi \glspl{cp}}{%
\randomdozen\multiply\value{r12} by \value{r4}\arabic{r12}~\glspl{cp}}%
\fi~\glspl{cp}}{%
\randomize%
\arabic{r12}~\glspl{cp}%
}%
}
\newcommand{\lootMedium}{%
......@@ -103,16 +105,18 @@
\else%
$2D6$%
\fi~\glspl{sp}}{%
\randomdozen%
\randomize%
\setcounter{gold}{\value{r12}}%
\multiply\value{gold} by 3 \arabic{gold}~\glspl{sp}}%
}
\newcommand{\lootBig}{%
\iftoggle{genExamples}{%
$3D6-2$~\glspl{gp}}{%
\randomdozen\addtocounter{r12}{8}\arabic{r12}\glspl{gp}%
}%
\iftoggle{genExamples}{%
$3D6-2$~\glspl{gp}%
}{%
\randomize\addtocounter{r12}{8}%
\arabic{r12}\glspl{gp}%
}%
}
\newcommand{\lootTalisman}{%
......@@ -175,9 +179,9 @@
}
\newcommand{\lootJewellery}{%
\randomdozen%
\iftoggle{genExamples}{jewellery worth~\ifodd\value{r2}$3D6$~\glspl{sp}\else$1D6+2$~\glspl{gp}\fi}%
{%
\randomize%
\stepcounter{treasure}%
\ifnum\value{treasure}>10\addtocounter{treasure}{-10}\fi%
\ifcase\value{treasure}\relax%
......
......@@ -25,11 +25,7 @@
}
\newcommand\marketItem[4][sp]{
\ifodd\value{track}%
\randomthree%
\randomfour%
\fi%
\randomdozen
\randomize%
#2 &% Name
#3 &% Weight
\mkPrice[#1]{#4} % Price
......
......@@ -29,7 +29,6 @@
\end{nametable}
\randomdozen
\ifnum\value{r12}>7
\noindent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment