diff options
Diffstat (limited to 'app/views/look')
-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" %> |