From ec6e0064f2f09b791ebedd4ab88aa6bdbb8cf635 Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Sun, 13 Aug 2023 06:40:24 +0200 Subject: [PATCH] clean up cs automation --- CS.tex | 42 ++++++++++++++++++++++++++++++++---------- backpage.tex | 17 ++--------------- commands.tex | 10 ++++++++++ layout.sty | 13 +++++++------ reset_cs.tex | 7 +++++++ 5 files changed, 58 insertions(+), 31 deletions(-) diff --git a/CS.tex b/CS.tex index 099361d8..32036976 100644 --- a/CS.tex +++ b/CS.tex @@ -87,7 +87,7 @@ circle label/.style = { \draw[dotted] (-1,1.7) circle (1); \path[circle label={Fatigue Points}] (-1,-2) arc (-90:360-90:1.1); \draw[dotted] (-1,-0.9) circle (1); - \path[circle label={MP = 3 x spheres + Intelligence}] (-1,-4.6) arc (-90:315-45:1.1); + \path[circle label={MP = 3 x spheres}] (-1,-4.6) arc (-90:315-45:1.1); \draw[dotted] (-1,-3.5) circle (1) node [align=left] {}; \end{tikzpicture} @@ -99,14 +99,36 @@ circle label/.style = { \renewcommand{\arraystretch}{1.4} \begin{tabularx}{\linewidth}{Xr@{}} \hiderowcolors - \skill{Brawl} - \skill{Combat} - \skill{Projectiles} - \emptySkill - \emptySkill - \emptySkill - \emptySkill - \emptySkill + \ifnum\value{Brawl}>0 + \skill{Brawl} + \else + \emptySkill + \fi + \ifnum\value{Combat}>0 + \skill{Combat} + \else + \emptySkill + \fi + \ifnum\value{Projectiles}>0 + \skill{Projectiles} + \else + \emptySkill + \fi + \ifnum\value{Air}>0 + \skill{Air} + \else + \emptySkill + \fi + \ifnum\value{Earth}>0 + \skill{Earth} + \else + \emptySkill + \fi + \ifnum\value{Water}>0 + \skill{Water} + \else + \emptySkill + \fi \end{tabularx} } @@ -286,8 +308,8 @@ circle label/.style = { {name=xp,column=1,row=17,span=5,rowspan=2}{ \setlength{\parskip}{0mm} - \iftoggle{examplecharacter}{ 50 }{ } \small Total: + \iftoggle{examplecharacter}{ 50 }{ } \tcblower \small Unspent: } diff --git a/backpage.tex b/backpage.tex index d6098921..23b46a3a 100644 --- a/backpage.tex +++ b/backpage.tex @@ -1,30 +1,17 @@ \pagebreak \pagenumbering{gobble} +\pagestyle{empty} \iftoggle{examplecharacter}{ \iftoggle{core}{ \charSpellList - \renewcommand\charSpellList{} }{} \vspace{5em} - \ifdefstring{\race}{Elf}% - { - {\Huge Story Points~\Repeat{5}{\sqr}} - - (Elves begin with Story Points already spent) - - }% - {% - {\Huge Story Points~\Repeat{5}{\sqn}} - \ifdefstring{\race}{Dwarf}{ - - Taciturn Dwarves do not spend Story Points in the first session. - }{}% - }% + {\Huge Story Points~\Repeat{5}{\sqn}} }{ {\Huge Story Points~\Repeat{5}{\sqn}} diff --git a/commands.tex b/commands.tex index 6856e386..225901f8 100644 --- a/commands.tex +++ b/commands.tex @@ -41,6 +41,16 @@ \setcounter{Combat}{0} \newcounter{Projectiles} \setcounter{Projectiles}{0} +\newcounter{Air} + \setcounter{Air}{0} +\newcounter{Earth} + \setcounter{Earth}{0} +\newcounter{Fire} + \setcounter{Fire}{0} +\newcounter{Water} + \setcounter{Water}{0} +\newcounter{Fate} + \setcounter{Fate}{0} \newcommand\characterWeapons{} \newcommand\characterArmour{} diff --git a/layout.sty b/layout.sty index 3086a556..8f1e7bb6 100644 --- a/layout.sty +++ b/layout.sty @@ -1017,10 +1017,10 @@ Roll & Result \\ \ifnum\value{track}=0% \raisebox{2pt}{\statDot[\footnotesize]}% \else% - \ifnum\value{track}>\value{#2}% - {\Large\XBox}% - \else% + \ifnum\value{#2}>\value{track}% {\Large\Square}% + \else% + {\Large\XBox}% \fi% \fi% \fi% @@ -1035,12 +1035,13 @@ Roll & Result \\ \addtocounter{statCircles}{-\value{#1}} #1 \dotfill & \Repeat{\value{#1}}{\statDot}\Repeat{\value{statCircles}}{\statCircle}\\ + \stepcounter{track} } \newcommand\emptySkill{% - \dotfill & % - \Repeat{3}{\statCircle}% - \\% + \dotfill & % + \Repeat{3}{\statCircle}% + \\% } \newcommand{\sphereSkill}[2]{ diff --git a/reset_cs.tex b/reset_cs.tex index cd7f4efa..4c68fa20 100644 --- a/reset_cs.tex +++ b/reset_cs.tex @@ -20,9 +20,15 @@ \setcounter{Vigilance}{0} \setcounter{Wyldcrafting}{0} +\setcounter{Brawl}{0} \setcounter{Combat}{0} \setcounter{Projectiles}{0} +\setcounter{Air}{0} +\setcounter{Earth}{0} +\setcounter{Fire}{1} +\setcounter{Water}{0} + \setcounter{fp}{5} \renewcommand\knackOne{} \renewcommand\knackTwo{} @@ -36,6 +42,7 @@ \renewcommand\characterWeapons{} \renewcommand\characterArmour{} \renewcommand\characterEquipment{} +\renewcommand\charSpellList{} \settoggle{bestiarychapter}{false} \settoggle{examplecharacter}{false} -- GitLab