diff options
author | David Gay <david@davidgay.org> | 2021-05-28 14:33:19 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-28 14:33:19 -0400 |
commit | 2b4f55811e6358e1fa5f9b2bed0d784fdfcef79f (patch) | |
tree | 2d8defaca4be49205f79b4057e595c2c35c3fad7 /app | |
parent | d29d1bbfcca9d539d88296f3118732cf65b81b0e (diff) |
Add axes and pickaxes, and a wildscour task to find them
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/game_controller.rb | 4 |
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 |