pull/1/head
Michael Hansen 5 years ago
parent 16919abeec
commit b501259633
  1. 5
      CHANGELOG.md
  2. 2
      src/data/dark_elf/traits.json
  3. 6
      src/lib/pdf.rb

@ -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.

@ -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,

@ -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(' - ') }

Loading…
Cancel
Save