diff --git a/CHANGELOG.md b/CHANGELOG.md index 99b9d43..e832197 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,11 @@ and this project adheres to [Semantic Versioning](semver). - Custom upload for your own data files - Updates to Roden and Great Wolves files (currently the data comes from Monster Burner and not Codex) +## [2.1.1] - 2019-07-14 +### Changed +- Traits on PDF are now just a comma-delimited list (instead of newline) and shrink to fit in the appropriate space +- Fix a typo in Dark Elf lifepaths + ## [2.1.0] - 2019-07-11 ### Added - Dark Elf lifepaths and Spite emotional attribute. diff --git a/src/data/dark_elf/traits.json b/src/data/dark_elf/traits.json index 7a2b50c..ab8c61f 100644 --- a/src/data/dark_elf/traits.json +++ b/src/data/dark_elf/traits.json @@ -2,7 +2,7 @@ "Cold": { "cost": 1, "type": "die", - "desc": "In a Duel of WIts where kindness, compassion, Grief or passion are involved, the Eremite may double his Will for the purposes of the body of argument. This effect can be triggered mid-conflict, increasing the Eremite's body of argument immediately." + "desc": "In a Duel of Wits where kindness, compassion, Grief or passion are involved, the Eremite may double his Will for the purposes of the body of argument. This effect can be triggered mid-conflict, increasing the Eremite's body of argument immediately." }, "Deceptive": { "cost": 1, diff --git a/src/lib/pdf.rb b/src/lib/pdf.rb index 36a5874..5e68084 100644 --- a/src/lib/pdf.rb +++ b/src/lib/pdf.rb @@ -66,9 +66,9 @@ class CharSheet die_traits = @character['traits'].select {|t| t[1] == 'die'}.map {|t| t[0] } call_on_traits = @character['traits'].select {|t| t[1] == 'call_on'}.map {|t| t[0] } - pdf.text_box character_traits.join("\n"), :at => [5, 214], :width => 110, :size => @t2 - pdf.text_box die_traits.join("\n"), :at => [122, 214], :width => 110, :size => @t2 - pdf.text_box call_on_traits.join("\n"), :at => [241, 207], :width => 110, :size => @t2 + pdf.text_box character_traits.join(", "), :at => [5, 214], :width => 110, :height => 50, :overflow => :shring_to_fit, :size => @t2 + pdf.text_box die_traits.join(", "), :at => [122, 214], :width => 110, :height => 50, :overflow => :shrink_to_fit, :size => @t2 + pdf.text_box call_on_traits.join(", "), :at => [241, 207], :width => 110, :height => 40, :overflow => :shrink_to_fit, :size => @t2 gear = @character['gear'] + @character['property'] #gear = gear.map {|g| g.split(', ').join(' - ') }