summaryrefslogtreecommitdiff
path: root/app/controllers/game_controller.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-19 18:39:35 -0400
committerDavid Gay <david@davidgay.org>2021-05-19 18:39:35 -0400
commit9fec79398a34d26be1042e35cae429b88f8b96d0 (patch)
treec51814b60f5fb3ae753f9fe7549b30af6930adcc /app/controllers/game_controller.rb
parent9ab7dfd99e7015513bfe1a092f257c1c7a7afb1b (diff)
Revise and progress with hearth amenity construction
Diffstat (limited to 'app/controllers/game_controller.rb')
-rw-r--r--app/controllers/game_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb
index d69645f..147b692 100644
--- a/app/controllers/game_controller.rb
+++ b/app/controllers/game_controller.rb
@@ -2,6 +2,7 @@ class GameController < ApplicationController
def finish_activity
@results = []
return unless current_char.activity_time_remaining <= 0
+ return unless current_char.can_do_activity?(current_char.activity) # TODO: Add error message
current_char.update(activity_started_at: Time.now)
current_char.activity.whatnot[:results].each do |result|