Various small fixes
This commit is contained in:
parent
e1ce011557
commit
40e67265f5
@ -176,12 +176,15 @@ class BookOfFaces
|
|||||||
spell_ary = [{:text => "#{spell.name} (", :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}]
|
spell_ary = [{:text => "#{spell.name} (", :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}]
|
||||||
|
|
||||||
pdf.font_size FONT_SIZE_BODY
|
pdf.font_size FONT_SIZE_BODY
|
||||||
|
previous = false
|
||||||
spell.arcana.each do |arcanum|
|
spell.arcana.each do |arcanum|
|
||||||
|
spell_ary << {:text => ", ", :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION} if previous
|
||||||
spell_ary << {:text => arcanum.to_s.titleize, :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}
|
spell_ary << {:text => arcanum.to_s.titleize, :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}
|
||||||
spell_ary << {:text => spell.send(arcanum).to_dots, :font => "Goudy", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}
|
spell_ary << {:text => spell.send(arcanum).to_dots, :color => "004E6D", :size => FONT_SIZE_SUBSECTION, :character_spacing => -5}
|
||||||
|
previous = true
|
||||||
end
|
end
|
||||||
|
|
||||||
spell_ary << {:text => ")", :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}
|
spell_ary << {:text => " )", :font => "Lilith", :styles => [], :color => "004E6D", :size => FONT_SIZE_SUBSECTION, :character_spacing => -3}
|
||||||
|
|
||||||
pdf.formatted_text spell_ary
|
pdf.formatted_text spell_ary
|
||||||
|
|
||||||
|
2
spell.rb
2
spell.rb
@ -56,7 +56,7 @@ class Spell
|
|||||||
end
|
end
|
||||||
|
|
||||||
def primary_arcanum
|
def primary_arcanum
|
||||||
ARCANA.max { |arcanum| self.send(arcanum) }
|
ARCANA.max { |arcanum1, arcanum2| self.send(arcanum1) <=> self.send(arcanum2) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def full_title
|
def full_title
|
||||||
|
@ -28,8 +28,7 @@ class Spell
|
|||||||
:reaches => [[1, "The caster can distinguish between those who witnessed death and those who have caused it directly. She can also accurately guess how many people have been killed by the target."]]
|
:reaches => [[1, "The caster can distinguish between those who witnessed death and those who have caused it directly. She can also accurately guess how many people have been killed by the target."]]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
spells
|
spells
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user