From 67c198be0c03c351e8fafde6b128aac9baa4e49c Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Wed, 5 Nov 2008 16:03:16 +0100 Subject: fattorizzata parecchia roba --- inventario.cmd.tex | 47 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 5 deletions(-) (limited to 'inventario.cmd.tex') diff --git a/inventario.cmd.tex b/inventario.cmd.tex index 0a599da..4a4a96b 100644 --- a/inventario.cmd.tex +++ b/inventario.cmd.tex @@ -64,11 +64,12 @@ \newcommand{\group}{Gruppo} % dimensioni -\newcommand{\tinyitem}{Tiny} -\newcommand{\smallitem}{Small} -\newcommand{\mediumitem}{Medium} -\newcommand{\largeitem}{Large} -\newcommand{\hugeitem}{Huge} +\newcommand{\itemsize}[1]{#1} +\newcommand{\tinyitem}{\itemsize{Tiny}} +\newcommand{\smallitem}{\itemsize{Small}} +\newcommand{\mediumitem}{\itemsize{Medium}} +\newcommand{\largeitem}{\itemsize{Large}} +\newcommand{\hugeitem}{\itemsize{Huge}} % prezzi \newcommand{\mo}[1]{#1 MO} @@ -76,6 +77,42 @@ % pesi \newcommand{\lb}[1]{#1lb} +% tipi +\newcommand{\itemtype}[1]{#1} +\newcommand{\itemweapon}[1]{\itemtype{#1 Weapon}} +\newcommand{\meleeweapon}{\itemweapon{Melee}} +\newcommand{\rangedweapon}{\itemweapon{Ranged}} +\newcommand{\itemarmor}[1]{\itemtype{#1 Armor}} +\newcommand{\itemshield}[1]{\itemtype{#1 Shield}} +\newcommand{\lightarmor}{\itemarmor{Light}} +\newcommand{\ammo}{\itemtype{Ammunition}} +\newcommand{\itemfocus}[1]{\itemtype{#1 Focus}} +\newcommand{\divinefocus}{\itemfocus{Divine}} +\newcommand{\arcanefocus}{\itemfocus{Arcane}} +\newcommand{\itemwear}[1]{\itemtype{#1}} +\newcommand{\belt}{\itemwear{Belt}} +\newcommand{\gloves}{\itemwear{Gloves}} +\newcommand{\headband}{\itemwear{Headband}} +\newcommand{\necklace}{\itemwear{Necklace}} +\newcommand{\ring}{\itemwear{Ring}} +\newcommand{\cloak}{\itemwear{Cloak}} +\newcommand{\clothes}{\itemwear{Clothes}} +\newcommand{\bedroll}{\itemwear{Bedroll}} +\newcommand{\amulet}{\itemwear{Amulet}} +\newcommand{\bracers}{\itemwear{Bracers}} +\newcommand{\itemcontainer}[1]{\itemtype{#1}} +\newcommand{\backpack}{\itemcontainer{Backpack}} +\newcommand{\itemmagic}[1]{\itemtype{#1}} +\newcommand{\potion}{\itemmagic{Potion}} +\newcommand{\wand}{\itemmagic{Wand}} +\newcommand{\rod}{\itemmagic{Rod}} +\newcommand{\scroll}{\itemmagic{Scroll}} +\newcommand{\magicbook}{\itemmagic{Magic Book}} +\newcommand{\tool}{\itemtype{Tool}} +\newcommand{\gem}{\itemtype{Gem}} +\newcommand{\itemmisc}{\itemtype{Misc}} + +% cariche \newcommand{\cariche}[1]{\begin{tikzpicture}[x=0.4cm,y=-0.4cm] \pgfmathsetmacro{\carichelines}{floor(#1/10)} \pgfmathsetmacro{\caricherest}{mod(#1,10)} -- cgit v1.2.3