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

View File

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