diff --git a/arms.sty b/arms.sty index 4b555961d23a37cbab36e4f732eafa6748dfc441..da0b6efe0561f0a1a020bd59df9192944b5d915d 100644 --- a/arms.sty +++ b/arms.sty @@ -36,6 +36,14 @@ #2% } +%% Use this to show weapons in tables. +%% Remember to close it with '\\' after. +%% It remains unterminated so you can add Costs. + +\newcommand\showWeapon[1]{% + #1 & \arabic{weaponBonus} & \arabic{damage} & \arabic{heft} & \arabic{weight} +} + % Shields work much like weapons, except that their Bonus is high, their initiative cost is low, but their attack is poor. \newcommand\shield[3][]{ diff --git a/docs.tex b/docs.tex index 9d03ecfb1a5d5467cdab91138bde7b8b978502be..8d1bc46f0a48f375154f99c4b2a2b887c6e39477 100644 --- a/docs.tex +++ b/docs.tex @@ -299,11 +299,11 @@ When when a creature wields the weapon, those stats raise the creature's stats. \textbf{Name} & \textbf{Attack Bonus} & \textbf{Dam.} & \textbf{\Glsentrytext{ap} Cost} & \textbf{Weight} \\\hline - \Dagger & \arabic{weaponBonus} & \arabic{damage} & \arabic{heft} & \arabic{weight} \\ + \showWeapon{\Dagger} \\ - \greataxe & \arabic{weaponBonus} & \arabic{damage} & \arabic{heft} & \arabic{weight} \\ + \showWeapon{\greataxe} \\ - \spear & \arabic{weaponBonus} & \arabic{damage} & \arabic{heft} & \arabic{weight} \\ + \showWeapon{\spear} \\ \end{nametable}