diff options
author | David Gay <david@davidgay.org> | 2021-05-23 19:01:38 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-23 19:01:38 -0400 |
commit | 61f5f280880c4d6dfb6d296c3bbbf6bc4022480b (patch) | |
tree | 4af910ec334183a9f073a6ee49a186c33591a609 /app/views/activities | |
parent | ac1790f76d843ed125ffeac6962f50504f1bf559 (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.erb | 5 |
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" %> |