Finished new legs.

This commit is contained in:
Louis Burke 2019-07-09 20:46:59 -04:00
parent 7d12aa5dfc
commit c11f57ab9f
36 changed files with 204 additions and 17 deletions

View file

@ -36,6 +36,9 @@ $(SENTINEL): cards.sql
-rm $(GENERATED_DIR)/first.list -rm $(GENERATED_DIR)/first.list
-rm $(GENERATED_DIR)/second.list -rm $(GENERATED_DIR)/second.list
-rm $(GENERATED_DIR)/third.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/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/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 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:' > $@ echo -n 'outputs/$(*F).pdf:' > $@
tr '\n' ' ' < $< >> $@ tr '\n' ' ' < $< >> $@
echo -e '\n\tpdfunite $$+ $$@' >> $@ echo -e '\n\tpdfunite $$+ $$@' >> $@
cat $< | sort | uniq -c | sed -e 's@ *\([[:digit:]]\+\) \(.\+/\)*\(.\+\).pdf@export: outputs/$*/\3[\1].png@' >> $@ cat $< | sed '/^$$/d' | 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@outputs/$*/\3[\1].png: \2\3[\1].png; cp \2\3[\1].png outputs/$*/\3[\1].png@' >> $@
mkdir -p outputs/$(*D) mkdir -p outputs/$(*D)
echo 'decks: outputs/$(*F).pdf' >> $@ echo 'decks: outputs/$(*F).pdf' >> $@
Makefile.deps: $(DECK_DEPENDENCIES) $(SENTINEL) Makefile.deps: $(SENTINEL) $(DECK_DEPENDENCIES)
cat $^ > $@ cat $^ > $@
-include Makefile.deps include Makefile.deps
outputs/iditaboard[face].png: iditaboard.pdf outputs/iditaboard[face].png: iditaboard.pdf
$(PDFTOPPM) -scale-to-x 4875 -scale-to-y 3075 -png $< > $@ $(PDFTOPPM) -scale-to-x 4875 -scale-to-y 3075 -png $< > $@

View file

@ -302,7 +302,7 @@ SELECT
Cards.Flavour AS 'Flavour', Cards.Flavour AS 'Flavour',
Cards.Image AS 'Image', Cards.Image AS 'Image',
Types.Name AS 'Type', 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', Decks.Name AS 'In Deck',
Deck_Cards.Amount AS 'Count', Deck_Cards.Amount AS 'Count',
Rarities.Name AS 'Rarity' Rarities.Name AS 'Rarity'

3
ideas
View file

@ -2,7 +2,8 @@
First: Daydraw+3(HH), free dogs(SH), free personal(HS), free sleds(SS), no hypo(SS), no starve(HH) 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 Third: Daydraw-3(HHHH),no food(HSSH), no personal(SHHS), Speed-3(HSSH), EnergyC+1, HealthC+1

View file

@ -138,6 +138,10 @@
\newcommand{\doubledistance}{Double the final distance} \newcommand{\doubledistance}{Double the final distance}
\newcommand{\damagetext}{Destroy this card \vskip 0.5em When you discard this card, end your turn immediately} \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 % Draws a small #1-type card with #2 written on it
\newcommand{\cardtypetext}[2]{% \newcommand{\cardtypetext}[2]{%
\begin{tikzpicture}[x=1cm,y=1cm] \begin{tikzpicture}[x=1cm,y=1cm]
@ -147,10 +151,23 @@
\newcommand{\freecardtype}[1]{\cardtypetext{#1}{Free}} \newcommand{\freecardtype}[1]{\cardtypetext{#1}{Free}}
\newcommand{\notallowed}{% \newcommand{\notallowed}[1]{%
\begin{tikzpicture}[x=1cm,y=1cm] \begin{tikzpicture}[x=1cm,y=1cm]
\draw [line width=1mm, red] (-0.173,-0.173) -- (0.173,0.173); \node (0,0) {#1};
\draw [line width=1mm, red] (0,0) circle (3mm); \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} \end{tikzpicture}
} }
@ -240,8 +257,8 @@
} }
\newcommand{\legeffect}[1]{% \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, text centered, 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, 3.85) {#1};
} }
\newenvironment{board} \newenvironment{board}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 KiB

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 KiB

After

Width:  |  Height:  |  Size: 14 MiB

View file

@ -8,7 +8,7 @@
\onlegspace{3}{\includegraphics[width=1cm]{icons/hypo.png}} \onlegspace{3}{\includegraphics[width=1cm]{icons/hypo.png}}
\onlegspace{5}{\includegraphics[width=1cm]{icons/damage.png}} \onlegspace{5}{\includegraphics[width=1cm]{icons/damage.png}}
\onlegspace{7}{\includegraphics[width=1cm]{icons/hypo.png}} \onlegspace{7}{\includegraphics[width=1cm]{icons/hypo.png}}
\legeffect{TODO\\ NO STARVE} \legeffect{\allowednot{\includegraphics[width=1cm]{icons/starve.png}}}
\end{leg} \end{leg}
\end{document} \end{document}

View file

@ -8,7 +8,7 @@
\onlegspace{3}{\includegraphics[width=1cm]{icons/starve.png}} \onlegspace{3}{\includegraphics[width=1cm]{icons/starve.png}}
\onlegspace{5}{\includegraphics[width=1cm]{icons/damage.png}} \onlegspace{5}{\includegraphics[width=1cm]{icons/damage.png}}
\onlegspace{7}{\includegraphics[width=1cm]{icons/starve.png}} \onlegspace{7}{\includegraphics[width=1cm]{icons/starve.png}}
\legeffect{TODO\\ NO HYPO} \legeffect{\allowednot{\includegraphics[width=1cm]{icons/hypo.png}}}
\end{leg} \end{leg}
\end{document} \end{document}

View file

@ -1,6 +1,6 @@
\documentclass{iditacard} \documentclass{iditacard}
\leglevel{firstleg} \leglevel{secondleg}
\begin{document} \begin{document}
\begin{leg} \begin{leg}

17
legs/second/junkyard.tex Normal file
View 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
View 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}

View 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
View 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
View 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
View 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
View 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}

View 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
View 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
View 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
View 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}

View file

View file

@ -23,9 +23,9 @@ while IFS="|" read -r name energy health risk flavour image typename effects dec
\\art{$image} \\art{$image}
EOF EOF
[ "$energy" -gt 0 ] || echo " \\energy{$energy}" >>"$fname" [ "$energy" -gt 0 ] && echo " \\energy{$energy}" >>"$fname"
[ "$health" -gt 0 ] || echo " \\health{$health}" >>"$fname" [ "$health" -gt 0 ] && echo " \\health{$health}" >>"$fname"
[ "$risk" -gt 0 ] || echo " \\risk{$risk}" >>"$fname" [ "$risk" -gt 0 ] && echo " \\risk{$risk}" >>"$fname"
cat <<EOF >>"$fname" cat <<EOF >>"$fname"
\\name{$name} \\name{$name}