summaryrefslogtreecommitdiff
path: root/inventario.cmd.tex
diff options
context:
space:
mode:
authorGianni Ceccarelli <dakkar@dechirico.(none)>2008-11-05 16:03:16 +0100
committerGianni Ceccarelli <dakkar@dechirico.(none)>2008-11-05 16:03:16 +0100
commit67c198be0c03c351e8fafde6b128aac9baa4e49c (patch)
treeb7b47be38e8442d49cbe742fd68729fc5fb5b3a5 /inventario.cmd.tex
parentcomandi! (diff)
downloadinventario-67c198be0c03c351e8fafde6b128aac9baa4e49c.tar.gz
inventario-67c198be0c03c351e8fafde6b128aac9baa4e49c.tar.bz2
inventario-67c198be0c03c351e8fafde6b128aac9baa4e49c.zip
fattorizzata parecchia roba
Diffstat (limited to 'inventario.cmd.tex')
-rw-r--r--inventario.cmd.tex47
1 files changed, 42 insertions, 5 deletions
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)}