diff --git a/monsters.tex b/monsters.tex index b974588cb91ccad8216570e95d32ad9123534da6..ff89b12b7589f86af8fe21c8583eea16a5887c59 100644 --- a/monsters.tex +++ b/monsters.tex @@ -517,16 +517,16 @@ } \newcommand{\basilisk}{ -\randomthree\addtocounter{age}{5}\randomtwo\addtocounter{random}{1} -\animal{\arabic{age}}% STRENGTH -{-2}% DEXTERITY -{\arabic{random}}% SPEED -{0}% WITS -{4}% DR -{2}% AGGRESSION -{Projectiles 1, Athletics 2}% SKILLS -{Odour demands Strength check, TN 9. Acidic breath (1D6-2 Damage).}% ABILITIES -{\knacks{\unstoppable}} + \randomthree\addtocounter{age}{5}\randomtwo\addtocounter{r2}{1} + \animal{\arabic{age}}% STRENGTH + {-2}% DEXTERITY + {\arabic{r2}}% SPEED + {0}% WITS + {4}% DR + {2}% AGGRESSION + {Projectiles 1, Athletics 2}% SKILLS + {Odour demands Strength check, TN 9. Acidic breath (1D6-2 Damage).}% ABILITIES + {\knacks{\unstoppable}} } % diff --git a/preamble.tex b/preamble.tex index 9e25d5afd55040a7fa90b509613c845ede8a437e..77d7820811fb7bac55c981d7741144ff295d56a7 100644 --- a/preamble.tex +++ b/preamble.tex @@ -164,6 +164,10 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) \setcounter{secnumdepth}{1} } +\newcounter{r2} +\setcounter{r2}{1} +\newcounter{r3} +\setcounter{r3}{2} \newcounter{enc} \newcounter{list} \newcounter{spelllevel} @@ -272,13 +276,9 @@ Roll & Result \\ {\setcounter{age}{\value{random}}} } + \newcommand{\randomtwo}{ - \random - \whileboolexpr{ - test {\ifnumcomp{\value{random}}{>}{2}} - } - {\addtocounter{random}{-2}} - {\setcounter{enc}{\value{random}}} + \ifnumcomp{\value{r2}}{>}{2}{\setcounter{r2}{1}}{\addtocounter{r2}{1}} } \newcommand{\mapentry}[1]{\addtocounter{list}{1}\subsubsection{\arabic{list}: #1}}