weaponplanner, list: improve formatting
This commit is contained in:
1 parent
0064062006
commit
4f9ad72a64
5 files changed
+27
-25
No files matched your search
+1
-14
@@ -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