summaryrefslogtreecommitdiff
path: root/app/views/application/_results.html.erb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-05 18:08:06 -0400
committerDavid Gay <david@davidgay.org>2021-06-05 18:08:37 -0400
commitd58346df32cd8f6934b7cf068637eb8896456977 (patch)
tree16dc0b472917fa1d69a86990a77f3835a1d159f1 /app/views/application/_results.html.erb
parent4e89b79597f87057b866b715173c0a6da77c8cfa (diff)
Chance for equipment to break after combat
Diffstat (limited to 'app/views/application/_results.html.erb')
-rw-r--r--app/views/application/_results.html.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/application/_results.html.erb b/app/views/application/_results.html.erb
index 1da0af7..31fb93e 100644
--- a/app/views/application/_results.html.erb
+++ b/app/views/application/_results.html.erb
@@ -23,6 +23,8 @@
<p>You earned the title <%= render "application/components/text/title", title: result[:title] %>!</p>
<% when "message" %>
<p><%= result[:body] %></p>
+ <% when "warning" %>
+ <p class="text-yellow-500"><%= result[:message] %></p>
<% when "error" %>
<p class="text-red-500"><%= result[:message] %></p>
<% when "br" %>