Include a Cost field for Spells

This commit is contained in:
The Stranjer 2019-06-12 08:05:19 -04:00
parent 096e09057c
commit 7a0b749545
2 changed files with 10 additions and 2 deletions

View File

@ -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"},
]

View File

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