summaryrefslogtreecommitdiff
path: root/app/views/look
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-28 10:01:18 -0400
committerDavid Gay <david@davidgay.org>2021-05-28 10:01:18 -0400
commitdc01fb947510ef44298ebfa078a9e08e2febfc25 (patch)
tree8472c9879774d325b018a1a94a4d00d82d6a6eed /app/views/look
parent19d790dc0e6c10ffcce1fa71a59ded558d0ac0c9 (diff)
Tweak results output
Diffstat (limited to 'app/views/look')
-rw-r--r--app/views/look/_results.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/look/_results.html.erb b/app/views/look/_results.html.erb
index 8b5466e..beb2deb 100644
--- a/app/views/look/_results.html.erb
+++ b/app/views/look/_results.html.erb
@@ -2,9 +2,9 @@
<% results.each do |result| %>
<% case result[:type] %>
<% when "item" %>
- <p>You got <%= result[:quantity] %> <%= link_to result[:item].name, item_path(result[: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(", ") %>)
+ (<%= result[:xp].map { |award| "#{award[:amount] * result[:quantity]} #{award[:skill].name} XP" }.join(", ") %>)
<% end %>
</p>
<% when "hearth_amenity" %>