diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/game_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb index c506aa6..f8b9973 100644 --- a/app/controllers/game_controller.rb +++ b/app/controllers/game_controller.rb @@ -179,6 +179,11 @@ class GameController < ApplicationController unless @results.any? @results.push({ type: "message", body: "You come up empty." }) end + + # HACK: To display any titles that were gained indirectly (not as part of the activity results). + current_char.title_awards.where(created_at: 5.seconds.ago..).each do |title_award| + @results.push({ type: "title", title: title_award.title }) + end end rescue ItemQuantityError current_char.stop_activity |