improve weapon list, mhx weapon scraper

This commit is contained in:
Bryce Allen
2016-01-07 22:35:33 -05:00
parent d0173157b9
commit 43c9e6c79c
6 changed files with 33672 additions and 15651 deletions

View File

@@ -99,6 +99,7 @@
<script type="text/javascript">
var WEAPON_LIST = null;
var HORN_MELODY_MAP = null;
$.ajax({
url: "/jsonapi/mhx/weapon_list.json",
@@ -110,6 +111,16 @@
}
});
$.ajax({
url: "/jsonapi/horn_melody/_index_notes.json",
async: false,
dataType: "json",
success: function (data) {
HORN_MELODY_MAP = data;
}
});
var template_row = new EJS({ url: "/templates/weaponrow.ejs" });
$(document).ready(function(){
@@ -236,7 +247,7 @@
match_count += 1;
set_sharpness_titles(weapon_data);
set_bow_values(weapon_data);
set_horn_melodies_title(weapon_data);
set_horn_melodies_title(weapon_data, HORN_MELODY_MAP);
weapon_data["wtype_short"] =
WEAPON_TYPE_ABBR[weapon_data["wtype"]];
weapon_data["ELEMENT_ABBR"] = ELEMENT_ABBR;