diff --git a/monsters.tex b/monsters.tex index 6d98b4293cca69b50832407be64cc7b721764499..b87aa303d2a2b3e41a545c183cfbbc72fc540a55 100644 --- a/monsters.tex +++ b/monsters.tex @@ -352,10 +352,17 @@ TN \arabic{dex}% \ifnumcomp{\value{dr}}{>}{0}{\ifnum\pdfstrcmp{\armourtype}{P}=0\addtocounter{dexb}{3} (\arabic{dexb})\fi\ifnum\pdfstrcmp{\armourtype}{C}=0\addtocounter{dexb}{5} (\arabic{dexb})\fi}{}, }% - \ifnumcomp{\value{dr}}{>}{0}{DR \arabic{dr} \armourtype,}{} \ifnumcomp{\value{mp}}{>}{0}{\addtocounter{mp}{\value{int}}\ifnumcomp{\value{mpb}}{=}{0}{\arabic{mp} MP, }{\addtocounter{mpb}{\value{mp}}\arabic{mpb} / \arabic{mp} MP, }}{}\arabic{hp} HP\ifnumcomp{\value{sp}}{>}{0}{, \arabic{sp} SP}{}% + \ifnumcomp{\value{dr}}{>}{0}{DR \arabic{dr} \armourtype,}{} \ifnumcomp{\value{mp}}{>}{0}{\addtocounter{mp}{\value{int}}\ifnumcomp{\value{mpb}}{=}{0}{\arabic{mp} MP, }{\addtocounter{mpb}{\value{mp}}\arabic{mpb} / \arabic{mp} MP, }}{}\arabic{hp} HP\ifnumcomp{\value{sp}}{>}{0}{, \arabic{sp} SP + +}{} + \ifnumcomp{\value{bestiarychapter}}{=}{\thechapter}{}{% + \Repeat{\value{hp}}{\ding{111}} + } \iftoggle{examplecharacter}{\addtocounter{fp}{\value{cha}}, \arabic{fp} FP}{} + + \iftoggle{examplecharacter}{}{ \calculateXP } @@ -411,7 +418,11 @@ % \iftoggle{examplecharacter}{% }{ - \iftoggle{mind}{\addtocounter{fp}{\value{cha}}\ldots \arabic{fp} FP}{} + \iftoggle{mind}{\addtocounter{fp}{\value{cha}} \arabic{fp} FP + \ifnumcomp{\value{bestiarychapter}}{=}{\thechapter}{}{% + \Repeat{\value{fp}}{\ding{111}} + } +}{} \vspace{.1cm} \hrule } diff --git a/preamble.tex b/preamble.tex index a8f381aae779f31775d71b107ea062c063afef29..94c8c392e145746f3c6b35cfe3f932fa30bc243b 100644 --- a/preamble.tex +++ b/preamble.tex @@ -69,6 +69,21 @@ bookmarks=true]% \@starttoc{toc}% \end{multicols} } +% and make repeating function +\newcommand{\Repeat}[1]{% + \expandafter\@Repeat\expandafter{\the\numexpr #1\relax}% +} + +\def\@Repeat#1{% + \ifnum#1>0 + \expandafter\@@Repeat\expandafter{\the\numexpr #1-1\expandafter\relax\expandafter}% + \else + \expandafter\@gobble + \fi +} +\def\@@Repeat#1#2{% + \@Repeat{#1}{#2}#2% +} \makeatother