diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/game_controller.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb index 4b96b49..8c1acaf 100644 --- a/app/controllers/game_controller.rb +++ b/app/controllers/game_controller.rb @@ -57,6 +57,13 @@ class GameController < ApplicationController if table_roll >= score give_item_with_xp(table_entry, quantity) + + table_entry[:titles]&.each do |title_data| + title = Title.find_by_gid(title_data[:gid]) + if current_char.award_title(title) + @results.push({ type: "title", title: title }) + end + end break end end |