bnstooltips 1.25.0 → 1.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.es.js
CHANGED
|
@@ -264,7 +264,9 @@ function getNormalizedButton(skill) {
|
|
|
264
264
|
var compareButton = skill.Shortcut;
|
|
265
265
|
if (compareButton === "SPACEBAR")
|
|
266
266
|
compareButton = "SPACE";
|
|
267
|
-
if (
|
|
267
|
+
if ((skill.ShortcutFixed == undefined || skill.ShortcutFixed === false) &&
|
|
268
|
+
compareButton === "" &&
|
|
269
|
+
skill.SubTableDef === "active-skill")
|
|
268
270
|
compareButton = "RMB";
|
|
269
271
|
if (compareButton === "T")
|
|
270
272
|
compareButton = "RMB";
|
|
@@ -1035,6 +1037,73 @@ var BnsItemApiClient = /** @class */ (function (_super) {
|
|
|
1035
1037
|
}
|
|
1036
1038
|
return Promise.resolve(null);
|
|
1037
1039
|
};
|
|
1040
|
+
/**
|
|
1041
|
+
* @param patch (optional)
|
|
1042
|
+
* @param v (optional)
|
|
1043
|
+
* @return Success
|
|
1044
|
+
*/
|
|
1045
|
+
BnsItemApiClient.prototype.addedOrModifiedItemsForClass = function (added, modified, region, technicalJobName, patch, v) {
|
|
1046
|
+
var _this = this;
|
|
1047
|
+
var url_ = this.baseUrl + "/BnsItem/AddedOrModifiedItemsForClass?";
|
|
1048
|
+
if (added === undefined || added === null)
|
|
1049
|
+
throw new Error("The parameter 'added' must be defined and cannot be null.");
|
|
1050
|
+
else
|
|
1051
|
+
url_ += "added=" + encodeURIComponent("" + added) + "&";
|
|
1052
|
+
if (modified === undefined || modified === null)
|
|
1053
|
+
throw new Error("The parameter 'modified' must be defined and cannot be null.");
|
|
1054
|
+
else
|
|
1055
|
+
url_ += "modified=" + encodeURIComponent("" + modified) + "&";
|
|
1056
|
+
if (region === undefined || region === null)
|
|
1057
|
+
throw new Error("The parameter 'region' must be defined and cannot be null.");
|
|
1058
|
+
else
|
|
1059
|
+
url_ += "region=" + encodeURIComponent("" + region) + "&";
|
|
1060
|
+
if (technicalJobName === undefined || technicalJobName === null)
|
|
1061
|
+
throw new Error("The parameter 'technicalJobName' must be defined and cannot be null.");
|
|
1062
|
+
else
|
|
1063
|
+
url_ += "technicalJobName=" + encodeURIComponent("" + technicalJobName) + "&";
|
|
1064
|
+
if (patch === null)
|
|
1065
|
+
throw new Error("The parameter 'patch' cannot be null.");
|
|
1066
|
+
else if (patch !== undefined)
|
|
1067
|
+
url_ += "patch=" + encodeURIComponent("" + patch) + "&";
|
|
1068
|
+
if (v === null)
|
|
1069
|
+
throw new Error("The parameter 'v' cannot be null.");
|
|
1070
|
+
else if (v !== undefined)
|
|
1071
|
+
url_ += "v=" + encodeURIComponent("" + v) + "&";
|
|
1072
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1073
|
+
var options_ = {
|
|
1074
|
+
method: "GET",
|
|
1075
|
+
headers: {
|
|
1076
|
+
"Accept": "application/json"
|
|
1077
|
+
}
|
|
1078
|
+
};
|
|
1079
|
+
return this.transformOptions(options_).then(function (transformedOptions_) {
|
|
1080
|
+
return _this.http.fetch(url_, transformedOptions_);
|
|
1081
|
+
}).then(function (_response) {
|
|
1082
|
+
return _this.processAddedOrModifiedItemsForClass(_response);
|
|
1083
|
+
});
|
|
1084
|
+
};
|
|
1085
|
+
BnsItemApiClient.prototype.processAddedOrModifiedItemsForClass = function (response) {
|
|
1086
|
+
var _this = this;
|
|
1087
|
+
var status = response.status;
|
|
1088
|
+
var _headers = {};
|
|
1089
|
+
if (response.headers && response.headers.forEach) {
|
|
1090
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
1091
|
+
}
|
|
1092
|
+
if (status === 200) {
|
|
1093
|
+
return response.text().then(function (_responseText) {
|
|
1094
|
+
var result200 = null;
|
|
1095
|
+
var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
1096
|
+
result200 = ItemsResponse.fromJS(resultData200);
|
|
1097
|
+
return result200;
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
else if (status !== 200 && status !== 204) {
|
|
1101
|
+
return response.text().then(function (_responseText) {
|
|
1102
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1105
|
+
return Promise.resolve(null);
|
|
1106
|
+
};
|
|
1038
1107
|
/**
|
|
1039
1108
|
* @param light (optional)
|
|
1040
1109
|
* @param patch (optional)
|
|
@@ -8673,7 +8742,9 @@ function AddSkillEnhancements(subInfoGroups, item) {
|
|
|
8673
8742
|
subInfoGroups.push({
|
|
8674
8743
|
title: "Skill Enhancements:",
|
|
8675
8744
|
texts: [
|
|
8676
|
-
React.createElement("div", null, item.itemRandomSkillEnhancements.groupLists[0]
|
|
8745
|
+
React.createElement("div", null, item.itemRandomSkillEnhancements.groupLists[0]
|
|
8746
|
+
.sort(function (a, b) { return a.skillName.localeCompare(b.skillName); })
|
|
8747
|
+
.map(function (skillenhancement, index) { return (React.createElement("div", { key: "skillEnhancement_" + index, style: {
|
|
8677
8748
|
display: "flex",
|
|
8678
8749
|
alignItems: "center",
|
|
8679
8750
|
padding: ".1rem 0",
|