summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-23 17:50:06 -0400
committerDavid Gay <david@davidgay.org>2021-05-23 17:50:06 -0400
commitf029299c3a60df8301a4ab32ab693b672798e8ad (patch)
tree9ff753e194377786971c3a2758c3b666c8ac144e /app/controllers
parentfda81182ff4316529f56fa00bff7b2e3ef774ba3 (diff)
Have equipment stats affect combat stats
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/bazaar_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/bazaar_controller.rb b/app/controllers/bazaar_controller.rb
index b31e8fb..b699d28 100644
--- a/app/controllers/bazaar_controller.rb
+++ b/app/controllers/bazaar_controller.rb
@@ -38,7 +38,7 @@ class BazaarController < ApplicationController
current_char.shift_item(@bazaar_order.item, -quantity)
current_char.shift_item("vestige", profit)
@bazaar_order.character.shift_item(@bazaar_order.item, quantity)
- @bazaar_order.decrement!(:quantity, quantity)
+ @bazaar_order.decrement(:quantity, quantity)
@bazaar_order.save!
flash[:notice] = "You sold #{quantity} #{@bazaar_order.item.name} and got #{profit} vg."
end
@@ -49,7 +49,7 @@ class BazaarController < ApplicationController
current_char.shift_item("vestige", -cost)
current_char.shift_item(@bazaar_order.item, quantity)
@bazaar_order.character.shift_item("vestige", cost)
- @bazaar_order.decrement!(:quantity, quantity)
+ @bazaar_order.decrement(:quantity, quantity)
@bazaar_order.save!
flash[:notice] = "You bought #{quantity} #{@bazaar_order.item.name} for #{cost} vg."
end