feat: add map locations for fairies
This commit is contained in:
parent
8109bacb0d
commit
f9527c330c
3 changed files with 46 additions and 33 deletions
|
@ -38,6 +38,7 @@
|
|||
<% else %>
|
||||
<div class="fairy-list">
|
||||
<% 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 } %>
|
||||
<div>
|
||||
<% if idx == 0 %>
|
||||
<div>
|
||||
|
@ -57,6 +58,11 @@
|
|||
</div>
|
||||
<% end %>
|
||||
|
||||
<div>
|
||||
<%#= instance.fairies[idx].location %>
|
||||
<%= fdata[:mx] %>,<%= fdata[:my] %>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div
|
||||
class="copyable action needs_pwd"
|
||||
|
@ -73,7 +79,10 @@
|
|||
<div class="note">
|
||||
<div
|
||||
class="copyable"
|
||||
data-copy-content="Elementals: <%= instance.fairies[0..-1].map { |f| f.location }.join(", ") %>"
|
||||
data-copy-content="Elementals: <%= instance.fairies[0..-1].map { |f|
|
||||
fdata = APP_DATA[instance.zone.to_sym][:fairies].find { |fd| "#{fd[:x]},#{fd[:y]}" == f.location }
|
||||
"#{fdata[:mx]},#{fdata[:my]}"
|
||||
}.join(" | ") %>"
|
||||
>
|
||||
copy elemental positions for chat
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue