weaponplanner, list: improve formatting
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user