use csv instead of xlsx
This commit is contained in:
5
Gemfile
5
Gemfile
@@ -1,3 +1,6 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
gem "squib", path: "../squib/pkg"
|
||||
gem "rake"
|
||||
gem "squib",
|
||||
:git => "/home/ninjananas/projets/squib",
|
||||
:branch => "image_anchors"
|
||||
|
||||
10
Makefile
10
Makefile
@@ -1,4 +1,4 @@
|
||||
common_deps := src/deck.rb data/cards.xlsx ._graphics_copy_touch ._graphics_extract_touch config.yml ._layouts/poker.yml
|
||||
common_deps := src/deck.rb data/cards.csv ._graphics_copy_touch ._graphics_extract_touch config.yml ._layouts/poker.yml
|
||||
|
||||
pnp := _output/pnp_A4.pdf
|
||||
debug := _output/debug.pdf
|
||||
@@ -30,16 +30,16 @@ clean:
|
||||
|
||||
|
||||
$(pnp): $(common_deps)
|
||||
rake pnp
|
||||
bundle exec rake pnp
|
||||
|
||||
$(debug): $(common_deps)
|
||||
rake debug
|
||||
bundle exec rake debug
|
||||
|
||||
$(showcase): $(common_deps)
|
||||
rake showcase
|
||||
bundle exec rake showcase
|
||||
|
||||
$(full): $(common_deps)
|
||||
rake full
|
||||
bundle exec rake full
|
||||
|
||||
._graphics_extract_touch: $(wildcard graphics/bundled/*)
|
||||
@ mkdir -p ._graphics
|
||||
|
||||
53
data/cards.csv
Normal file
53
data/cards.csv
Normal file
@@ -0,0 +1,53 @@
|
||||
"quantite","type","nom","rang","icone","rang_alt","icone_alt","type_effet_1","effet_1","type_effet_2","effet_2","type_effet_3","effet_3","art","citation"
|
||||
"0","dummy","dummy","dummy","dummy","dummy","dummy","dummy","dummy",,,,,,
|
||||
"1","candidat","Industrion","10","ind",,,,,,,,,,
|
||||
"1","candidat","Usinax","9","ind",,,,,,,,,,
|
||||
"1","candidat","Ouvriex","8","ind","1","gau",,,,,,,,
|
||||
"1","candidat","Patronex","7","ind","2","dro",,,,,,,,
|
||||
"1","candidat","Alpha-Kappa-Beta","6","ind","3","roy",,,,,,,,
|
||||
"1","candidat","Libertarix","5","ind","4","ana",,,,,,,,
|
||||
"1","candidat","Gauchoïde","10","gau",,,,,,,,,,
|
||||
"1","candidat","Répartitron","9","gau",,,,,,,,,,
|
||||
"1","candidat","Oligarchix","8","gau","1","roy",,,,,,,,
|
||||
"1","candidat","Pink Alu","7","gau","2","ind",,,,,,,,
|
||||
"1","candidat","Révolutron XV","6","gau","3","ana",,,,,,,,
|
||||
"1","candidat","Lokaloïd","5","gau","4","eco",,,,,,,,
|
||||
"1","candidat","Royalix","10","roy",,,,,,,,,,
|
||||
"1","candidat","Monark Mk IV","9","roy",,,,,,,,,,
|
||||
"1","candidat","Louis-Louis","8","roy","1","dro",,,,,,,,
|
||||
"1","candidat","BDFL 2.0","7","roy","2","gau",,,,,,,,
|
||||
"1","candidat","Éco-Duc 3.1","6","roy","3","eco",,,,,,,,
|
||||
"1","candidat","Lys-Import","5","roy","4","ind",,,,,,,,
|
||||
"1","candidat","Anarchix 2000","10","ana",,,,,,,,,,
|
||||
"1","candidat","Son of Robotry","9","ana",,,,,,,,,,
|
||||
"1","candidat","Phoc-U","8","ana","1","ind",,,,,,,,
|
||||
"1","candidat","Robow Warrior","7","ana","2","eco",,,,,,,,
|
||||
"1","candidat","Skizzo 2","6","ana","3","dro",,,,,,,,
|
||||
"1","candidat","London Call","5","ana","4","gau",,,,,,,,
|
||||
"1","candidat","Conservator","10","dro",,,,,,,,,,
|
||||
"1","candidat","Traditron","9","dro",,,,,,,,,,
|
||||
"1","candidat","Greenwasher","8","dro","1","eco",,,,,,,,
|
||||
"1","candidat","Crazy Gun","7","dro","2","ana",,,,,,,,
|
||||
"1","candidat","Profitron","6","dro","3","ind",,,,,,,,
|
||||
"1","candidat","MDP 123456","5","dro","4","roy",,,,,,,,
|
||||
"1","candidat","Écolotron","10","eco",,,,,,,,,,
|
||||
"1","candidat","Pichonio","9","eco",,,,,,,,,,
|
||||
"1","candidat","Hermitron","8","eco","1","ana",,,,,,,,
|
||||
"1","candidat","Gaiax","7","eco","2","roy",,,,,,,,
|
||||
"1","candidat","Vegauchix","6","eco","3","gau",,,,,,,,
|
||||
"1","candidat","Chassa-Cor III","5","eco","4","dro",,,,,,,,
|
||||
"1","candidat","Adaptatron","0","jok",,,,,,,,,,
|
||||
"1","candidat","Compatiblix","0","jok",,,,,,,,,,
|
||||
"3","action","Robocaïne",,"robocaine",,,"effet","Jouez 2 actions","effet","Piochez 2 cartes",,,,
|
||||
"3","action","Corruption","-2","corruption",,,"magouille","Volez un candidat adverse. Ajoutez-lui cette carte comme mod. Son parti perd un :pv:.",,,,,,
|
||||
"3","action","Retournement de veste",,"veste",,,"effet","Retournez un de vos candidats sur son autre parti. Un :pv: de son ancien parti est transféré à son nouveau parti",,,,,,
|
||||
"2","action","Assassinat",,"assassinat",,,"magouille","Défaussez un candidat (le vôtre ou celui d’un adversaire)",,,,,,
|
||||
"5","action","Casserole","-3","casserole",,,"effet","Mettez le mod de cette carte à un candidat. Retirez deux :pv: à son parti.",,,,,,
|
||||
"2","action","Spin Doctor",,"spindoctor",,,"effet","Défaussez un mod négatif d'un de vos candidats",,,,,,
|
||||
"3","action","Propagande","++2","propagande","-1",,"magouille","Mettez le mod de cette carte à un candidat. Si échec, mettez le mod négatif ",,,,,,
|
||||
"1","action","Campagne de Com'","++2","campagne",,,"effet","Ajoutez comme mod à un candidat :symbole_ind: et un :pv: à son parti.",,,,,,
|
||||
"1","action","Campagne de Com'","++2","campagne",,,"effet","Ajoutez comme mod à un candidat :symbole_gau: et un :pv: à son parti.",,,,,,
|
||||
"1","action","Campagne de Com'","++2","campagne",,,"effet","Ajoutez comme mod à un candidat :symbole_roy: et un :pv: à son parti.",,,,,,
|
||||
"1","action","Campagne de Com'","++2","campagne",,,"effet","Ajoutez comme mod à un candidat :symbole_ana: et un :pv: à son parti.",,,,,,
|
||||
"1","action","Campagne de Com'","++2","campagne",,,"effet","Ajoutez comme mod à un candidat :symbole_dro: et un :pv: à son parti.",,,,,,
|
||||
"1","action","Campagne de Com'","++2","campagne",,,"effet","Ajoutez comme mod à un candidat :symbole_eco: et un :pv: à son parti.",,,,,,
|
||||
|
BIN
data/cards.xlsx
BIN
data/cards.xlsx
Binary file not shown.
1794
graphics/plateau_v1.svg
Normal file
1794
graphics/plateau_v1.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 156 KiB |
@@ -12,7 +12,10 @@ EMBED_SIZE = EFFECT_FONT_SIZE / 9.0 # In cells
|
||||
EMBED_DY = - (0.7 * EMBED_SIZE + 0.2) * DPI / 300 # In cells
|
||||
|
||||
|
||||
data = Squib.xlsx file: 'data/cards.xlsx', explode: 'quantite'
|
||||
#data = Squib.xlsx file: 'data/cards.xlsx', explode: 'quantite'
|
||||
data = Squib.csv file: 'data/cards.csv', explode: 'quantite'
|
||||
data['rang'].map! { it.nil? ? nil : it.to_s.sub(/\A\++/, "+") }
|
||||
data['rang_alt'].map! { it.nil? ? nil : it.to_s.sub(/\A\++/, "+") }
|
||||
|
||||
def icon_to_svg(icon)
|
||||
icon.nil? ? nil : "icone_#{icon}.svg"
|
||||
|
||||
Reference in New Issue
Block a user