% title('NPCs') %> <%= javascript_tag "window._token = '#{form_authenticity_token}'" %>
| Name | Location | Rewards | <% if user_signed_in? %><% end %> |
|---|---|---|---|
| <%= link_to(format_npc_name(npc), npc_path(npc), class: 'name') %> | <%= location(npc) %> |
<% npc.rewards.each do |card| %>
<% if user_signed_in? %>
<%= small_image(card) %>
<% else %>
<%= link_to card_path(card) do %>
<%= small_image(card) %>
<% end %>
<% end %>
<% end %>
|
<% if user_signed_in? %>
<% if @defeated.include?(npc.id) %> <% else %> <% end %> | <% end %>