diff --git a/CS.tex b/CS.tex index 1afe32587817dfac08b03270a9ae98c6c50f0348..638bb86d1e212d9ad0745fa7a8cd10fdf5e3c4f6 100644 --- a/CS.tex +++ b/CS.tex @@ -290,7 +290,7 @@ circle label/.style = { \glsentryshortpl{cp} - \iftoggle{bestiarychapter}{\arabic{gold} }{\weeline} + \iftoggle{genExamples}{\arabic{gold} }{\weeline} \glsentryshortpl{sp}\weeline \glsentryshortpl{gp}\weeline } diff --git a/docs.tex b/docs.tex index f2383135f5dace646537469955e5c42d005333b8..f863be4f90d2016a2d918ef0129c8807ac0f8ae5 100644 --- a/docs.tex +++ b/docs.tex @@ -82,7 +82,7 @@ Individual characters can be created by using the \verb"\npc" command then the \ \subsubsection{Bestiary with monstrous ghouls, and ghoulish monsters} Statblocks in a bestiary chapter (or any space for examples). -You can set an example chapter by writing \verb"\settoggle{bestiarychapter}{true}" +You can set an example chapter by writing \verb"\settoggle{genExamples}{true}" Then the \verb"\humansoldier" command turns from this: @@ -90,7 +90,7 @@ Then the \verb"\humansoldier" command turns from this: \ldots into this: -%\settoggle{bestiarychapter}{true} +%\settoggle{genExamples}{true} \humansoldier diff --git a/layout.sty b/layout.sty index ee4c5155161dc5dd09b16d51dc968726962b231b..cb244513dd71f89ae03d43f48125f8a64bc91ec7 100644 --- a/layout.sty +++ b/layout.sty @@ -634,7 +634,7 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) \newcounter{track} \setcounter{track}{18} - \newcommand{\tracker}{\center\noindent\iftoggle{examplecharacter}{\iftoggle{bestiarychapter}{}{\ifnum\value{track}=\value{Speed}$\Rightarrow$ \fi}}{}\arabic{track}\addtocounter{track}{-1}\vspace{.54cm} + \newcommand{\tracker}{\center\noindent\iftoggle{examplecharacter}{\iftoggle{genExamples}{}{\ifnum\value{track}=\value{Speed}$\Rightarrow$ \fi}}{}\arabic{track}\addtocounter{track}{-1}\vspace{.54cm} } diff --git a/loot.sty b/loot.sty index b480daa8287267f6c35c4e6c549a443c752144bf..8c975779114b4cd8afc95fa3d427db582dc3f391 100644 --- a/loot.sty +++ b/loot.sty @@ -5,7 +5,7 @@ %%%%%%%%%%%%%%%%%%%% LOOT %%%%%%%%%%%%%%%%%%%% \newcommand{\lootSmall}{% - \iftoggle{bestiarychapter}{% + \iftoggle{genExamples}{% \ifodd\value{r2}% $3D6$\else$2D6$% \fi \glspl{cp}}{% @@ -13,7 +13,7 @@ } \newcommand{\lootMedium}{% - \iftoggle{bestiarychapter}{% + \iftoggle{genExamples}{% \ifodd\value{r2}% $3D6$% \else% @@ -28,7 +28,7 @@ } \newcommand{\lootBig}{% -\iftoggle{bestiarychapter}{% +\iftoggle{genExamples}{% \ifodd\thepage $3D6-2$\else$2D6+4$\fi \glspl{gp}}{% \randomdozen\addtocounter{r12}{8}\arabic{r12}\glspl{gp}% }% @@ -38,7 +38,7 @@ \ifnum\value{noAppearing}>1% Mana stone holding 2 MP% \else% - \iftoggle{bestiarychapter}{}% + \iftoggle{genExamples}{}% {% \stepcounter{treasure}% \ifnum\value{treasure}>10\setcounter{treasure}{0}\fi% @@ -73,7 +73,7 @@ \newcommand{\lootJewellery}{% -\iftoggle{bestiarychapter}{jewellery worth \ifodd\value{r2}$3D6$sp\else$1D6+2$\glspl{gp}\fi}% +\iftoggle{genExamples}{jewellery worth \ifodd\value{r2}$3D6$sp\else$1D6+2$\glspl{gp}\fi}% {% \stepcounter{treasure}% \ifnum\value{treasure}>10\setcounter{treasure}{0}\fi% diff --git a/monsters.sty b/monsters.sty index d1af797b802e2b02253a46879cc175a1fd92a6eb..ed16e57bea19104fb4c9d5effdbf541c749e5d69 100644 --- a/monsters.sty +++ b/monsters.sty @@ -1380,7 +1380,7 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v \else% \greatsword, dagger% \fi% -\iftoggle{bestiarychapter}{}% +\iftoggle{genExamples}{}% {\ifodd\thepage, \lootJewellery\fi}% }% EQUIPMENT {} diff --git a/resources.tex b/resources.tex index 4cb4a2f08e41f66089b66e9ab31190824c5d1cb0..541cdf32abd0e607b4ca2291b92b8880057083da 100644 --- a/resources.tex +++ b/resources.tex @@ -6,7 +6,7 @@ \externalReferent{aif} \settoggle{verbose}{true} -\settoggle{bestiarychapter}{false} +\settoggle{genExamples}{false} \settoggle{examplecharacter}{false} \begin{document} diff --git a/stats.sty b/stats.sty index 7bcc837e59cbcf958906a457501a3167374e2599..60a6ebfeb348fb012341e78cc2086e749a4de1c9 100644 --- a/stats.sty +++ b/stats.sty @@ -1,8 +1,8 @@ \ProvidesPackage{config/stats} %%%%%%%%%%%%%%%%%%%% Introduction -\newtoggle{bestiarychapter} -\settoggle{bestiarychapter}{false} +\newtoggle{genExamples} +\settoggle{genExamples}{false} \newtoggle{allyCharacter} \settoggle{allyCharacter}{false} @@ -718,7 +718,7 @@ \setcounter{mpFree}{\value{mp}} \addtocounter{mpFree}{-\value{mpLocked}}% \fi% - \iftoggle{bestiarychapter}{% + \iftoggle{genExamples}{% HP~\arabic{hp}, \ifnum\value{mp}>0% MP @@ -795,7 +795,7 @@ \iftoggle{mind}% {\addtocounter{fp}{\value{Charisma}}% \ifnum\value{fp}>2\ignorespaces, \arabic{fp}~FP % - \iftoggle{bestiarychapter}% + \iftoggle{genExamples}% {}% {\Repeat{\value{fp}}{\sqn}}% \fi diff --git a/test.tex b/test.tex index cc4591c52b9391bc55d23d38887b109b2ba1fcf2..32b9a8ff075096bc0fbac4f35c5419681e554bb7 100644 --- a/test.tex +++ b/test.tex @@ -342,7 +342,7 @@ This section is non-verbose, so only basic stats are shown. \begin{multicols}{2} -\settoggle{bestiarychapter}{true} +\settoggle{genExamples}{true} When using a bestiary chapter, the stats appear as dice rolls, rather than fixed amounts. @@ -478,7 +478,7 @@ When using a bestiary chapter, the stats appear as dice rolls, rather than fixed \end{multicols} -\settoggle{bestiarychapter}{false} +\settoggle{genExamples}{false} \chapter{Lots of Text}