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

ensure market randomness

parent 9062170e
No related branches found
No related tags found
No related merge requests found
...@@ -1034,12 +1034,6 @@ bookmarks=true]% ...@@ -1034,12 +1034,6 @@ bookmarks=true]%
\stepcounter{r2}% \stepcounter{r2}%
\stepcounter{r3}% \stepcounter{r3}%
\stepcounter{r4}% \stepcounter{r4}%
\stepcounter{r2t3}%
\stepcounter{r3t4}%
\stepcounter{r4t5}%
\stepcounter{r4t6}%
\stepcounter{r0t1}%
\stepcounter{rn1t0}
\setcounter{rn4tn1}{\value{r4b}}% \setcounter{rn4tn1}{\value{r4b}}%
\addtocounter{rn4tn1}{-5}% \addtocounter{rn4tn1}{-5}%
\setcounter{rn3t3}{\value{r3b}}% \setcounter{rn3t3}{\value{r3b}}%
...@@ -1051,11 +1045,20 @@ bookmarks=true]% ...@@ -1051,11 +1045,20 @@ bookmarks=true]%
\stepcounter{r2b}% \stepcounter{r2b}%
\stepcounter{r3b}% \stepcounter{r3b}%
\stepcounter{r2t4} \stepcounter{r2t4}
\stepcounter{r4t5}%
\else% \else%
\multiply\value{rn3t3} by -1% \multiply\value{rn3t3} by -1%
\addtocounter{rn3t3}{0}% \addtocounter{rn3t3}{0}%
\stepcounter{rn1t2} \stepcounter{r3c}%
\stepcounter{r4t6}%
\stepcounter{r0t1}%
\stepcounter{rn1t0}
\fi%
\ifodd\value{r3b}%
\stepcounter{r2c}% \stepcounter{r2c}%
\stepcounter{r3t4}%
\else%
\stepcounter{r2t3}%
\stepcounter{r3c}% \stepcounter{r3c}%
\stepcounter{r4b}% \stepcounter{r4b}%
\fi% \fi%
...@@ -1064,11 +1067,11 @@ bookmarks=true]% ...@@ -1064,11 +1067,11 @@ bookmarks=true]%
\foreach\c in {r3,r3b,r3c}% \foreach\c in {r3,r3b,r3c}%
{\ifnum\value{\c}>3\setcounter{\c}{1}\fi}% {\ifnum\value{\c}>3\setcounter{\c}{1}\fi}%
\foreach\c in {r4,r4b}% \foreach\c in {r4,r4b}%
{\ifnum\value{\c}>4\setcounter{\c}{1}\fi}% {\ifnum\value{\c}>4\setcounter{\c}{1}\stepcounter{rn1t2}\fi}%
\ifnum\value{r0t1}>1\setcounter{r0t1}{0}\fi% \ifnum\value{r0t1}>1\setcounter{r0t1}{0}\fi%
\ifnum\value{rn1t0}>0\setcounter{rn1t0}{-1}\fi% \ifnum\value{rn1t0}>0\setcounter{rn1t0}{-1}\fi%
\ifnum\value{r2t3}>3\setcounter{r2t3}{2}\stepcounter{rn1t2}\fi%
\ifnum\value{rn1t2}>2\setcounter{rn1t2}{-1}\fi% \ifnum\value{rn1t2}>2\setcounter{rn1t2}{-1}\fi%
\ifnum\value{r2t3}>3\setcounter{r2t3}{2}\fi%
\ifnum\value{r2t4}>4\setcounter{r2t4}{2}\fi% \ifnum\value{r2t4}>4\setcounter{r2t4}{2}\fi%
\ifnum\value{r3t4}>4\setcounter{r3t4}{3}\fi% \ifnum\value{r3t4}>4\setcounter{r3t4}{3}\fi%
\ifnum\value{r4t5}>5\setcounter{r4t5}{4}\fi% \ifnum\value{r4t5}>5\setcounter{r4t5}{4}\fi%
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
\else% \else%
\addtocounter{track}{\value{rn3t3}}% \addtocounter{track}{\value{rn3t3}}%
\ifnum\value{track}<14% \ifnum\value{track}<14%
\addtocounter{track}{\value{r4b}}% \addtocounter{track}{\value{r3b}}%
\addtocounter{track}{\value{rn1t2}}%
\else% \else%
\ifnum\value{track}<34% \ifnum\value{track}<34%
\addtocounter{track}{\value{r4t6}}% \addtocounter{track}{\value{r4t6}}%
......
...@@ -89,6 +89,42 @@ Words are needed after each subsection to avoid the boxes making problems. ...@@ -89,6 +89,42 @@ Words are needed after each subsection to avoid the boxes making problems.
\end{multicols} \end{multicols}
\newcommand\showCounters{
\arabic{r2} &
\arabic{r2b} &
\arabic{r2c} &
\arabic{r3} &
\arabic{r3b} &
\arabic{r3c} &
\arabic{r4} &
\arabic{r4b} &
\arabic{r0t1} &
\arabic{rn1t0} &
\arabic{rn1t2} &
\arabic{rn3t3} &
\arabic{r2t3} &
\arabic{r2t4} &
\arabic{r3t4} &
\arabic{r4t5} &
\arabic{r4t6}
\randomize
\\
}
\begin{tabular}{cccccccccccccccccc}
\textbf{r2} & \textbf{r2b} & \textbf{r2c} & \textbf{r3} & \textbf{r3b} & \textbf{r3c} & \textbf{r4} & \textbf{r4b} & \textbf{r0t1} & \textbf{rn1t0} & \textbf{rn1t2} & \textbf{rn3t3} & \textbf{r2t3} & \textbf{r2t4} & \textbf{r3t4} & \textbf{r4t5} & \textbf{r4t6} \\\hline
\showCounters
\showCounters
\showCounters
\showCounters
\showCounters
\showCounters
\showCounters
\showCounters
\showCounters
\showCounters
\end{tabular}
\mainmatter \mainmatter
\chapter{Side Quests} \chapter{Side Quests}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment