diff --git a/.gitignore b/.gitignore index b5ded4a..3302d5f 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ Console. Python-Fu Makefile.deps generated/** +!images/** diff --git a/Makefile b/Makefile index 008fbd4..41b5b2e 100644 --- a/Makefile +++ b/Makefile @@ -27,16 +27,22 @@ ifndef PDFUNITE $(error "pdfunite not found. Please install poppler") endif -RAW_DECK_LIST=$(shell ./scripts/decklist.sh) +RAW_DECK_LIST=$(shell ./scripts/decklist.sh) first second third DECK_LIST=$(RAW_DECK_LIST:%=$(GENERATED_DIR)/%) DECK_DEPENDENCIES=$(DECK_LIST:%=%.d) $(SENTINEL): cards.sql ./scripts/generate_cards.sh $(GENERATED_DIR) + -rm $(GENERATED_DIR)/first.list + -rm $(GENERATED_DIR)/second.list + -rm $(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 touch $@ %.d: %.list - echo -n 'outputs/$*.pdf:' > $@ + 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@' >> $@ diff --git a/cards.sql b/cards.sql index 83fd916..ce82ea4 100644 --- a/cards.sql +++ b/cards.sql @@ -20,6 +20,13 @@ INSERT INTO Decks VALUES(11,'race'); INSERT INTO Decks VALUES(20,'legendary'); INSERT INTO Decks VALUES(21,'damage'); +CREATE TABLE Rarities (id INTEGER PRIMARY KEY, Name TEXT); +INSERT INTO Rarities VALUES(1,'starting'); +INSERT INTO Rarities VALUES(2,'common'); +INSERT INTO Rarities VALUES(3,'rare'); +INSERT INTO Rarities VALUES(4,'epic'); +INSERT INTO Rarities VALUES(5,'legendary'); + CREATE TABLE Effects (id INTEGER PRIMARY KEY, Name TEXT, Command TEXT); INSERT INTO Effects VALUES(1,'Day Draw','\daydraw{#}'); INSERT INTO Effects VALUES(2,'Draw','\draw{#}'); @@ -185,104 +192,106 @@ INSERT INTO Card_Effects VALUES(123,4,8); INSERT INTO Card_Effects VALUES(124,8,8); INSERT INTO Card_Effects VALUES(125,8,3); -CREATE TABLE Deck_Cards (Deck INTEGER REFERENCES Decks (id), Card INTEGER REFERENCES Cards (id), Amount INTEGER); -INSERT INTO Deck_Cards VALUES(1,1,1); -INSERT INTO Deck_Cards VALUES(2,1,1); -INSERT INTO Deck_Cards VALUES(3,1,1); -INSERT INTO Deck_Cards VALUES(4,1,1); -INSERT INTO Deck_Cards VALUES(1,2,1); -INSERT INTO Deck_Cards VALUES(2,2,1); -INSERT INTO Deck_Cards VALUES(3,2,1); -INSERT INTO Deck_Cards VALUES(4,2,1); -INSERT INTO Deck_Cards VALUES(1,3,1); -INSERT INTO Deck_Cards VALUES(2,3,1); -INSERT INTO Deck_Cards VALUES(3,3,1); -INSERT INTO Deck_Cards VALUES(4,3,1); -INSERT INTO Deck_Cards VALUES(1,4,1); -INSERT INTO Deck_Cards VALUES(2,4,1); -INSERT INTO Deck_Cards VALUES(3,4,1); -INSERT INTO Deck_Cards VALUES(4,4,1); -INSERT INTO Deck_Cards VALUES(1,5,1); -INSERT INTO Deck_Cards VALUES(2,5,1); -INSERT INTO Deck_Cards VALUES(3,5,1); -INSERT INTO Deck_Cards VALUES(4,5,1); -INSERT INTO Deck_Cards VALUES(1,6,2); -INSERT INTO Deck_Cards VALUES(2,6,2); -INSERT INTO Deck_Cards VALUES(3,6,2); -INSERT INTO Deck_Cards VALUES(4,6,2); -INSERT INTO Deck_Cards VALUES(1,7,2); -INSERT INTO Deck_Cards VALUES(2,7,2); -INSERT INTO Deck_Cards VALUES(3,7,2); -INSERT INTO Deck_Cards VALUES(4,7,2); -INSERT INTO Deck_Cards VALUES(1,8,1); -INSERT INTO Deck_Cards VALUES(2,8,1); -INSERT INTO Deck_Cards VALUES(3,8,1); -INSERT INTO Deck_Cards VALUES(4,8,1); -INSERT INTO Deck_Cards VALUES(1,9,4); -INSERT INTO Deck_Cards VALUES(2,9,4); -INSERT INTO Deck_Cards VALUES(3,9,4); -INSERT INTO Deck_Cards VALUES(4,9,4); -INSERT INTO Deck_Cards VALUES(1,10,1); -INSERT INTO Deck_Cards VALUES(2,10,1); -INSERT INTO Deck_Cards VALUES(3,10,1); -INSERT INTO Deck_Cards VALUES(4,10,1); -INSERT INTO Deck_Cards VALUES(1,11,2); -INSERT INTO Deck_Cards VALUES(2,11,2); -INSERT INTO Deck_Cards VALUES(3,11,2); -INSERT INTO Deck_Cards VALUES(4,11,2); -INSERT INTO Deck_Cards VALUES(1,12,1); -INSERT INTO Deck_Cards VALUES(2,12,1); -INSERT INTO Deck_Cards VALUES(3,12,1); -INSERT INTO Deck_Cards VALUES(4,12,1); -INSERT INTO Deck_Cards VALUES(1,13,2); -INSERT INTO Deck_Cards VALUES(2,13,2); -INSERT INTO Deck_Cards VALUES(3,13,2); -INSERT INTO Deck_Cards VALUES(4,13,2); -INSERT INTO Deck_Cards VALUES(1,14,2); -INSERT INTO Deck_Cards VALUES(2,14,2); -INSERT INTO Deck_Cards VALUES(3,14,2); -INSERT INTO Deck_Cards VALUES(4,14,2); -INSERT INTO Deck_Cards VALUES(20,20,1); -INSERT INTO Deck_Cards VALUES(20,21,1); -INSERT INTO Deck_Cards VALUES(20,22,1); -INSERT INTO Deck_Cards VALUES(20,23,1); -INSERT INTO Deck_Cards VALUES(20,24,1); -INSERT INTO Deck_Cards VALUES(20,25,1); -INSERT INTO Deck_Cards VALUES(20,26,1); -INSERT INTO Deck_Cards VALUES(20,27,1); -INSERT INTO Deck_Cards VALUES(20,28,1); -INSERT INTO Deck_Cards VALUES(20,29,1); -INSERT INTO Deck_Cards VALUES(20,30,1); -INSERT INTO Deck_Cards VALUES(20,31,1); -INSERT INTO Deck_Cards VALUES(21,40,10); +CREATE TABLE Deck_Cards (Deck INTEGER REFERENCES Decks (id), Card INTEGER REFERENCES Cards (id), Amount INTEGER, Rarity INTEGER REFERENCES Rarities (id)); +INSERT INTO Deck_Cards VALUES(1,1,1,1); +INSERT INTO Deck_Cards VALUES(2,1,1,1); +INSERT INTO Deck_Cards VALUES(3,1,1,1); +INSERT INTO Deck_Cards VALUES(4,1,1,1); +INSERT INTO Deck_Cards VALUES(1,2,1,1); +INSERT INTO Deck_Cards VALUES(2,2,1,1); +INSERT INTO Deck_Cards VALUES(3,2,1,1); +INSERT INTO Deck_Cards VALUES(4,2,1,1); +INSERT INTO Deck_Cards VALUES(1,3,1,1); +INSERT INTO Deck_Cards VALUES(2,3,1,1); +INSERT INTO Deck_Cards VALUES(3,3,1,1); +INSERT INTO Deck_Cards VALUES(4,3,1,1); +INSERT INTO Deck_Cards VALUES(1,4,1,1); +INSERT INTO Deck_Cards VALUES(2,4,1,1); +INSERT INTO Deck_Cards VALUES(3,4,1,1); +INSERT INTO Deck_Cards VALUES(4,4,1,1); +INSERT INTO Deck_Cards VALUES(1,5,1,1); +INSERT INTO Deck_Cards VALUES(2,5,1,1); +INSERT INTO Deck_Cards VALUES(3,5,1,1); +INSERT INTO Deck_Cards VALUES(4,5,1,1); +INSERT INTO Deck_Cards VALUES(1,6,2,1); +INSERT INTO Deck_Cards VALUES(2,6,2,1); +INSERT INTO Deck_Cards VALUES(3,6,2,1); +INSERT INTO Deck_Cards VALUES(4,6,2,1); +INSERT INTO Deck_Cards VALUES(1,7,2,1); +INSERT INTO Deck_Cards VALUES(2,7,2,1); +INSERT INTO Deck_Cards VALUES(3,7,2,1); +INSERT INTO Deck_Cards VALUES(4,7,2,1); +INSERT INTO Deck_Cards VALUES(1,8,1,1); +INSERT INTO Deck_Cards VALUES(2,8,1,1); +INSERT INTO Deck_Cards VALUES(3,8,1,1); +INSERT INTO Deck_Cards VALUES(4,8,1,1); +INSERT INTO Deck_Cards VALUES(1,9,4,1); +INSERT INTO Deck_Cards VALUES(2,9,4,1); +INSERT INTO Deck_Cards VALUES(3,9,4,1); +INSERT INTO Deck_Cards VALUES(4,9,4,1); +INSERT INTO Deck_Cards VALUES(1,10,1,1); +INSERT INTO Deck_Cards VALUES(2,10,1,1); +INSERT INTO Deck_Cards VALUES(3,10,1,1); +INSERT INTO Deck_Cards VALUES(4,10,1,1); +INSERT INTO Deck_Cards VALUES(1,11,2,1); +INSERT INTO Deck_Cards VALUES(2,11,2,1); +INSERT INTO Deck_Cards VALUES(3,11,2,1); +INSERT INTO Deck_Cards VALUES(4,11,2,1); +INSERT INTO Deck_Cards VALUES(1,12,1,1); +INSERT INTO Deck_Cards VALUES(2,12,1,1); +INSERT INTO Deck_Cards VALUES(3,12,1,1); +INSERT INTO Deck_Cards VALUES(4,12,1,1); +INSERT INTO Deck_Cards VALUES(1,13,2,1); +INSERT INTO Deck_Cards VALUES(2,13,2,1); +INSERT INTO Deck_Cards VALUES(3,13,2,1); +INSERT INTO Deck_Cards VALUES(4,13,2,1); +INSERT INTO Deck_Cards VALUES(1,14,2,1); +INSERT INTO Deck_Cards VALUES(2,14,2,1); +INSERT INTO Deck_Cards VALUES(3,14,2,1); +INSERT INTO Deck_Cards VALUES(4,14,2,1); -INSERT INTO Deck_Cards VALUES(10,106,2); -INSERT INTO Deck_Cards VALUES(10,108,2); -INSERT INTO Deck_Cards VALUES(10,109,2); -INSERT INTO Deck_Cards VALUES(10,110,2); -INSERT INTO Deck_Cards VALUES(10,111,2); -INSERT INTO Deck_Cards VALUES(10,112,2); -INSERT INTO Deck_Cards VALUES(10,116,2); -INSERT INTO Deck_Cards VALUES(10,117,2); -INSERT INTO Deck_Cards VALUES(10,118,2); -INSERT INTO Deck_Cards VALUES(10,119,2); -INSERT INTO Deck_Cards VALUES(11,120,2); -INSERT INTO Deck_Cards VALUES(10,121,2); -INSERT INTO Deck_Cards VALUES(10,122,2); -INSERT INTO Deck_Cards VALUES(10,123,2); +INSERT INTO Deck_Cards VALUES(20,20,1,5); +INSERT INTO Deck_Cards VALUES(20,21,1,5); +INSERT INTO Deck_Cards VALUES(20,22,1,5); +INSERT INTO Deck_Cards VALUES(20,23,1,5); +INSERT INTO Deck_Cards VALUES(20,24,1,5); +INSERT INTO Deck_Cards VALUES(20,25,1,5); +INSERT INTO Deck_Cards VALUES(20,26,1,5); +INSERT INTO Deck_Cards VALUES(20,27,1,5); +INSERT INTO Deck_Cards VALUES(20,28,1,5); +INSERT INTO Deck_Cards VALUES(20,29,1,5); +INSERT INTO Deck_Cards VALUES(20,30,1,5); +INSERT INTO Deck_Cards VALUES(20,31,1,5); -INSERT INTO Deck_Cards VALUES(11,100,2); -INSERT INTO Deck_Cards VALUES(11,101,2); -INSERT INTO Deck_Cards VALUES(11,102,2); -INSERT INTO Deck_Cards VALUES(11,103,2); -INSERT INTO Deck_Cards VALUES(11,104,2); -INSERT INTO Deck_Cards VALUES(11,105,2); -INSERT INTO Deck_Cards VALUES(11,107,2); -INSERT INTO Deck_Cards VALUES(11,113,2); -INSERT INTO Deck_Cards VALUES(11,114,2); -INSERT INTO Deck_Cards VALUES(11,115,2); -INSERT INTO Deck_Cards VALUES(11,124,2); -INSERT INTO Deck_Cards VALUES(11,125,2); +INSERT INTO Deck_Cards VALUES(21,40,10,1); + +INSERT INTO Deck_Cards VALUES(10,106,2,2); +INSERT INTO Deck_Cards VALUES(10,108,2,2); +INSERT INTO Deck_Cards VALUES(10,109,2,2); +INSERT INTO Deck_Cards VALUES(10,110,2,2); +INSERT INTO Deck_Cards VALUES(10,111,2,2); +INSERT INTO Deck_Cards VALUES(10,112,2,2); +INSERT INTO Deck_Cards VALUES(10,116,2,2); +INSERT INTO Deck_Cards VALUES(10,117,2,2); +INSERT INTO Deck_Cards VALUES(10,118,2,2); +INSERT INTO Deck_Cards VALUES(10,119,2,2); +INSERT INTO Deck_Cards VALUES(11,120,2,2); +INSERT INTO Deck_Cards VALUES(10,121,2,2); +INSERT INTO Deck_Cards VALUES(10,122,2,2); +INSERT INTO Deck_Cards VALUES(10,123,2,2); + +INSERT INTO Deck_Cards VALUES(11,100,2,3); +INSERT INTO Deck_Cards VALUES(11,101,2,3); +INSERT INTO Deck_Cards VALUES(11,102,2,3); +INSERT INTO Deck_Cards VALUES(11,103,2,3); +INSERT INTO Deck_Cards VALUES(11,104,2,3); +INSERT INTO Deck_Cards VALUES(11,105,2,3); +INSERT INTO Deck_Cards VALUES(11,107,2,3); +INSERT INTO Deck_Cards VALUES(11,113,2,3); +INSERT INTO Deck_Cards VALUES(11,114,2,3); +INSERT INTO Deck_Cards VALUES(11,115,2,3); +INSERT INTO Deck_Cards VALUES(11,124,2,3); +INSERT INTO Deck_Cards VALUES(11,125,2,3); CREATE VIEW Card_List AS SELECT @@ -295,13 +304,15 @@ SELECT Types.Name AS 'Type', group_concat(replace(Effects.Command,'#',Card_Effects.Amount), ' ') AS 'Effect(s)', Decks.Name AS 'In Deck', - Deck_Cards.Amount AS 'Count' + Deck_Cards.Amount AS 'Count', + Rarities.Name AS 'Rarity' FROM Cards JOIN Types ON Types.id = Cards.Typename CROSS JOIN Card_Effects ON Card_Effects.Card = Cards.id JOIN Effects ON Effects.id = Card_Effects.Effect CROSS JOIN Deck_Cards ON Deck_Cards.Card = Cards.id JOIN Decks ON Deck_Cards.Deck = Decks.id + JOIN Rarities ON Deck_Cards.Rarity = Rarities.id GROUP BY Cards.id, Decks.id diff --git a/ideas b/ideas index e21e989..010ef92 100644 --- a/ideas +++ b/ideas @@ -1,3 +1,11 @@ +6 of each type of stretch: + +First: Daydraw+3(HH), free dogs(SH), free personal(HS), free sleds(SS), no hypo(SS), no starve(HH) + +Second: ??? + +Third: ??? + Automatic move by "0" each day unless: - new day - hypothermia @@ -5,6 +13,7 @@ Automatic move by "0" each day unless: If *both* hypo and starve, then move by "-0"! Two-day duration for effects of sleds and personals (add, then take [if still there] - check balance of starter cards [how hard is it to get nothing?]). +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kill -> Sacrifice for *own* dogs. More compact symbols for destroy/take. Maybe X Y and X Y? diff --git a/iditacard.cls b/iditacard.cls index 9da2502..e815251 100644 --- a/iditacard.cls +++ b/iditacard.cls @@ -138,6 +138,12 @@ \newcommand{\doubledistance}{Double the final distance} \newcommand{\damagetext}{Destroy this card \vskip 0.5em When you discard this card, end your turn immediately} +\newcommand{\freecardtype}[1]{% + \begin{tikzpicture}[x=1cm,y=1cm] + \node[rectangle, centered, rounded corners=3pt, minimum width=1cm, minimum height=1.4cm, fill=#1, text centered, inner sep=0mm] at (0.5, 0.5) {\fontsize{14}{14}\bebas Free}; + \end{tikzpicture} +} + \newenvironment{card} {% Begin \noindent\begin{tikzpicture}[x=1in,y=1in] @@ -223,6 +229,11 @@ \node [rectangle, anchor=center, minimum width=1.5cm, minimum height=1.5cm, text centered, text width=1.5cm, inner sep=0mm] at (\legcoordx{#1},\legcoordy{#1}) {#2}; } +\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}; +} + \newenvironment{board} {% Begin \noindent\begin{tikzpicture}[x=1cm,y=1cm] diff --git a/images/antique_sled.png b/images/antique_sled.png new file mode 100644 index 0000000..0d9c71a Binary files /dev/null and b/images/antique_sled.png differ diff --git a/images/band_aid.png b/images/band_aid.png new file mode 100644 index 0000000..19e8542 Binary files /dev/null and b/images/band_aid.png differ diff --git a/images/bandage.png b/images/bandage.png new file mode 100644 index 0000000..8983bf5 Binary files /dev/null and b/images/bandage.png differ diff --git a/images/bear.png b/images/bear.png new file mode 100644 index 0000000..e526731 Binary files /dev/null and b/images/bear.png differ diff --git a/images/big_dog.png b/images/big_dog.png new file mode 100644 index 0000000..2cc7ac0 Binary files /dev/null and b/images/big_dog.png differ diff --git a/images/bison.png b/images/bison.png new file mode 100644 index 0000000..e65858a Binary files /dev/null and b/images/bison.png differ diff --git a/images/brandy.png b/images/brandy.png new file mode 100644 index 0000000..6a3ff86 Binary files /dev/null and b/images/brandy.png differ diff --git a/images/breakfast.png b/images/breakfast.png new file mode 100644 index 0000000..ab8d2fd Binary files /dev/null and b/images/breakfast.png differ diff --git a/images/buffer_panel.png b/images/buffer_panel.png new file mode 100644 index 0000000..c9f4503 Binary files /dev/null and b/images/buffer_panel.png differ diff --git a/images/caffeine.png b/images/caffeine.png new file mode 100644 index 0000000..a3e828e Binary files /dev/null and b/images/caffeine.png differ diff --git a/images/damaged.png b/images/damaged.png new file mode 100644 index 0000000..6b9542f Binary files /dev/null and b/images/damaged.png differ diff --git a/images/deck/damage.png b/images/deck/damage.png new file mode 100644 index 0000000..d07499f Binary files /dev/null and b/images/deck/damage.png differ diff --git a/images/deck/speed.png b/images/deck/race.png similarity index 100% rename from images/deck/speed.png rename to images/deck/race.png diff --git a/images/deck/survivor.png b/images/deck/survival.png similarity index 100% rename from images/deck/survivor.png rename to images/deck/survival.png diff --git a/images/desperate_times.png b/images/desperate_times.png new file mode 100644 index 0000000..782c0a8 Binary files /dev/null and b/images/desperate_times.png differ diff --git a/images/diamorphine.png b/images/diamorphine.png new file mode 100644 index 0000000..262c4ac Binary files /dev/null and b/images/diamorphine.png differ diff --git a/images/dinner.png b/images/dinner.png new file mode 100644 index 0000000..f8a23b8 Binary files /dev/null and b/images/dinner.png differ diff --git a/images/dog_chow.png b/images/dog_chow.png new file mode 100644 index 0000000..c01cf6b Binary files /dev/null and b/images/dog_chow.png differ diff --git a/images/dog_shoes.png b/images/dog_shoes.png new file mode 100644 index 0000000..a9b13a2 Binary files /dev/null and b/images/dog_shoes.png differ diff --git a/images/engineer_dog.png b/images/engineer_dog.png new file mode 100644 index 0000000..1ee185f Binary files /dev/null and b/images/engineer_dog.png differ diff --git a/images/first_aid.png b/images/first_aid.png new file mode 100644 index 0000000..ace31a9 Binary files /dev/null and b/images/first_aid.png differ diff --git a/images/good_dog.png b/images/good_dog.png new file mode 100644 index 0000000..b31d53b Binary files /dev/null and b/images/good_dog.png differ diff --git a/images/grandma_soup.png b/images/grandma_soup.png new file mode 100644 index 0000000..742751c Binary files /dev/null and b/images/grandma_soup.png differ diff --git a/images/greyhound.png b/images/greyhound.png new file mode 100644 index 0000000..76be040 Binary files /dev/null and b/images/greyhound.png differ diff --git a/images/hat.png b/images/hat.png new file mode 100644 index 0000000..f7a9776 Binary files /dev/null and b/images/hat.png differ diff --git a/images/hitch_a_ride.png b/images/hitch_a_ride.png new file mode 100644 index 0000000..c1d45bf Binary files /dev/null and b/images/hitch_a_ride.png differ diff --git a/images/husky.png b/images/husky.png new file mode 100644 index 0000000..881635e Binary files /dev/null and b/images/husky.png differ diff --git a/images/icons/Console. b/images/icons/Console. new file mode 100644 index 0000000..e69de29 diff --git a/images/icons/Python-Fu b/images/icons/Python-Fu new file mode 100644 index 0000000..e69de29 diff --git a/images/icons/backpack.png b/images/icons/backpack.png new file mode 100644 index 0000000..a45de58 Binary files /dev/null and b/images/icons/backpack.png differ diff --git a/images/icons/card-draw.png b/images/icons/card-draw.png new file mode 100644 index 0000000..4e599fe Binary files /dev/null and b/images/icons/card-draw.png differ diff --git a/images/icons/card-pickup.png b/images/icons/card-pickup.png new file mode 100644 index 0000000..c9cf6aa Binary files /dev/null and b/images/icons/card-pickup.png differ diff --git a/images/icons/card-plus.png b/images/icons/card-plus.png new file mode 100644 index 0000000..28f0773 Binary files /dev/null and b/images/icons/card-plus.png differ diff --git a/images/icons/card.png b/images/icons/card.png new file mode 100644 index 0000000..9f29c9b Binary files /dev/null and b/images/icons/card.png differ diff --git a/images/icons/chicken-leg.png b/images/icons/chicken-leg.png new file mode 100644 index 0000000..d5fee2b Binary files /dev/null and b/images/icons/chicken-leg.png differ diff --git a/images/icons/daydraw.png b/images/icons/daydraw.png new file mode 100644 index 0000000..943a3b6 Binary files /dev/null and b/images/icons/daydraw.png differ diff --git a/images/icons/destroy.png b/images/icons/destroy.png new file mode 100644 index 0000000..0fa650d Binary files /dev/null and b/images/icons/destroy.png differ diff --git a/images/icons/dog-sled-icon.png b/images/icons/dog-sled-icon.png new file mode 100644 index 0000000..cb4b544 Binary files /dev/null and b/images/icons/dog-sled-icon.png differ diff --git a/images/icons/draw.png b/images/icons/draw.png new file mode 100644 index 0000000..d363a46 Binary files /dev/null and b/images/icons/draw.png differ diff --git a/images/icons/eye.png b/images/icons/eye.png new file mode 100644 index 0000000..2f92cad Binary files /dev/null and b/images/icons/eye.png differ diff --git a/images/icons/hypo.png b/images/icons/hypo.png new file mode 100644 index 0000000..0295451 Binary files /dev/null and b/images/icons/hypo.png differ diff --git a/images/icons/magnifying-glass.png b/images/icons/magnifying-glass.png new file mode 100644 index 0000000..2511e0a Binary files /dev/null and b/images/icons/magnifying-glass.png differ diff --git a/images/icons/move.png b/images/icons/move.png new file mode 100644 index 0000000..906a637 Binary files /dev/null and b/images/icons/move.png differ diff --git a/images/icons/see.png b/images/icons/see.png new file mode 100644 index 0000000..7168478 Binary files /dev/null and b/images/icons/see.png differ diff --git a/images/icons/shopping-cart.png b/images/icons/shopping-cart.png new file mode 100644 index 0000000..19456fb Binary files /dev/null and b/images/icons/shopping-cart.png differ diff --git a/images/icons/solar-time.png b/images/icons/solar-time.png new file mode 100644 index 0000000..56402d3 Binary files /dev/null and b/images/icons/solar-time.png differ diff --git a/images/icons/speed.png b/images/icons/speed.png new file mode 100644 index 0000000..7b57896 Binary files /dev/null and b/images/icons/speed.png differ diff --git a/images/icons/starve.png b/images/icons/starve.png new file mode 100644 index 0000000..8363535 Binary files /dev/null and b/images/icons/starve.png differ diff --git a/images/icons/stomach.png b/images/icons/stomach.png new file mode 100644 index 0000000..f584022 Binary files /dev/null and b/images/icons/stomach.png differ diff --git a/images/icons/sunrise.png b/images/icons/sunrise.png new file mode 100644 index 0000000..527d8e2 Binary files /dev/null and b/images/icons/sunrise.png differ diff --git a/images/icons/supply.png b/images/icons/supply.png new file mode 100644 index 0000000..bc1fe21 Binary files /dev/null and b/images/icons/supply.png differ diff --git a/images/icons/take.png b/images/icons/take.png new file mode 100644 index 0000000..d0e5f1c Binary files /dev/null and b/images/icons/take.png differ diff --git a/images/icons/thermometer-cold.png b/images/icons/thermometer-cold.png new file mode 100644 index 0000000..4ff2043 Binary files /dev/null and b/images/icons/thermometer-cold.png differ diff --git a/images/icons/trash-can.png b/images/icons/trash-can.png new file mode 100644 index 0000000..1de4242 Binary files /dev/null and b/images/icons/trash-can.png differ diff --git a/images/icons/vote.png b/images/icons/vote.png new file mode 100644 index 0000000..e6fbb4b Binary files /dev/null and b/images/icons/vote.png differ diff --git a/images/improvise.png b/images/improvise.png new file mode 100644 index 0000000..f5979b7 Binary files /dev/null and b/images/improvise.png differ diff --git a/images/jerky.png b/images/jerky.png new file mode 100644 index 0000000..e7deabe Binary files /dev/null and b/images/jerky.png differ diff --git a/images/lead_sled.png b/images/lead_sled.png new file mode 100644 index 0000000..c950368 Binary files /dev/null and b/images/lead_sled.png differ diff --git a/images/lunch.png b/images/lunch.png new file mode 100644 index 0000000..c291f82 Binary files /dev/null and b/images/lunch.png differ diff --git a/images/makeshift_sled.png b/images/makeshift_sled.png new file mode 100644 index 0000000..5f9cf55 Binary files /dev/null and b/images/makeshift_sled.png differ diff --git a/images/malamute.png b/images/malamute.png new file mode 100644 index 0000000..ef0f5f2 Binary files /dev/null and b/images/malamute.png differ diff --git a/images/meditate.png b/images/meditate.png new file mode 100644 index 0000000..cbc8586 Binary files /dev/null and b/images/meditate.png differ diff --git a/images/midnight_sun.png b/images/midnight_sun.png new file mode 100644 index 0000000..0d39786 Binary files /dev/null and b/images/midnight_sun.png differ diff --git a/images/moose.png b/images/moose.png new file mode 100644 index 0000000..c0e8d56 Binary files /dev/null and b/images/moose.png differ diff --git a/images/move.png b/images/move.png new file mode 100644 index 0000000..24fb6bc Binary files /dev/null and b/images/move.png differ diff --git a/images/mush.png b/images/mush.png new file mode 100644 index 0000000..fae3a31 Binary files /dev/null and b/images/mush.png differ diff --git a/images/nuclear_reactor.png b/images/nuclear_reactor.png new file mode 100644 index 0000000..7af1448 Binary files /dev/null and b/images/nuclear_reactor.png differ diff --git a/images/poutine.png b/images/poutine.png new file mode 100644 index 0000000..56a7d74 Binary files /dev/null and b/images/poutine.png differ diff --git a/images/problem_dog.png b/images/problem_dog.png new file mode 100644 index 0000000..c269077 Binary files /dev/null and b/images/problem_dog.png differ diff --git a/images/push.png b/images/push.png new file mode 100644 index 0000000..31a46e0 Binary files /dev/null and b/images/push.png differ diff --git a/images/repair_sled.png b/images/repair_sled.png new file mode 100644 index 0000000..fdf3200 Binary files /dev/null and b/images/repair_sled.png differ diff --git a/images/rules/checkpoint.png b/images/rules/checkpoint.png new file mode 100644 index 0000000..0bb5112 Binary files /dev/null and b/images/rules/checkpoint.png differ diff --git a/images/rules/health_warm.png b/images/rules/health_warm.png new file mode 100644 index 0000000..b5aa198 Binary files /dev/null and b/images/rules/health_warm.png differ diff --git a/images/rules/start.png b/images/rules/start.png new file mode 100644 index 0000000..1060d2d Binary files /dev/null and b/images/rules/start.png differ diff --git a/images/rules/zeroone.png b/images/rules/zeroone.png new file mode 100644 index 0000000..fe2d7a4 Binary files /dev/null and b/images/rules/zeroone.png differ diff --git a/images/rules/zeroten.png b/images/rules/zeroten.png new file mode 100644 index 0000000..5465ec3 Binary files /dev/null and b/images/rules/zeroten.png differ diff --git a/images/rush.png b/images/rush.png new file mode 100644 index 0000000..77bd77b Binary files /dev/null and b/images/rush.png differ diff --git a/images/salvage.png b/images/salvage.png new file mode 100644 index 0000000..3e130f9 Binary files /dev/null and b/images/salvage.png differ diff --git a/images/slow_and_steady.png b/images/slow_and_steady.png new file mode 100644 index 0000000..12df2dc Binary files /dev/null and b/images/slow_and_steady.png differ diff --git a/images/squirrel.png b/images/squirrel.png new file mode 100644 index 0000000..5b09097 Binary files /dev/null and b/images/squirrel.png differ diff --git a/images/steak.png b/images/steak.png new file mode 100644 index 0000000..23e69e1 Binary files /dev/null and b/images/steak.png differ diff --git a/images/supply_run.png b/images/supply_run.png new file mode 100644 index 0000000..7a7a2d5 Binary files /dev/null and b/images/supply_run.png differ diff --git a/images/tactical_play.png b/images/tactical_play.png new file mode 100644 index 0000000..e605113 Binary files /dev/null and b/images/tactical_play.png differ diff --git a/images/tiara.png b/images/tiara.png new file mode 100644 index 0000000..d55a756 Binary files /dev/null and b/images/tiara.png differ diff --git a/images/upgrade_sled.png b/images/upgrade_sled.png new file mode 100644 index 0000000..2f6d35c Binary files /dev/null and b/images/upgrade_sled.png differ diff --git a/images/venison.png b/images/venison.png new file mode 100644 index 0000000..6c72e9f Binary files /dev/null and b/images/venison.png differ diff --git a/images/waffles.png b/images/waffles.png new file mode 100644 index 0000000..4d74149 Binary files /dev/null and b/images/waffles.png differ diff --git a/images/whale_meat.png b/images/whale_meat.png new file mode 100644 index 0000000..210bbf3 Binary files /dev/null and b/images/whale_meat.png differ diff --git a/images/wheel_dog.png b/images/wheel_dog.png new file mode 100644 index 0000000..1bf4bb4 Binary files /dev/null and b/images/wheel_dog.png differ diff --git a/legs/first/farm.tex b/legs/first/farm.tex new file mode 100644 index 0000000..0969543 --- /dev/null +++ b/legs/first/farm.tex @@ -0,0 +1,13 @@ +\documentclass{iditacard} + +\leglevel{firstleg} + +\begin{document} +\begin{leg} + \legname{Farm} + \onlegspace{3}{\includegraphics[width=1cm]{icons/hypo.png}} + \onlegspace{7}{\includegraphics[width=1cm]{icons/hypo.png}} + \legeffect{TODO\\ NO STARVE} +\end{leg} +\end{document} + diff --git a/legs/first/fishing_hole.tex b/legs/first/fishing_hole.tex new file mode 100644 index 0000000..ed0cdf2 --- /dev/null +++ b/legs/first/fishing_hole.tex @@ -0,0 +1,13 @@ +\documentclass{iditacard} + +\leglevel{firstleg} + +\begin{document} +\begin{leg} + \legname{Fishing Hole} + \onlegspace{3}{\includegraphics[width=1cm]{icons/hypo.png}} + \onlegspace{7}{\includegraphics[width=1cm]{icons/hypo.png}} + \legeffect{\daydraw{3}} +\end{leg} +\end{document} + diff --git a/legs/first/hospital.tex b/legs/first/hospital.tex new file mode 100644 index 0000000..81c9591 --- /dev/null +++ b/legs/first/hospital.tex @@ -0,0 +1,13 @@ +\documentclass{iditacard} + +\leglevel{firstleg} + +\begin{document} +\begin{leg} + \legname{Hospital} + \onlegspace{3}{\includegraphics[width=1cm]{icons/hypo.png}} + \onlegspace{7}{\includegraphics[width=1cm]{icons/starve.png}} + \legeffect{\freecardtype{personal}} +\end{leg} +\end{document} + diff --git a/legs/first/new_moon.tex b/legs/first/new_moon.tex new file mode 100644 index 0000000..729611d --- /dev/null +++ b/legs/first/new_moon.tex @@ -0,0 +1,13 @@ +\documentclass{iditacard} + +\leglevel{firstleg} + +\begin{document} +\begin{leg} + \legname{New Moon} + \onlegspace{3}{\includegraphics[width=1cm]{icons/starve.png}} + \onlegspace{7}{\includegraphics[width=1cm]{icons/hypo.png}} + \legeffect{\freecardtype{dog}} +\end{leg} +\end{document} + diff --git a/legs/first/repair_shop.tex b/legs/first/repair_shop.tex new file mode 100644 index 0000000..c232aed --- /dev/null +++ b/legs/first/repair_shop.tex @@ -0,0 +1,13 @@ +\documentclass{iditacard} + +\leglevel{firstleg} + +\begin{document} +\begin{leg} + \legname{Repair Shop} + \onlegspace{3}{\includegraphics[width=1cm]{icons/starve.png}} + \onlegspace{7}{\includegraphics[width=1cm]{icons/starve.png}} + \legeffect{\freecardtype{sled}} +\end{leg} +\end{document} + diff --git a/legs/first/volcano.tex b/legs/first/volcano.tex new file mode 100644 index 0000000..3e7cd6f --- /dev/null +++ b/legs/first/volcano.tex @@ -0,0 +1,13 @@ +\documentclass{iditacard} + +\leglevel{firstleg} + +\begin{document} +\begin{leg} + \legname{Volcano} + \onlegspace{3}{\includegraphics[width=1cm]{icons/starve.png}} + \onlegspace{7}{\includegraphics[width=1cm]{icons/starve.png}} + \legeffect{TODO\\ NO HYPO} +\end{leg} +\end{document} + diff --git a/scripts/generate_cards.sh b/scripts/generate_cards.sh index 5a919a9..e5ae72f 100755 --- a/scripts/generate_cards.sh +++ b/scripts/generate_cards.sh @@ -5,19 +5,7 @@ PARENT_DIR="${1:-cards}" mkdir -p "$PARENT_DIR" echo "SELECT * FROM Card_List;" | sqlite3 -init cards.sql | \ -while IFS="|" read -r name energy health risk flavour image typename effects deckname cardcount; do - case $cardcount in - 1) rarity=legendary ;; - 2) rarity=epic ;; - 3) rarity=rare ;; - 4) rarity=common ;; - *) rarity=starting ;; - esac - - if [[ $deckname == starter? ]]; then - rarity=starting; - fi - +while IFS="|" read -r name energy health risk flavour image typename effects deckname cardcount rarity; do mkdir -p "$PARENT_DIR/$deckname" fname="$PARENT_DIR/$deckname/${name// /_}.tex"