diff --git a/docs.tex b/docs.tex index 251ba1792cd6d588cdcb6db3031a2ac235fcc678..5225712c4c7c24a31f778c03c1b90b4455d23647 100644 --- a/docs.tex +++ b/docs.tex @@ -69,6 +69,7 @@ Individual characters can be created by using the \verb"\npc" command then the \ \end{verbatim} +\set{wounds}{1} \Person{\npc{\M}{Alice}}% {{0}{1}{-1}}% BODY @@ -78,13 +79,14 @@ Individual characters can be created by using the \verb"\npc" command then the \ \set{Academics}{1} \set{Wyldcrafting}{1} %\greatsword - \longsword - \completeleather + \shortsword }% SKILLS {}% KNACKS {\rations, \lootSmall}% EQUIPMENT {}% ABILITIES +free: \arabic{freeHP} + \showNumbers \subsubsection{Bestiary with monstrous ghouls, and ghoulish monsters} diff --git a/stats.sty b/stats.sty index 19fc3236f077273d446b33d51151187deefa42bf..cf4b157dcfe6c99834d7410778197d6ef175e2e7 100644 --- a/stats.sty +++ b/stats.sty @@ -230,9 +230,10 @@ \newcounter{wounds} \setcounter{wounds}{0} +\newcounter{freeHP} +\setcounter{freeHP}{0} \newcommand\boxStat[1]{% - \addtocounter{#1}{-\value{wounds}}% \Repeat{\value{wounds}}{\CheckedBox}% \Repeat{\value{#1}}{\Square}% } @@ -242,7 +243,7 @@ \hiderowcolors% HP \arabic{hp}~% \Repeat{\value{noAppearing}}{% - \boxStat{hp} \\% + \boxStat{freeHP} \\% }% \end{tabular}% } @@ -794,7 +795,7 @@ \newcommand\computeStats{ \setcounter{hp}{6}% \addtocounter{hp}{\value{Strength}}% - \addtocounter{hp}{\value{wounds}}% + \addtocounter{hp}{-\value{wounds}}% % Stats for allies don't need to show Combat +1 as 'TN 8 to hit', they just need to show '+1'. \ifnum\value{weaponBonus}>0\set{att}{Combat}\else\set{att}{Brawl}\fi% \addtocounter{att}{\value{Dexterity}}% @@ -841,6 +842,10 @@ \ifnum\value{weight}>\value{hp}% \addtocounter{encumbrance}{\value{weight}}% \addtocounter{encumbrance}{-\value{hp}}% + \setcounter{freeHP}{0}% + \else% + \setcounter{freeHP}{\value{hp}}% + \addtocounter{freeHP}{-\value{weight}}% \fi% \addtocounter{ap}{-\value{encumbrance}}% \addtocounter{toHit}{-\value{encumbrance}}%