
<% APP_DATA[instance.zone.to_sym][:fairies].each do |fairy| %>
<% if has_fairy?(instance, fairy) %>
<% idx = instance.fairies.index { |f| f.location == "#{fairy[:x]},#{fairy[:y]}" } %>
<% if idx == 0 %>
A
<% elsif idx == 1 %>
B
<% elsif idx == 2 %>
C
<% else %>
<%= idx + 1 %>
<% end %>
<% else %>
◆
<% end %>
<% end %>
<% if instance.fairies.empty? %>
<% instance.fairies.to_a.each_index do |idx| %>
<% fdata = APP_DATA[instance.zone.to_sym][:fairies].find { |f| "#{f[:x]},#{f[:y]}" == instance.fairies[idx].location } %>
<% if idx == 0 %>
Elemental 1
<% elsif idx == 1 %>
Elemental 2
<% elsif idx == 2 %>
Elemental 3
<% elsif idx > 2 %>
Elemental <%= idx + 1 %>
<% end %>
<%#= instance.fairies[idx].location %>
<%= fdata[:mx] %>,<%= fdata[:my] %>
remove
<% unless instance.fairies[idx].is_despawned %>
gone?
<% end %>
<% if instance.fairies[idx].is_despawned %>
potentially despawned!
<% end %>
<% end %>
Click on a black dot to mark another Elemental.
"
>
copy elemental positions for chat
<% end %>