add html/jsonapi armor builder

- make decoration calculator use 1-slot decorations multiple times
This commit is contained in:
Bryce Allen
2015-04-29 02:16:01 -05:00
parent 784299dd53
commit 6329e7028b
11 changed files with 662 additions and 38 deletions

View File

@@ -0,0 +1,18 @@
<table>
<% for(var i=0; i<decorations.length; i++) { %>
<tr>
<td><%= Array(decorations[i]["num_slots"] + 1).join("\u26ab") %></td>
<td><%= decorations[i]["display_name"] %>
<button id="<%= type %>_remove_decoration_<%= i %>"
class="remove_decoration">-</button></td>
</tr>
<% } %>
<% if (free_slots > 0) { %>
<tr>
<td><%= Array(free_slots + 1).join("\u26aa") %><%= Array(3- free_slots + 1).join("&nbsp;") %></td>
<td><input id="<%= type %>_decoration" type="text" size="12">
<button id="<%= type %>_add_decoration"
class="add_decoration">+</button></td>
</tr>
<% } %>
</table>