diff --git a/arms.sty b/arms.sty index 5e5c13fc42b634741e081d0013cc1ad196af7d0d..5149b987605feb1a96789054229c1b48a5362523 100644 --- a/arms.sty +++ b/arms.sty @@ -17,24 +17,26 @@ \newcounter{weaponDamage} \newcounter{covering} \newcounter{armourDR} +\newcounter{armourWeight} +\newcommand\weaponName{} \newcommand\weapon[4][]{% \setcounter{weaponBonus}{#3}% \setcounter{weaponDamage}{#4}% \setcounter{heft}{#4}% - \setcounter{weight}{#4}% + \setcounter{armourWeight}{#4}% \ifnum#3>-1% If the weapon's attack bonus is positive, \addtocounter{heft}{#3}% add it to the AP cost and - \addtocounter{weight}{#3}% weight rating, - \addtocounter{weight}{#3}% weight rating again, - \roundUp{weight}% half weight rating + \addtocounter{armourWeight}{#3}% weight rating, + \addtocounter{armourWeight}{#3}% weight rating again, + \roundUp{armourWeight}% half weight rating \roundUp{heft}% then the AP cost by 2. \fi% #1% \addtocounter{att}{\value{weaponBonus}}% \ifnum\value{heft}<1\setcounter{heft}1\fi% - #2% + \renewcommand\weaponName{#2}% } %% Use this to show weapons in tables. @@ -42,7 +44,7 @@ %% It remains unterminated so you can add Costs. \newcommand\showWeapon[1]{% - #1 & \arabic{weaponBonus} & \arabic{weaponDamage} & \arabic{heft} & \arabic{weight} + #1 & \arabic{weaponBonus} & \arabic{weaponDamage} & \arabic{heft} & \arabic{armourWeight} } \newcommand\rangedWeapon[4][0]{% @@ -81,11 +83,11 @@ #2% Name \setcounter{armourDR}{#3}% \setcounter{covering}{#4}% - \setcounter{weight}{#4}% - \addtocounter{weight}{#3}% - \addtocounter{weight}{1}% - \divide\value{weight} by 3% - \addtocounter{weight}{0}% + \setcounter{armourWeight}{#4}% + \addtocounter{armourWeight}{#3}% + \addtocounter{armourWeight}{1}% + \divide\value{armourWeight} by 3% + \addtocounter{armourWeight}{0}% #1% <- for adjustments. \iftoggle{creatureBox}{% \ifnumcomp{\value{dr}}{>}{\value{armourDR}}% @@ -100,10 +102,10 @@ } \newcommand\showArmour[1]{% - #1 & \arabic{armourDR} & \arabic{covering} & \arabic{weight} + #1 & \arabic{armourDR} & \arabic{covering} & \arabic{armourWeight} } -\newcommand{\boulder}{\weapon[\addtocounter{weight}{3}]{Boulder}{-3}{5}} +\newcommand{\boulder}{\weapon[\addtocounter{armourWeight}{3}]{Boulder}{-3}{5}} \newcommand{\chair}{\weapon[\addtocounter{weaponBonus}{-1}]{Chair}{2}{1}} \newcommand{\club}{\weapon[\addtocounter{weaponDamage}{-1}]{Club}{1}{1}} \newcommand{\cudgel}{\weapon[\addtocounter{weaponDamage}{-1}]{Cudgel}{0}{0}} @@ -117,14 +119,14 @@ \newcommand{\javelin}{\weapon{Javelin}{2}{1}} \newcommand{\knife}{\weapon{Knife}{0}{1}} \newcommand{\Log}{\weapon[\addtocounter{weaponDamage}{-3}]{Log}{1}{0}} -\newcommand{\rapier}{\weapon[\addtocounter{weight}{-1}]{Rapier}{1}{1}} -\newcommand{\largerock}{\weapon[\addtocounter{weight}{3}]{Rock (large)}{-1}{2}} +\newcommand{\rapier}{\weapon[\addtocounter{armourWeight}{-1}]{Rapier}{1}{1}} +\newcommand{\largerock}{\weapon[\addtocounter{armourWeight}{3}]{Rock (large)}{-1}{2}} \newcommand{\longsword}{\weapon{Longsword}{2}{2}} \newcommand{\maul}{\weapon{Maul}{1}{3}} \newcommand{\poleaxe}{\weapon{Poleaxe}{3}{3}} \newcommand{\quarterstaff}{\weapon{Quarterstaff}{3}{0}} -\newcommand{\rock}{\weapon[\addtocounter{heft}{1}\addtocounter{weight}{-1}]{Rock}{-1}{0}} -\newcommand{\scythe}{\weapon[\addtocounter{weight}{2}]{Scythe}{-2}{1}} +\newcommand{\rock}{\weapon[\addtocounter{heft}{1}\addtocounter{armourWeight}{-1}]{Rock}{-1}{0}} +\newcommand{\scythe}{\weapon[\addtocounter{armourWeight}{2}]{Scythe}{-2}{1}} \newcommand{\shortsword}{\weapon{Shortsword}{1}{1}} \newcommand{\skillet}{\weapon[\addtocounter{heft}{1}]{Frying Pan}{1}{2}} \newcommand{\spear}{\weapon{Spear}{3}{1}} @@ -153,7 +155,7 @@ \newcommand{\perfectArmour}{\setcounter{covering}{8}} \newcommand{\partialelvish}{% - \armour[\addtocounter{weight}{-1}]{Elvish Ceramic armour}{2}{3}% + \armour[\addtocounter{armourWeight}{-1}]{Elvish Ceramic armour}{2}{3}% } \newcommand{\partialleather}{% diff --git a/main.tex b/main.tex index 5f260b4375d60782830777ed8dd01f5e4ce70fdd..56fb1c5ade7fd0d3f8adcc9d473f160222a5e32d 100644 --- a/main.tex +++ b/main.tex @@ -53,13 +53,30 @@ \showKnacks + \hrulefill + + Weapon: \weaponName + + {\scshape + \glsentrytext{ap} \arabic{ap}, + \iftoggle{allyCharacter}{$2D6$\ifnum\value{att}>-1 +\fi}{}% + Att \arabic{att}, + Dam \dmg{damage}, + \ifnum\value{dr}>0% + \glsentrytext{dr} \arabic{dr} (\arabic{covering}) + \fi% + } + } \npc{\M\Hu}{Bob} \statblock{1}{2}{3}% {{-3}{-2}{-1}}% - {\setcounter{Academics}{1}} - {\adrenalinesurge, \laststand} + { + \setcounter{Academics}{1} + \longsword + } + {\adrenalinesurge, \mightydraw} \end{multicols} diff --git a/stats.sty b/stats.sty index c10a28e34c03b33516979f1e21e75cdb36c1b6bb..637850b0238a41b016cf04e36c9aaff11760eef0 100644 --- a/stats.sty +++ b/stats.sty @@ -664,7 +664,7 @@ \ifdefempty{\equipment}{} { \setcounter{attackXPtotal}{\value{Charisma}}% Must store Charisma while talisman shows spells - \ent{Equipment} & \equipment \\ + \ent{Equipment} & \ifdefempty{\weaponName}{}{\weaponName, }\equipment \\ } }% {} @@ -692,7 +692,6 @@ \iftoggle{allyCharacter}{}{% \addtocounter{att}{7}% }% - \addtocounter{att}{\value{Dexterity}}% \setcounter{maxWeight}{\value{hp}}% now to compute encumbrance \divide\value{maxWeight} by 2% \ifnum\value{weight}>\value{maxWeight}% @@ -702,6 +701,12 @@ \setcounter{ap}{\value{Speed}}% \addtocounter{ap}{3}% \addtocounter{ap}{-\value{encumbrance}}% + \addtocounter{att}{\value{Dexterity}}% + \addtocounter{att}{\value{weaponBonus}}% + \setcounter{damage}{\value{Strength}}% + \addtocounter{damage}{4}% + \addtocounter{damage}{\value{weaponDamage}}% + \addtocounter{covering}{\value{att}} } %% _ _ _ @@ -729,9 +734,9 @@ \iftoggle{allyCharacter}{$2D6$\ifnum\value{att}>-1 +\fi}{}% \arabic{att}% \setcounter{enc}{\value{att}},% - \setcounter{damage}{4}% - \addtocounter{damage}{\value{Strength}} - \addtocounter{damage}{\value{weaponDamage}} + \setcounter{damage}{4}% Remove + \addtocounter{damage}{\value{Strength}}% Remove + \addtocounter{damage}{\value{weaponDamage}}% Remove \mbox{Dam \dmg{damage}, }% \ifnumcomp{\value{dr}}{>}{0}{% \setcounter{enc}{\value{att}}%