diff --git a/shards_of_power.rb b/shards_of_power.rb index acc2593..518744b 100644 --- a/shards_of_power.rb +++ b/shards_of_power.rb @@ -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"}, ] diff --git a/spell.rb b/spell.rb index fc08805..4247183 100644 --- a/spell.rb +++ b/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