summaryrefslogtreecommitdiff
path: root/app/views/activities
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-23 19:01:38 -0400
committerDavid Gay <david@davidgay.org>2021-05-23 19:01:38 -0400
commit61f5f280880c4d6dfb6d296c3bbbf6bc4022480b (patch)
tree4af910ec334183a9f073a6ee49a186c33591a609 /app/views/activities
parentac1790f76d843ed125ffeac6962f50504f1bf559 (diff)
Improve combat code, add monster turns, and improve combat output
Diffstat (limited to 'app/views/activities')
-rw-r--r--app/views/activities/_results.html.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/activities/_results.html.erb b/app/views/activities/_results.html.erb
index 5fde590..e0e54cc 100644
--- a/app/views/activities/_results.html.erb
+++ b/app/views/activities/_results.html.erb
@@ -11,6 +11,11 @@
<p>You constructed <%= result[:hearth_amenity].name %>.</p>
<% when "activity" %>
<p>You realized how to <%= result[:activity].name %>!</p>
+ <% when "monster" %>
+ <p>You encountered a <%= result[:monster].name %>.</p>
+ <p class="text-xs italic"><%= result[:monster].description %></p>
+ <% when "xp" %>
+ <p class="text-xs">You gained <%= result[:xp] %> <%= result[:skill].name %> XP.</p>
<% when "message" %>
<p><%= result[:body] %></p>
<% when "error" %>