diff options
author | David Gay <david@davidgay.org> | 2021-06-03 09:16:12 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-03 09:16:12 -0400 |
commit | 5c79a9376feab23366859a3bbf44cf393d39ad91 (patch) | |
tree | b32c37ccc8dacf844816a71d9197d8bd8b0c19fa | |
parent | 7f6117a84a0901a90e09680ba111c003d8c942a6 (diff) |
Add line break after combat results
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | app/controllers/game_controller.rb | 1 | ||||
-rw-r--r-- | app/views/look/_results.html.erb | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e8ae5a..036d1c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ All notable changes to this project will be documented in this file. - Stone spade can now be found while wildscouring crumbling ruins. Other drop chances have not changed, so the net result is that you come up empty less. - Seeds can now be found while wealdreaping in Twil Woods and Twil Grove. +- A blank line is now added after combat results to make it easier to visually scan the logs. ### Fixed - Arcanite short sword was named "iron short sword". diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb index 04d743c..c506aa6 100644 --- a/app/controllers/game_controller.rb +++ b/app/controllers/game_controller.rb @@ -308,6 +308,7 @@ class GameController < ApplicationController raise "Invalid award type string (#{award_data[:type]})" end end + @results.push({ type: "br" }) end break end diff --git a/app/views/look/_results.html.erb b/app/views/look/_results.html.erb index 2c79812..1da0af7 100644 --- a/app/views/look/_results.html.erb +++ b/app/views/look/_results.html.erb @@ -25,6 +25,8 @@ <p><%= result[:body] %></p> <% when "error" %> <p class="text-red-500"><%= result[:message] %></p> + <% when "br" %> + <br /> <% end %> <% end %> </div> |