weaponplanner: add upgrade links
- add 'children' field to weapon JSON, with list of dicts containing 'id' and 'name' keys for weapons that can be upgraded from current weapon.
This commit is contained in:
@@ -33,4 +33,13 @@
|
||||
<span style="width:<%= sharpness_plus[6] %>px" class="purple"></span>
|
||||
</div>
|
||||
</td>
|
||||
<% if (children.length) { %>
|
||||
<tr><td colspan="5"> ->
|
||||
<% for(var i=0; i<children.length; i++) { %>
|
||||
<a href="weaponplanner.html?weapon=<%= encodeURIComponent(children[i]['name']) %>"
|
||||
><%= children[i]["name"] %></a>
|
||||
<% if (i != children.length - 1) { %>|<% } %>
|
||||
<% } %>
|
||||
</td></tr>
|
||||
<% } %>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user