diff options
author | David Gay <david@davidgay.org> | 2021-05-26 20:57:47 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-26 20:57:47 -0400 |
commit | 8cec9b3f6f277399c6da23a04d8afb0c68cf8a2b (patch) | |
tree | 749356642343c8f7ad2e20f7d3d94fe709c26725 /app/controllers/characters | |
parent | 920b9a66eb2d7e7810c16f1d9b70d65a19736487 (diff) |
Basic usage of hearth amenities
Diffstat (limited to 'app/controllers/characters')
-rw-r--r-- | app/controllers/characters/items_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/characters/items_controller.rb b/app/controllers/characters/items_controller.rb index 4d47ebb..e1dfd5c 100644 --- a/app/controllers/characters/items_controller.rb +++ b/app/controllers/characters/items_controller.rb @@ -35,6 +35,7 @@ class Characters::ItemsController < ApplicationController @item.whatnot[:use_effects]&.each do |effect| case effect[:type] when "change_wounds" + # This is basically duplicated in HearthAmenityController Character.transaction do wounds_change = [effect[:value], -current_char.wounds].max current_char.shift_item(@item, -1) |