summaryrefslogtreecommitdiff
path: root/app/models/equipment.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-28 10:21:12 -0400
committerDavid Gay <david@davidgay.org>2021-05-28 10:21:12 -0400
commit04a81a4517c33d86cdebed9116bbd0a7656bd68d (patch)
tree3b817d0a4af5fc948c5d336dd7d9ecf825a7d889 /app/models/equipment.rb
parent87d006ed6b34d00274c72dba055ba4fbc2980212 (diff)
Refactor HA effects and equipment equip effects to use the same format, then include them both in Character#effects
Diffstat (limited to 'app/models/equipment.rb')
-rw-r--r--app/models/equipment.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/equipment.rb b/app/models/equipment.rb
index 11030fd..ce3822c 100644
--- a/app/models/equipment.rb
+++ b/app/models/equipment.rb
@@ -8,4 +8,8 @@ class Equipment < ApplicationRecord
def slot
self[:slot].to_sym
end
+
+ def effects
+ self.item.whatnot[:equip_effects]
+ end
end