summaryrefslogtreecommitdiff
path: root/app/models/built_hearth_amenity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/built_hearth_amenity.rb')
-rw-r--r--app/models/built_hearth_amenity.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/built_hearth_amenity.rb b/app/models/built_hearth_amenity.rb
index 39b6679..a1e35e8 100644
--- a/app/models/built_hearth_amenity.rb
+++ b/app/models/built_hearth_amenity.rb
@@ -28,4 +28,8 @@ class BuiltHearthAmenity < ApplicationRecord
seconds_until_cooled_down = cooldown - (Time.now - self.last_used_at)
[0, seconds_until_cooled_down].max
end
+
+ def effects
+ self.hearth_amenity.whatnot[:effects]&.reject { |e| e[:level] > self.level }
+ end
end