diff options
author | David Gay <david@davidgay.org> | 2021-05-27 18:41:51 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-27 18:41:51 -0400 |
commit | 65c1ee3dbaf5c0a030dd28a7e3f41d47c7652cb1 (patch) | |
tree | 7536a43e8656d7cecc867c9a221fced1f225f731 /app/views/activities/_results.html.erb | |
parent | 2c2de801b4481695f3d1b6b14527116092cb1197 (diff) |
Move active action display with timer and results to a `LookController`
Diffstat (limited to 'app/views/activities/_results.html.erb')
-rw-r--r-- | app/views/activities/_results.html.erb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/app/views/activities/_results.html.erb b/app/views/activities/_results.html.erb deleted file mode 100644 index 36e8103..0000000 --- a/app/views/activities/_results.html.erb +++ /dev/null @@ -1,27 +0,0 @@ -<div> - <% results.each do |result| %> - <% case result[:type] %> - <% when "item" %> - <p>You got <%= result[:quantity] %> <%= link_to result[:item].name, item_path(result[:item])%> - <% if result[:xp]&.any? %> - (<%= result[:xp].map { |award| "#{award[:amount] * result[:quantity]} xp #{award[:skill].name}" }.join(", ") %>) - <% end %> - </p> - <% when "hearth_amenity" %> - <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 "title" %> - <p>You earned the title <%= render "application/components/text/title", title: result[:title] %>!</p> - <% when "message" %> - <p><%= result[:body] %></p> - <% when "error" %> - <p><%= result[:message] %></p> - <% end %> - <% end %> -</div> |