summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inventario.cmd.tex94
-rw-r--r--inventario.lachesi.tex60
-rw-r--r--inventario.necrist.tex69
3 files changed, 100 insertions, 123 deletions
diff --git a/inventario.cmd.tex b/inventario.cmd.tex
new file mode 100644
index 0000000..0a599da
--- /dev/null
+++ b/inventario.cmd.tex
@@ -0,0 +1,94 @@
+\documentclass[a4paper,10pt]{article}
+\usepackage[empty,cm]{fullpage}
+\usepackage[latin1]{inputenc}
+\usepackage[italian]{babel}
+\usepackage[T1]{fontenc}
+\usepackage{pslatex}
+\usepackage{tikz}
+\usetikzlibrary{backgrounds}
+\usetikzlibrary{calc}
+\usepackage{pgffor}
+
+%%%% fullpage
+\setlength{\headheight}{0pt}
+\setlength{\headsep}{0pt}
+\setlength{\footskip}{0pt}
+\setlength{\textwidth}{\paperwidth}
+\setlength{\oddsidemargin}{-2.68cm}
+\setlength{\evensidemargin}{\oddsidemargin}
+\setlength{\textheight}{\paperheight}
+\setlength{\topmargin}{0pt}
+\addtolength{\topmargin}{-2.68cm}
+%%%%
+\setlength{\parindent}{0pt}
+
+\pgfdeclareimage[width=1mm]{empty}{empty}
+
+\newcommand{\DDitemhoriz}[7]{%
+\begin{scope}
+
+\node [draw,ultra thin,dotted,rectangle,minimum height=4.8cm,minimum width=7cm,outer sep=0,use as bounding box] (card) {};
+
+\node [anchor=north west,rotate=90] (itemtype) at (node cs:name=card,anchor=south west)
+ {#2};
+
+\node [anchor=north east,rotate=90] (itemowner) at (node cs:name=card,anchor=north west)
+ {#3};
+
+\node [anchor=south west,rotate=90] (itemweight) at (node cs:name=card,anchor=south east)
+ {#4};
+
+\node [anchor=south east,rotate=90] (itemprice) at (node cs:name=card,anchor=north east)
+ {#5};
+
+\node [anchor=north,inner sep=1mm,text width=4.6cm,rotate=90,text centered]
+ (itemname)
+ at ($0.5*(node cs:name=itemtype,anchor=south west)+0.5*(node cs:name=itemowner,anchor=south east)$)
+ {#6};
+
+\node [anchor=north,rotate=90] (itemimage)
+ at (node cs:name=itemname,anchor=south)
+ {\pgfuseimage{#1}};
+
+\node [anchor=south,inner sep=1mm,text width=4.6cm,rotate=90]
+ (itemdesc)
+ at ($0.5*(node cs:name=itemweight,anchor=north west)+0.5*(node cs:name=itemprice,anchor=north east)$)
+ {#7};
+
+\end{scope}%
+}
+
+\newcommand{\DDitem}[7]{\DDitemhoriz{#1}{#2}{#3}{#4}{#5}{#6}{#7}}
+
+% proprietari
+\newcommand{\group}{Gruppo}
+
+% dimensioni
+\newcommand{\tinyitem}{Tiny}
+\newcommand{\smallitem}{Small}
+\newcommand{\mediumitem}{Medium}
+\newcommand{\largeitem}{Large}
+\newcommand{\hugeitem}{Huge}
+
+% prezzi
+\newcommand{\mo}[1]{#1 MO}
+
+% pesi
+\newcommand{\lb}[1]{#1lb}
+
+\newcommand{\cariche}[1]{\begin{tikzpicture}[x=0.4cm,y=-0.4cm]
+\pgfmathsetmacro{\carichelines}{floor(#1/10)}
+\pgfmathsetmacro{\caricherest}{mod(#1,10)}
+\ifnum 0<\carichelines
+\foreach \line in {1,...,\carichelines} {
+ \foreach \col in {0,...,9}
+ \draw (\col,\line - 1) circle (0.2cm);
+}
+\fi
+\ifnum 0<\caricherest
+\pgfmathsetmacro{\carichelines}{\carichelines + 1}%
+\foreach \col in {1,...,\caricherest} {
+ \draw (\col - 1,\carichelines) circle (0.2cm);
+}
+\fi
+\end{tikzpicture}}
diff --git a/inventario.lachesi.tex b/inventario.lachesi.tex
index 39a734e..ded8e0c 100644
--- a/inventario.lachesi.tex
+++ b/inventario.lachesi.tex
@@ -1,66 +1,8 @@
-\documentclass[a4paper,10pt]{article}
-\usepackage[empty,cm]{fullpage}
-\usepackage[latin1]{inputenc}
-\usepackage[italian]{babel}
-\usepackage[T1]{fontenc}
-\usepackage{pslatex}
-\usepackage{tikz}
-\usetikzlibrary{backgrounds}
-\usetikzlibrary{calc}
+\include{inventario.cmd}
-%%%% fullpage
-\setlength{\headheight}{0pt}
-\setlength{\headsep}{0pt}
-\setlength{\footskip}{0pt}
-\setlength{\textwidth}{\paperwidth}
-\setlength{\oddsidemargin}{-2.68cm}
-\setlength{\evensidemargin}{\oddsidemargin}
-\setlength{\textheight}{\paperheight}
-\setlength{\topmargin}{0pt}
-\addtolength{\topmargin}{-2.68cm}
-%%%%
-\setlength{\parindent}{0pt}
-
-\pgfdeclareimage[width=3cm]{sword}{sword-img}
-\pgfdeclareimage[width=1mm]{empty}{empty}
\pgfdeclareimage[width=3cm]{book-boccob}{book-boccob}
\pgfdeclareimage[width=3cm]{rod-extend}{rod-extend}
-\newcommand{\DDitemhoriz}[7]{%
-\begin{scope}
-
-\node [draw,ultra thin,dotted,rectangle,minimum height=4.8cm,minimum width=7cm,outer sep=0,use as bounding box] (card) {};
-
-\node [anchor=north west,rotate=90] (itemtype) at (node cs:name=card,anchor=south west)
- {#2};
-
-\node [anchor=north east,rotate=90] (itemowner) at (node cs:name=card,anchor=north west)
- {#3};
-
-\node [anchor=south west,rotate=90] (itemweight) at (node cs:name=card,anchor=south east)
- {#4};
-
-\node [anchor=south east,rotate=90] (itemprice) at (node cs:name=card,anchor=north east)
- {#5};
-
-\node [anchor=north,rotate=90] (itemimage) at ($0.5*(node cs:name=itemtype,anchor=south west)+0.5*(node cs:name=itemowner,anchor=south east)$)
- {\pgfuseimage{#1}};
-
-\node [anchor=north,inner sep=1mm,text width=4.6cm,rotate=90]
- (itemname)
- at (node cs:name=itemimage,anchor=south)
- {#6};
-
-\node [anchor=south,inner sep=1mm,text width=4.6cm,rotate=90]
- (itemdesc)
- at ($0.5*(node cs:name=itemweight,anchor=north west)+0.5*(node cs:name=itemprice,anchor=north east)$)
- {#7};
-
-\end{scope}%
-}
-
-\newcommand{\DDitem}[7]{\DDitemhoriz{#1}{#2}{#3}{#4}{#5}{#6}{#7}}
-
\begin{document}
\begin{tikzpicture}
diff --git a/inventario.necrist.tex b/inventario.necrist.tex
index 2c48ad9..b797699 100644
--- a/inventario.necrist.tex
+++ b/inventario.necrist.tex
@@ -1,63 +1,4 @@
-\documentclass[a4paper,10pt]{article}
-\usepackage[empty,cm]{fullpage}
-\usepackage[latin1]{inputenc}
-\usepackage[italian]{babel}
-\usepackage[T1]{fontenc}
-\usepackage{pslatex}
-\usepackage{tikz}
-\usetikzlibrary{backgrounds}
-\usetikzlibrary{calc}
-
-%%%% fullpage
-\setlength{\headheight}{0pt}
-\setlength{\headsep}{0pt}
-\setlength{\footskip}{0pt}
-\setlength{\textwidth}{\paperwidth}
-\setlength{\oddsidemargin}{-2.68cm}
-\setlength{\evensidemargin}{\oddsidemargin}
-\setlength{\textheight}{\paperheight}
-\setlength{\topmargin}{0pt}
-\addtolength{\topmargin}{-2.68cm}
-%%%%
-\setlength{\parindent}{0pt}
-
-\pgfdeclareimage[width=3cm]{sword}{sword-img}
-\pgfdeclareimage[width=1mm]{empty}{empty}
-
-\newcommand{\DDitemhoriz}[7]{%
-\begin{scope}
-
-\node [draw,ultra thin,dotted,rectangle,minimum height=4.8cm,minimum width=7cm,outer sep=0,use as bounding box] (card) {};
-
-\node [anchor=north west,rotate=90] (itemtype) at (node cs:name=card,anchor=south west)
- {#2};
-
-\node [anchor=north east,rotate=90] (itemowner) at (node cs:name=card,anchor=north west)
- {#3};
-
-\node [anchor=south west,rotate=90] (itemweight) at (node cs:name=card,anchor=south east)
- {#4};
-
-\node [anchor=south east,rotate=90] (itemprice) at (node cs:name=card,anchor=north east)
- {#5};
-
-\node [anchor=north,rotate=90] (itemimage) at ($0.5*(node cs:name=itemtype,anchor=south west)+0.5*(node cs:name=itemowner,anchor=south east)$)
- {\pgfuseimage{#1}};
-
-\node [anchor=north,inner sep=1mm,text width=4.6cm,rotate=90]
- (itemname)
- at (node cs:name=itemimage,anchor=south)
- {#6};
-
-\node [anchor=south,inner sep=1mm,text width=4.6cm,rotate=90]
- (itemdesc)
- at ($0.5*(node cs:name=itemweight,anchor=north west)+0.5*(node cs:name=itemprice,anchor=north east)$)
- {#7};
-
-\end{scope}%
-}
-
-\newcommand{\DDitem}[7]{\DDitemhoriz{#1}{#2}{#3}{#4}{#5}{#6}{#7}}
+\include{inventario.cmd}
\begin{document}
@@ -68,7 +9,7 @@
\DDitem{empty}{Ranged Weapon}{Necrist}{3lb}{2800MO}{Mighty (+4) Composite Longbow +1}{+1, Mighty +4\\1d8+1, x3, Piercing\\Range Increment: 110ft\\Large} &
\DDitem{empty}{Shield}{Necrist}{5lb}{1165MO}{Buckler +1}{Armor Bonus: 2\\Armor Check Penalty: 0\\Arcane Spell Failure: 5\%} \\
\DDitem{empty}{Light Armor}{Necrist}{15lb}{8350MO}{Mithral Breastplate +2}{Armor Bonus: 7\\Armor Check Penalty: -1\\Equivalent Load: Light\\Maximum Dexterity Bonus: 5\\Arcane Spell Failure: 15\%} &
-\DDitem{empty}{Ammunition}{Necrist}{3lb}{1MO}{Arrows (20)}{Destroyed on a hit and half times on a miss\\O O O O O\\O O O O O\\O O O O O\\O O O O O} &
+\DDitem{empty}{Ammunition}{Necrist}{3lb}{1MO}{Arrows (20)}{Destroyed on a hit and half times on a miss\\ \cariche{20}} &
\DDitem{empty}{Divine Focus}{Necrist}{2lb}{-}{Vīner's Holy Symbol}{Sphere made of the exotic metal, Enthropium, that was solified while it was randomly circling in vortices\\More than 100\% elastic strength} \\
\DDitem{empty}{Belt}{Necrist}{1lb}{9000MO}{Belt of Giant Strength +3}{Strength Enhancement Bonus: +3\\Permanent Wondrous Item\\Magic Slot: Belt} &
\DDitem{empty}{Gloves}{Necrist}{-}{2200MO}{Glove of storing}{Permanent Wondrous Item\\Magic Slot: Gaunlets, Gloves\\Actually contains:\\ } &
@@ -90,7 +31,7 @@
{
\DDitem{empty}{Book}{Necrist}{-}{-}{Brainstorming Note}{When used gives +2 Circumstance Bonus on Skill checks that allow retry} &
\DDitem{empty}{Item}{Necrist}{2lb}{-}{Silver Grate}{Allows user to create silver powder out of silver coins} &
-\DDitem{empty}{Gem}{Necrist}{-}{500MO}{Black Onyx Gem (10)}{Suitable for Animate Dead Spell\\O O O O O\\O O O O O} \\
+\DDitem{empty}{Gem}{Necrist}{-}{500MO}{Black Onyx Gem (10)}{Suitable for Animate Dead Spell\\ \cariche{10}} \\
\DDitem{empty}{Focus}{Necrist}{10lb}{200MO}{Unholy water font}{Focus for Scrying Spell} &
\DDitem{empty}{Item}{Necrist}{1lb}{1500MO}{Torch of Death Light}{If charged with negative energy grants darkvision within 20ft} &
\DDitem{empty}{Item}{Necrist}{-}{2MO}{Tinderwig (2)}{Light fire immediatly to torches or oil} \\
@@ -101,8 +42,8 @@
\DDitem{empty}{Item}{Necrist}{-}{10MO}{Small Steel Mirror}{Polished mirror} &
\DDitem{empty}{Item}{Necrist}{5lb}{-}{Bedroll}{} &
\DDitem{empty}{Melee Weapon}{Necrist}{12lb}{18MO}{Scythe}{Normal\\2d4, x4, Piercing and Slashing\\Large} \\
-\DDitem{empty}{Wand}{Gruppo}{-}{750MO}{Wand of Cure Light Wounds (50)}{Each cast cures 1d8+1 hit points\\O O O O O O O O O O\\O O O O O O O O O O\\O O O O O O O O O O\\O O O O O O O O O O\\O O O O O O O O O O} &
-\DDitem{empty}{Wand}{Gruppo}{-}{450MO}{Wand of Silence (10)}{Each cast generates a 15ft-radius emanation of silence for 3 minutes\\O O O O O\\O O O O O} &
+\DDitem{empty}{Wand}{Gruppo}{-}{750MO}{Wand of Cure Light Wounds (50)}{Each cast cures 1d8+1 hit points\\ \cariche{50}} &
+\DDitem{empty}{Wand}{Gruppo}{-}{450MO}{Wand of Silence (10)}{Each cast generates a 15ft-radius emanation of silence for 3 minutes\\ \cariche{10}} &
\DDitem{empty}{Potion}{Gruppo}{-}{750MO}{Potion of Cure Serious Wounds}{Cures 3d8+5 hit points} \\
\DDitem{empty}{Potion}{Gruppo}{-}{750MO}{Potion of Neutralise Poison}{Neutralise all poison in the body} &
\DDitem{empty}{Potion}{Gruppo}{-}{300MO}{Potion of Wisdom}{Grants a 1d4+1 Enhancement bonus to Wisdom score for 3 hours} &