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?
|
] if !spell.withstand.nil?
|
||||||
|
|
||||||
pdf.formatted_text [
|
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 => "Suggested Rote Skills: ", :styles => [:bold], :font => "Goudy"},
|
||||||
{:text => spell.suggested_rote_skills.join(', '), :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,
|
:suggested_rote_skills,
|
||||||
:reaches,
|
:reaches,
|
||||||
:adds,
|
:adds,
|
||||||
:rules_text
|
:rules_text,
|
||||||
|
:cost
|
||||||
|
|
||||||
attr_accessor :authors
|
attr_accessor :authors
|
||||||
|
|
||||||
@ -35,7 +36,8 @@ class Spell
|
|||||||
reaches: [],
|
reaches: [],
|
||||||
rules_text:,
|
rules_text:,
|
||||||
authors:,
|
authors:,
|
||||||
adds: [])
|
adds: [],
|
||||||
|
cost: nil)
|
||||||
|
|
||||||
@death = death
|
@death = death
|
||||||
@fate = fate
|
@fate = fate
|
||||||
@ -56,6 +58,7 @@ class Spell
|
|||||||
@rules_text = rules_text
|
@rules_text = rules_text
|
||||||
@authors = authors
|
@authors = authors
|
||||||
@adds = adds
|
@adds = adds
|
||||||
|
@cost = cost
|
||||||
end
|
end
|
||||||
|
|
||||||
def primary_arcanum
|
def primary_arcanum
|
||||||
|
Loading…
Reference in New Issue
Block a user