Include a Cost field for Spells
This commit is contained in:
parent
096e09057c
commit
7a0b749545
@ -217,6 +217,11 @@ class ShardsOfPower
|
||||
] if !spell.withstand.nil?
|
||||
|
||||
pdf.formatted_text [
|
||||
{:text => "Cost: ", :styles => [:bold], :font => "Goudy"},
|
||||
{:text => spell.cost, :font => "Goudy"},
|
||||
] if !spell.cost.nil?
|
||||
|
||||
pdf.formatted_text [
|
||||
{:text => "Suggested Rote Skills: ", :styles => [:bold], :font => "Goudy"},
|
||||
{:text => spell.suggested_rote_skills.join(', '), :font => "Goudy"},
|
||||
]
|
||||
|
7
spell.rb
7
spell.rb
@ -12,7 +12,8 @@ class Spell
|
||||
:suggested_rote_skills,
|
||||
:reaches,
|
||||
:adds,
|
||||
:rules_text
|
||||
:rules_text,
|
||||
:cost
|
||||
|
||||
attr_accessor :authors
|
||||
|
||||
@ -35,7 +36,8 @@ class Spell
|
||||
reaches: [],
|
||||
rules_text:,
|
||||
authors:,
|
||||
adds: [])
|
||||
adds: [],
|
||||
cost: nil)
|
||||
|
||||
@death = death
|
||||
@fate = fate
|
||||
@ -56,6 +58,7 @@ class Spell
|
||||
@rules_text = rules_text
|
||||
@authors = authors
|
||||
@adds = adds
|
||||
@cost = cost
|
||||
end
|
||||
|
||||
def primary_arcanum
|
||||
|
Loading…
Reference in New Issue
Block a user