summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-03 20:16:22 -0400
committerDavid Gay <david@davidgay.org>2021-06-03 20:16:22 -0400
commitde2cd93ebcacb37af501b46a60d11b25913dfa1f (patch)
treec4eeb36baa38af63b0d180b9aefc768cd4377229 /app/controllers
parent94418789939af680ed72bf31c62762046da33dfd (diff)
New title: Aspirant
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/game_controller.rb5
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