summaryrefslogtreecommitdiff
path: root/app/controllers/game_controller.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-28 14:33:19 -0400
committerDavid Gay <david@davidgay.org>2021-05-28 14:33:19 -0400
commit2b4f55811e6358e1fa5f9b2bed0d784fdfcef79f (patch)
tree2d8defaca4be49205f79b4057e595c2c35c3fad7 /app/controllers/game_controller.rb
parentd29d1bbfcca9d539d88296f3118732cf65b81b0e (diff)
Add axes and pickaxes, and a wildscour task to find them
Diffstat (limited to 'app/controllers/game_controller.rb')
-rw-r--r--app/controllers/game_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb
index 3742824..b0fdaea 100644
--- a/app/controllers/game_controller.rb
+++ b/app/controllers/game_controller.rb
@@ -128,6 +128,10 @@ class GameController < ApplicationController
else
current_char.update(activity_started_at: Time.now)
end
+
+ unless @results.any?
+ @results.push({ type: "message", body: "You come up empty." })
+ end
end
rescue ItemQuantityError
current_char.stop_activity