bnstooltips 1.18.4 → 1.18.5
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 +12 -2
- package/build/index.es.js.map +1 -1
- package/build/index.js +12 -2
- package/build/index.js.map +1 -1
- package/build/itemapiclient/ItemApiClient.d.ts +2 -0
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -2030,6 +2030,7 @@ var ItemImproveEffectOptionDto = /** @class */ (function () {
|
|
|
2030
2030
|
this.isEffect = _data["isEffect"];
|
|
2031
2031
|
this.effectDescription = _data["effectDescription"];
|
|
2032
2032
|
this.icon = _data["icon"] ? ItemIconDto.fromJS(_data["icon"]) : undefined;
|
|
2033
|
+
this.isPercentage = _data["isPercentage"];
|
|
2033
2034
|
}
|
|
2034
2035
|
};
|
|
2035
2036
|
ItemImproveEffectOptionDto.fromJS = function (data) {
|
|
@@ -2045,6 +2046,7 @@ var ItemImproveEffectOptionDto = /** @class */ (function () {
|
|
|
2045
2046
|
data["isEffect"] = this.isEffect;
|
|
2046
2047
|
data["effectDescription"] = this.effectDescription;
|
|
2047
2048
|
data["icon"] = this.icon ? this.icon.toJSON() : undefined;
|
|
2049
|
+
data["isPercentage"] = this.isPercentage;
|
|
2048
2050
|
return data;
|
|
2049
2051
|
};
|
|
2050
2052
|
return ItemImproveEffectOptionDto;
|
|
@@ -7217,10 +7219,18 @@ function ItemImproveEffectsTooltip(_a) {
|
|
|
7217
7219
|
subGroupTexts.push(React.createElement("div", { className: "ItemImproveEffectsTooltip_entry", dangerouslySetInnerHTML: { __html: effect.effectDescription } }));
|
|
7218
7220
|
}
|
|
7219
7221
|
else {
|
|
7222
|
+
if (effect.statName.includes("-min"))
|
|
7223
|
+
return;
|
|
7224
|
+
var statValue = effect.statValue;
|
|
7225
|
+
//minmax
|
|
7226
|
+
if (effect.statName.includes("-max")) {
|
|
7227
|
+
var minVal = itemName.effects.find(function (x) { return x.statName === effect.statName.replace("-max", "-min"); }).statValue;
|
|
7228
|
+
statValue = (effect.statValue + minVal) / 2;
|
|
7229
|
+
}
|
|
7220
7230
|
subGroupTexts.push(React.createElement("div", { className: "ItemImproveEffectsTooltip_entry 00008130.UI.Label_Green03_12" },
|
|
7221
|
-
React.createElement("span", null, effect.
|
|
7231
|
+
React.createElement("span", null, GetStatDisplayValue(statValue, effect.isPercentage)),
|
|
7222
7232
|
"\u00A0",
|
|
7223
|
-
React.createElement("span", { dangerouslySetInnerHTML: { __html: effect.statName } })));
|
|
7233
|
+
React.createElement("span", { dangerouslySetInnerHTML: { __html: ReplaceBossAndPvpAp(effect.statName).replace("Max.", "").trim() } })));
|
|
7224
7234
|
}
|
|
7225
7235
|
});
|
|
7226
7236
|
var subGroup = {
|