diff options
author | David Gay <david@davidgay.org> | 2021-05-28 10:01:18 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-28 10:01:18 -0400 |
commit | dc01fb947510ef44298ebfa078a9e08e2febfc25 (patch) | |
tree | 8472c9879774d325b018a1a94a4d00d82d6a6eed | |
parent | 19d790dc0e6c10ffcce1fa71a59ded558d0ac0c9 (diff) |
Tweak results output
-rw-r--r-- | app/views/look/_results.html.erb | 4 |
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" %> |