diff --git a/db/mhgen.db b/db/mhgen.db
index 61a651b..158d361 100644
Binary files a/db/mhgen.db and b/db/mhgen.db differ
diff --git a/mhapi/model.py b/mhapi/model.py
index b8122f3..68320cf 100644
--- a/mhapi/model.py
+++ b/mhapi/model.py
@@ -361,7 +361,7 @@ class Skill(RowModel):
class Weapon(ItemCraftable):
- _list_fields = ["id", "wtype", "name", "name_jp"]
+ _list_fields = ["id", "wtype", "name"]
_indexes = { "name": "id",
"wtype": ["id", "name"],
# subset of all data that can be used for searching and
@@ -405,7 +405,9 @@ class Weapon(ItemCraftable):
self._data["sharpness_plus2"] = WeaponSharpness(plus2)
def is_not_localized(self):
- return (self.name == self.name_jp)
+ # Check if first char is ascii, should be the case for all
+ # english weapons, and not for Japanese DLC weapons.
+ return ord(self.name[0]) < 128
class Monster(RowModel):
diff --git a/web/js/common.js b/web/js/common.js
index a5840fd..32751df 100644
--- a/web/js/common.js
+++ b/web/js/common.js
@@ -144,7 +144,9 @@ function setup_item_autocomplete(selector) {
function load_weapon_data(ready_fn) {
- var DATA_PATH = get_base_path() + "/jsonapi/";
+ if (typeof DATA_PATH == "undefined") {
+ DATA_PATH = get_base_path() + "/jsonapi/";
+ }
$.getJSON(DATA_PATH + "weapon/_index_name.json",
function(data) {
WEAPON_NAME_IDX = data;
diff --git a/web/mhgen/weaponlist.html b/web/mhgen/weaponlist.html
index aee68a9..949fe07 100644
--- a/web/mhgen/weaponlist.html
+++ b/web/mhgen/weaponlist.html
@@ -246,8 +246,8 @@
if (weapon_predicate(state, weapon_data)) {
weapon_data["id"] = i;
weapon_data["sharpness_width"] = 2;
- // TODO: link to planner
- weapon_data["url"] = null;
+ weapon_data["url"] = "weaponplanner.html?weapon="
+ + encodeURIComponent(weapon_data["name"]);
weapon_data["bug_type"] = null;
weapon_data["arc_type"] = null;
match_count += 1;
diff --git a/web/mhgen/weaponplanner.html b/web/mhgen/weaponplanner.html
index 15e520f..356a6ab 100644
--- a/web/mhgen/weaponplanner.html
+++ b/web/mhgen/weaponplanner.html
@@ -7,9 +7,9 @@
-
+
-
+