Finished new legs.
This commit is contained in:
parent
7d12aa5dfc
commit
c11f57ab9f
11
Makefile
11
Makefile
|
@ -36,6 +36,9 @@ $(SENTINEL): cards.sql
|
|||
-rm $(GENERATED_DIR)/first.list
|
||||
-rm $(GENERATED_DIR)/second.list
|
||||
-rm $(GENERATED_DIR)/third.list
|
||||
touch $(GENERATED_DIR)/first.list
|
||||
touch $(GENERATED_DIR)/second.list
|
||||
touch $(GENERATED_DIR)/third.list
|
||||
for card in legs/first/*.tex; do echo $${card%tex}pdf >> $(GENERATED_DIR)/first.list; done
|
||||
for card in legs/second/*.tex; do echo $${card%tex}pdf >> $(GENERATED_DIR)/second.list; done
|
||||
for card in legs/third/*.tex; do echo $${card%tex}pdf >> $(GENERATED_DIR)/third.list; done
|
||||
|
@ -45,15 +48,15 @@ $(SENTINEL): cards.sql
|
|||
echo -n 'outputs/$(*F).pdf:' > $@
|
||||
tr '\n' ' ' < $< >> $@
|
||||
echo -e '\n\tpdfunite $$+ $$@' >> $@
|
||||
cat $< | sort | uniq -c | sed -e 's@ *\([[:digit:]]\+\) \(.\+/\)*\(.\+\).pdf@export: outputs/$*/\3[\1].png@' >> $@
|
||||
cat $< | sort | uniq -c | sed -e 's@ *\([[:digit:]]\+\) \(.\+/\)*\(.\+\).pdf@outputs/$*/\3[\1].png: \2\3[\1].png; cp \2\3[\1].png outputs/$*/\3[\1].png@' >> $@
|
||||
cat $< | sed '/^$$/d' | sort | uniq -c | sed -e 's@ *\([[:digit:]]\+\) \(.\+/\)*\(.\+\).pdf@export: outputs/$*/\3[\1].png@' >> $@
|
||||
cat $< | sed '/^$$/d' | sort | uniq -c | sed -e 's@ *\([[:digit:]]\+\) \(.\+/\)*\(.\+\).pdf@outputs/$*/\3[\1].png: \2\3[\1].png; cp \2\3[\1].png outputs/$*/\3[\1].png@' >> $@
|
||||
mkdir -p outputs/$(*D)
|
||||
echo 'decks: outputs/$(*F).pdf' >> $@
|
||||
|
||||
Makefile.deps: $(DECK_DEPENDENCIES) $(SENTINEL)
|
||||
Makefile.deps: $(SENTINEL) $(DECK_DEPENDENCIES)
|
||||
cat $^ > $@
|
||||
|
||||
-include Makefile.deps
|
||||
include Makefile.deps
|
||||
|
||||
outputs/iditaboard[face].png: iditaboard.pdf
|
||||
$(PDFTOPPM) -scale-to-x 4875 -scale-to-y 3075 -png $< > $@
|
||||
|
|
|
@ -302,7 +302,7 @@ SELECT
|
|||
Cards.Flavour AS 'Flavour',
|
||||
Cards.Image AS 'Image',
|
||||
Types.Name AS 'Type',
|
||||
group_concat(replace(Effects.Command,'#',Card_Effects.Amount), ' ') AS 'Effect(s)',
|
||||
group_concat(replace(Effects.Command,'#',Card_Effects.Amount), '\\') AS 'Effect(s)',
|
||||
Decks.Name AS 'In Deck',
|
||||
Deck_Cards.Amount AS 'Count',
|
||||
Rarities.Name AS 'Rarity'
|
||||
|
|
3
ideas
3
ideas
|
@ -2,7 +2,8 @@
|
|||
|
||||
First: Daydraw+3(HH), free dogs(SH), free personal(HS), free sleds(SS), no hypo(SS), no starve(HH)
|
||||
|
||||
Second: Speed+3(HHH), EnergyC-1, Health-1
|
||||
Second: Speed+3(HHH), EnergyC-1, Health-1, Daydraw+1, free food, free
|
||||
attachments
|
||||
|
||||
Third: Daydraw-3(HHHH),no food(HSSH), no personal(SHHS), Speed-3(HSSH), EnergyC+1, HealthC+1
|
||||
|
||||
|
|
|
@ -138,6 +138,10 @@
|
|||
\newcommand{\doubledistance}{Double the final distance}
|
||||
\newcommand{\damagetext}{Destroy this card \vskip 0.5em When you discard this card, end your turn immediately}
|
||||
|
||||
\newcommand{\healthcosts}[1]{\begin{tikzpicture}[x=1in,y=1in]\node [centered, minimum width=0.5in, inner sep=0pt] at (0,0) {\includegraphics[width=0.5in]{icons/deck.png}}; \node [centered, inner sep=0pt] at (0,0) {#1}; \end{tikzpicture}}
|
||||
\newcommand{\energycosts}[1]{\begin{tikzpicture}[x=1in,y=1in]\node [centered, minimum width=0.5in, inner sep=0pt] at (0,0) {\includegraphics[width=0.5in]{icons/hand.png}}; \node [centered, inner sep=0pt] at (0,0) {#1}; \end{tikzpicture}}
|
||||
\newcommand{\riskcosts}[1]{\begin{tikzpicture}[x=1in,y=1in]\node [centered, minimum width=0.5in, inner sep=0pt] at (0,0) {\includegraphics[width=0.5in]{icons/risk.png}}; \node [centered, inner sep=0pt] at (0,0) {\textcolor{white}{#1}}; \end{tikzpicture}}
|
||||
|
||||
% Draws a small #1-type card with #2 written on it
|
||||
\newcommand{\cardtypetext}[2]{%
|
||||
\begin{tikzpicture}[x=1cm,y=1cm]
|
||||
|
@ -147,10 +151,23 @@
|
|||
|
||||
\newcommand{\freecardtype}[1]{\cardtypetext{#1}{Free}}
|
||||
|
||||
\newcommand{\notallowed}{%
|
||||
\newcommand{\notallowed}[1]{%
|
||||
\begin{tikzpicture}[x=1cm,y=1cm]
|
||||
\draw [line width=1mm, red] (-0.173,-0.173) -- (0.173,0.173);
|
||||
\draw [line width=1mm, red] (0,0) circle (3mm);
|
||||
\node (0,0) {#1};
|
||||
\draw [line width=0.7mm, black] (-0.37,-0.37) -- (0.37,0.37);
|
||||
\draw [line width=0.5mm, red] (-0.37,-0.37) -- (0.37,0.37);
|
||||
\draw [line width=0.7mm, black] (0,0) circle (5mm);
|
||||
\draw [line width=0.5mm, red] (0,0) circle (5mm);
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
\newcommand{\allowednot}[1]{%
|
||||
\begin{tikzpicture}[x=1cm,y=1cm]
|
||||
\node (0,0) {#1};
|
||||
\draw [line width=0.7mm, black] (-0.37,0.37) -- (0.37,-0.37);
|
||||
\draw [line width=0.5mm, red] (-0.37,0.37) -- (0.37,-0.37);
|
||||
\draw [line width=0.7mm, black] (0,0) circle (5mm);
|
||||
\draw [line width=0.5mm, red] (0,0) circle (5mm);
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
|
@ -240,8 +257,8 @@
|
|||
}
|
||||
|
||||
\newcommand{\legeffect}[1]{%
|
||||
\node [rectangle, anchor=center, minimum width=1.5cm, text centered, text width=1.5cm, inner sep=0mm] at (3.175, 5.0) {\fontsize{16}{16}\bebas Effect};
|
||||
\node [rectangle, anchor=center, minimum width=1.0cm, minimum height=1.0cm, text centered, text width=1.0cm, inner sep=0mm] at (3.175, 3.85) {#1};
|
||||
\node [rectangle, anchor=center, text centered, inner sep=0mm] at (3.175, 5.0) {\fontsize{16}{16}\bebas Effect};
|
||||
\node [rectangle, anchor=center, text centered, inner sep=0mm] at (3.175, 3.85) {#1};
|
||||
}
|
||||
|
||||
\newenvironment{board}
|
||||
|
|
BIN
images/husky.png
BIN
images/husky.png
Binary file not shown.
Before Width: | Height: | Size: 332 KiB After Width: | Height: | Size: 2.3 MiB |
BIN
images/lunch.png
BIN
images/lunch.png
Binary file not shown.
Before Width: | Height: | Size: 332 KiB After Width: | Height: | Size: 14 MiB |
|
@ -8,7 +8,7 @@
|
|||
\onlegspace{3}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{5}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{7}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\legeffect{TODO\\ NO STARVE}
|
||||
\legeffect{\allowednot{\includegraphics[width=1cm]{icons/starve.png}}}
|
||||
\end{leg}
|
||||
\end{document}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
\onlegspace{3}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{5}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{7}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\legeffect{TODO\\ NO HYPO}
|
||||
\legeffect{\allowednot{\includegraphics[width=1cm]{icons/hypo.png}}}
|
||||
\end{leg}
|
||||
\end{document}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{firstleg}
|
||||
\leglevel{secondleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
|
|
17
legs/second/junkyard.tex
Normal file
17
legs/second/junkyard.tex
Normal file
|
@ -0,0 +1,17 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{secondleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
\legname{Junkyard}
|
||||
\onlegspace{2}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{4}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{5}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{6}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{8}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\legeffect{\healthcosts{-1}}
|
||||
\end{leg}
|
||||
\end{document}
|
||||
|
||||
|
16
legs/second/park.tex
Normal file
16
legs/second/park.tex
Normal file
|
@ -0,0 +1,16 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{secondleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
\legname{Junkyard}
|
||||
\onlegspace{2}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{4}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{5}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{6}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{8}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\legeffect{\freecardtype{attachment}}
|
||||
\end{leg}
|
||||
\end{document}
|
||||
|
16
legs/second/solar_farm.tex
Normal file
16
legs/second/solar_farm.tex
Normal file
|
@ -0,0 +1,16 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{secondleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
\legname{Solar Farm}
|
||||
\onlegspace{2}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{4}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{5}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{6}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{8}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\legeffect{\energycosts{-1}}
|
||||
\end{leg}
|
||||
\end{document}
|
||||
|
16
legs/second/town.tex
Normal file
16
legs/second/town.tex
Normal file
|
@ -0,0 +1,16 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{secondleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
\legname{Town}
|
||||
\onlegspace{2}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{4}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{5}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{6}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{8}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\legeffect{\freecardtype{food}}
|
||||
\end{leg}
|
||||
\end{document}
|
||||
|
16
legs/second/village.tex
Normal file
16
legs/second/village.tex
Normal file
|
@ -0,0 +1,16 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{secondleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
\legname{Village}
|
||||
\onlegspace{2}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{4}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{5}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{6}{\includegraphics[width=1cm]{icons/damage.png}}
|
||||
\onlegspace{8}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\legeffect{\healthcosts{-1}}
|
||||
\end{leg}
|
||||
\end{document}
|
||||
|
14
legs/third/cliff.tex
Normal file
14
legs/third/cliff.tex
Normal file
|
@ -0,0 +1,14 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{thirdleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
\legname{Cliff}
|
||||
\onlegspace{2}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{4}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{6}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{8}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\legeffect{\allowednot{\cardtypetext{personal}{}}}
|
||||
\end{leg}
|
||||
\end{document}
|
14
legs/third/exposed.tex
Normal file
14
legs/third/exposed.tex
Normal file
|
@ -0,0 +1,14 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{thirdleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
\legname{Exposed}
|
||||
\onlegspace{2}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{4}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{6}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{8}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\legeffect{\daydraw{-3}}
|
||||
\end{leg}
|
||||
\end{document}
|
15
legs/third/mountainside.tex
Normal file
15
legs/third/mountainside.tex
Normal file
|
@ -0,0 +1,15 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{thirdleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
\legname{Mountainside}
|
||||
\onlegspace{2}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{4}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{6}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{8}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\legeffect{\healthcosts{}}
|
||||
\end{leg}
|
||||
\end{document}
|
||||
|
14
legs/third/river.tex
Normal file
14
legs/third/river.tex
Normal file
|
@ -0,0 +1,14 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{thirdleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
\legname{River}
|
||||
\onlegspace{2}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{4}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{6}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{8}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\legeffect{\energycosts{-1}}
|
||||
\end{leg}
|
||||
\end{document}
|
14
legs/third/swamp.tex
Normal file
14
legs/third/swamp.tex
Normal file
|
@ -0,0 +1,14 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{thirdleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
\legname{Swamp}
|
||||
\onlegspace{2}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{4}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{6}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{8}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\legeffect{\speed{-3}}
|
||||
\end{leg}
|
||||
\end{document}
|
14
legs/third/wasteland.tex
Normal file
14
legs/third/wasteland.tex
Normal file
|
@ -0,0 +1,14 @@
|
|||
\documentclass{iditacard}
|
||||
|
||||
\leglevel{thirdleg}
|
||||
|
||||
\begin{document}
|
||||
\begin{leg}
|
||||
\legname{Wasteland}
|
||||
\onlegspace{2}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\onlegspace{4}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{6}{\includegraphics[width=1cm]{icons/starve.png}}
|
||||
\onlegspace{8}{\includegraphics[width=1cm]{icons/hypo.png}}
|
||||
\legeffect{\allowednot{\cardtypetext{food}{}}}
|
||||
\end{leg}
|
||||
\end{document}
|
|
@ -23,9 +23,9 @@ while IFS="|" read -r name energy health risk flavour image typename effects dec
|
|||
\\art{$image}
|
||||
EOF
|
||||
|
||||
[ "$energy" -gt 0 ] || echo " \\energy{$energy}" >>"$fname"
|
||||
[ "$health" -gt 0 ] || echo " \\health{$health}" >>"$fname"
|
||||
[ "$risk" -gt 0 ] || echo " \\risk{$risk}" >>"$fname"
|
||||
[ "$energy" -gt 0 ] && echo " \\energy{$energy}" >>"$fname"
|
||||
[ "$health" -gt 0 ] && echo " \\health{$health}" >>"$fname"
|
||||
[ "$risk" -gt 0 ] && echo " \\risk{$risk}" >>"$fname"
|
||||
|
||||
cat <<EOF >>"$fname"
|
||||
\\name{$name}
|
||||
|
|
Loading…
Reference in a new issue