weaponplanner, list: improve formatting

This commit is contained in:
Bryce Allen
2015-07-17 20:11:16 -05:00
parent 0064062006
commit 4f9ad72a64
5 changed files with 27 additions and 25 deletions

View File

@@ -212,20 +212,7 @@
+ "', failed component match");
return;
}
if (data["sharpness"]) {
data["sharpness_title"] =
data["sharpness"].join(",");
data["sharpness_plus_title"] =
data["sharpness_plus"].join(",");
data["sharpness_all_title"] =
data["sharpness_title"] + " ("
+ data["sharpness_plus_title"] + ")";
} else {
// gunner weapons have no sharpness
data["sharpness_title"] = "";
data["sharpness_plus_title"] = "";
data["sharpness_all_title"] = "";
}
set_sharpness_titles(data);
data["wtype_short"] =
WEAPON_TYPE_ABBR[data["wtype"]];
data["ELEMENT_ABBR"] = ELEMENT_ABBR;