Add spells to the ToC

This commit is contained in:
The Stranjer 2019-05-31 05:33:55 -04:00
parent cd5543f3b0
commit 71328e4a0b

View File

@ -172,6 +172,10 @@ class BookOfFaces
rating_spells.sort_by { |spell| spell.name }.each do |spell|
puts "\t\tCompiling #{spell.full_title} by #{spell.authors.join(', ')}"
pdf.outline.add_subsection_to(rating_title) do
@pdf.outline.section spell.full_title, :destination => @pdf.page_number
end
spell_ary = [{:text => "#{spell.name} (", :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}]