summaryrefslogtreecommitdiff
path: root/app/models/concerns/has_costs_and_requirements.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-15 19:54:29 -0400
committerDavid Gay <david@davidgay.org>2021-06-15 20:00:06 -0400
commitd2a31e04d19796a600a932a3491e056fe2c89af2 (patch)
tree36c43f03b12883c6dc4e2899e3c0ab1b8726b307 /app/models/concerns/has_costs_and_requirements.rb
parent53c9df5feb8ad4ebef8f40840d29255a81edb6df (diff)
Basic spellcasting
Diffstat (limited to 'app/models/concerns/has_costs_and_requirements.rb')
-rw-r--r--app/models/concerns/has_costs_and_requirements.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/concerns/has_costs_and_requirements.rb b/app/models/concerns/has_costs_and_requirements.rb
index 34ff0f3..9f859f5 100644
--- a/app/models/concerns/has_costs_and_requirements.rb
+++ b/app/models/concerns/has_costs_and_requirements.rb
@@ -19,6 +19,8 @@ module HasCostsAndRequirements
case req[:type]
when "skill"
requirements.push "level #{req[:level]} #{Skill.find_by_gid(req[:gid]).name}"
+ when "stat"
+ requirements.push "#{req[:value]} #{req[:gid]}"
when "equipment"
requirements.push "equipped #{Item.find_by_gid(req[:gid]).name}"
when "hearth_amenity"