diff --git a/VTCGoblinHand.ttf b/VTCGoblinHand.ttf new file mode 100644 index 0000000..c125caf Binary files /dev/null and b/VTCGoblinHand.ttf differ diff --git a/VTCGoblinHandBold.ttf b/VTCGoblinHandBold.ttf new file mode 100644 index 0000000..207e1f9 Binary files /dev/null and b/VTCGoblinHandBold.ttf differ diff --git a/VTCGoblinHandItalic.ttf b/VTCGoblinHandItalic.ttf new file mode 100644 index 0000000..1e535e2 Binary files /dev/null and b/VTCGoblinHandItalic.ttf differ diff --git a/VTCGoblinHandSC.ttf b/VTCGoblinHandSC.ttf new file mode 100644 index 0000000..55c1bc8 Binary files /dev/null and b/VTCGoblinHandSC.ttf differ diff --git a/conditionbox.png b/conditionbox.png new file mode 100644 index 0000000..aab1734 Binary files /dev/null and b/conditionbox.png differ diff --git a/shards_of_power.rb b/shards_of_power.rb index 13e81e3..59ed696 100644 --- a/shards_of_power.rb +++ b/shards_of_power.rb @@ -1,5 +1,6 @@ require "prawn" require "prawn/grouping" +require "prawn/table" require "pry" require_relative "spell" @@ -116,6 +117,11 @@ class ShardsOfPower }, "Lilith" => { :normal => "lilith.ttf" + }, + "Goblin Hand" => { + :normal => "VTCGoblinHand.ttf", + :bold => "VTCGoblinHandBold.ttf", + :italic => "VTCGoblinHandItalic.ttf" } ) @@ -276,8 +282,18 @@ class ShardsOfPower @pdf.outline.section condition.name, :destination => @pdf.page_number end - condition_ary = [{:text => condition.name, :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}] - pdf.formatted_text condition_ary + pdf.image "conditionbox.png", :position => :center + pdf.move_up 30 + + pdf.font "Goblin Hand" + pdf.font_size FONT_SIZE_SUBSECTION + pdf.fill_color "FFFFFF" + pdf.text condition.name, :align => :center + + pdf.move_down 10 + pdf.font "Goudy" + pdf.fill_color "000000" + pdf.font_size FONT_SIZE_BODY pdf.text condition.rules_text, :inline_format => true pdf.text "Possible Sources: #{condition.possible_sources}", :inline_format => true if condition.possible_sources @@ -301,8 +317,27 @@ class ShardsOfPower @pdf.outline.section tilt.full_title, :destination => @pdf.page_number end - tilt_ary = [{:text => tilt.full_title, :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}] - pdf.formatted_text tilt_ary + pdf.image "conditionbox.png", :position => :center + + pdf.font "Goblin Hand" + pdf.fill_color "FFFFFF" + pdf.font_size FONT_SIZE_SUBSECTION + if tilt.environmental? + pdf.move_up 35 + pdf.text tilt.name, :align => :center + pdf.font_size FONT_SIZE_BODY + pdf.text "(Environmental)", :align => :center + else + pdf.move_up 30 + pdf.text tilt.name, :align => :center + end + + + + pdf.move_down 10 + pdf.font "Goudy" + pdf.fill_color "000000" + pdf.font_size FONT_SIZE_BODY pdf.text tilt.rules_text, :inline_format => true pdf.text "Effect: #{tilt.effect}", :inline_format => true diff --git a/tilt.rb b/tilt.rb index ed18787..80b633f 100644 --- a/tilt.rb +++ b/tilt.rb @@ -18,4 +18,8 @@ class Tilt name end end + + def environmental? + environmental + end end \ No newline at end of file