bnstooltips 1.20.4 → 1.20.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/SkillTooltip/SkillTooltip.d.ts +1 -1
- package/build/index.d.ts +2 -0
- package/build/index.es.js +57 -31
- package/build/index.es.js.map +1 -1
- package/build/index.js +57 -30
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -8930,6 +8930,7 @@ function SkillTooltip(_a) {
|
|
|
8930
8930
|
AddBoundaries(tooltipBaseProps.subInfoGroups, skill);
|
|
8931
8931
|
AddConditions(tooltipBaseProps.subInfoGroups, skill);
|
|
8932
8932
|
AddStances(tooltipBaseProps.subInfoGroups, skill);
|
|
8933
|
+
AddGcd(tooltipBaseProps.subInfoGroups, skill);
|
|
8933
8934
|
if (debug) {
|
|
8934
8935
|
AddIds(tooltipBaseProps.subInfoGroups, skill);
|
|
8935
8936
|
AddRealCastConds(tooltipBaseProps.subInfoGroups, skill);
|
|
@@ -8983,7 +8984,9 @@ function AddSkillMastery(subInfoGroups, masteryPoints, arcaneInfo) {
|
|
|
8983
8984
|
var masteryValue = GetSkillMasteryValue(masteryPoints, arcaneInfo);
|
|
8984
8985
|
if (masteryValue == null)
|
|
8985
8986
|
return;
|
|
8986
|
-
var formattedMasteryValue = Number.isInteger(masteryValue)
|
|
8987
|
+
var formattedMasteryValue = Number.isInteger(masteryValue)
|
|
8988
|
+
? masteryValue.toString()
|
|
8989
|
+
: masteryValue.toFixed(2).replace(",", ".");
|
|
8987
8990
|
subInfoGroups.push({
|
|
8988
8991
|
title: "",
|
|
8989
8992
|
texts: [
|
|
@@ -8992,18 +8995,15 @@ function AddSkillMastery(subInfoGroups, masteryPoints, arcaneInfo) {
|
|
|
8992
8995
|
React__default["default"].createElement("span", { className: "tooltipArg", style: { fontSize: "14px" } }, "Skill Grandmaster"),
|
|
8993
8996
|
React__default["default"].createElement("div", { className: "arcanemark" }),
|
|
8994
8997
|
React__default["default"].createElement("span", { className: "tooltipArg", style: { fontSize: "14px" } }, masteryPoints)),
|
|
8995
|
-
!arcaneInfo.IsCooldown ?
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
:
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
React__default["default"].createElement("span", { className: "tooltipArg" },
|
|
9005
|
-
formattedMasteryValue,
|
|
9006
|
-
" sec."))),
|
|
8998
|
+
!arcaneInfo.IsCooldown ? (React__default["default"].createElement("div", null,
|
|
8999
|
+
"Damage increase:\u00A0",
|
|
9000
|
+
React__default["default"].createElement("span", { className: "tooltipArg" },
|
|
9001
|
+
formattedMasteryValue,
|
|
9002
|
+
"%"))) : (React__default["default"].createElement("div", null,
|
|
9003
|
+
"Cooldown reduction:\u00A0",
|
|
9004
|
+
React__default["default"].createElement("span", { className: "tooltipArg" },
|
|
9005
|
+
formattedMasteryValue,
|
|
9006
|
+
" sec.")))),
|
|
9007
9007
|
],
|
|
9008
9008
|
});
|
|
9009
9009
|
}
|
|
@@ -9039,10 +9039,28 @@ function AddStances(subInfoGroups, skill) {
|
|
|
9039
9039
|
texts: [React__default["default"].createElement(SkillConditions, { tooltipItems: skill.Tooltip.Stance })],
|
|
9040
9040
|
});
|
|
9041
9041
|
}
|
|
9042
|
+
function AddGcd(subInfoGroups, skill) {
|
|
9043
|
+
if (skill.GcdGroup == null || skill.GcdDuration == null)
|
|
9044
|
+
return;
|
|
9045
|
+
if (skill.GcdGroup == 0 && skill.GcdDuration == 0)
|
|
9046
|
+
return;
|
|
9047
|
+
subInfoGroups.push({
|
|
9048
|
+
title: "Global Cooldown",
|
|
9049
|
+
texts: [
|
|
9050
|
+
React__default["default"].createElement("div", null,
|
|
9051
|
+
"Group:\u00A0",
|
|
9052
|
+
React__default["default"].createElement("span", { className: "tooltipArg" }, skill.GcdGroup),
|
|
9053
|
+
"\u00A0 Duration:\u00A0",
|
|
9054
|
+
React__default["default"].createElement("span", { className: "tooltipArg" },
|
|
9055
|
+
skill.GcdDuration,
|
|
9056
|
+
" ms")),
|
|
9057
|
+
],
|
|
9058
|
+
});
|
|
9059
|
+
}
|
|
9042
9060
|
function AddIds(subInfoGroups, skill) {
|
|
9043
9061
|
subInfoGroups.push({
|
|
9044
9062
|
title: "",
|
|
9045
|
-
texts: [React__default["default"].createElement("hr", null)]
|
|
9063
|
+
texts: [React__default["default"].createElement("hr", null)],
|
|
9046
9064
|
});
|
|
9047
9065
|
var subInfoGroup = {
|
|
9048
9066
|
title: "Debug info",
|
|
@@ -9088,18 +9106,19 @@ function AddRealEffects(subInfoGroups, skill) {
|
|
|
9088
9106
|
var realEffect = realEffects.Effects[key];
|
|
9089
9107
|
var subInfoGroup = {
|
|
9090
9108
|
title: "Effect",
|
|
9091
|
-
texts: []
|
|
9109
|
+
texts: [],
|
|
9092
9110
|
};
|
|
9093
9111
|
var texts = [
|
|
9094
9112
|
React__default["default"].createElement("div", null,
|
|
9095
9113
|
"Id: ",
|
|
9096
9114
|
React__default["default"].createElement(BlueColoredText$1, { text: realEffect.Id.toString() })),
|
|
9097
9115
|
React__default["default"].createElement("div", null,
|
|
9098
|
-
"Alias:
|
|
9116
|
+
"Alias:",
|
|
9117
|
+
" ",
|
|
9099
9118
|
React__default["default"].createElement(BlueColoredText$1, { text: realEffect.Alias, customClasses: "wordbreakall" })),
|
|
9100
9119
|
React__default["default"].createElement("div", null,
|
|
9101
9120
|
"Effect type: ",
|
|
9102
|
-
React__default["default"].createElement(BlueColoredText$1, { text: realEffect.EffectType }))
|
|
9121
|
+
React__default["default"].createElement(BlueColoredText$1, { text: realEffect.EffectType })),
|
|
9103
9122
|
];
|
|
9104
9123
|
if (realEffect.Name != null && realEffect.Name != "") {
|
|
9105
9124
|
texts.push(React__default["default"].createElement("div", null,
|
|
@@ -9108,7 +9127,8 @@ function AddRealEffects(subInfoGroups, skill) {
|
|
|
9108
9127
|
}
|
|
9109
9128
|
if (realEffect.Description != null && realEffect.Description != "") {
|
|
9110
9129
|
texts.push(React__default["default"].createElement("div", null,
|
|
9111
|
-
"Description:
|
|
9130
|
+
"Description:",
|
|
9131
|
+
" ",
|
|
9112
9132
|
React__default["default"].createElement(BlueColoredTextDangerous, { text: realEffect.Description, customClasses: "wordbreakword" })));
|
|
9113
9133
|
}
|
|
9114
9134
|
subInfoGroup.texts = texts;
|
|
@@ -9131,42 +9151,48 @@ function AddRealCastConds(subInfoGroups, skill) {
|
|
|
9131
9151
|
subInfoGroup.texts.push(React__default["default"].createElement("div", null,
|
|
9132
9152
|
"Stance: ",
|
|
9133
9153
|
React__default["default"].createElement(BlueColoredText$1, { text: realCastCondition.Stance })), React__default["default"].createElement("div", null,
|
|
9134
|
-
"Required weapon:
|
|
9154
|
+
"Required weapon:",
|
|
9155
|
+
" ",
|
|
9135
9156
|
React__default["default"].createElement(BlueColoredText$1, { text: realCastCondition.RequiredWeaponType })), React__default["default"].createElement("div", null,
|
|
9136
9157
|
"Move type: ",
|
|
9137
9158
|
React__default["default"].createElement(BlueColoredText$1, { text: realCastCondition.MoveType })));
|
|
9138
|
-
if (realCastCondition.PrevComboIds != null &&
|
|
9159
|
+
if (realCastCondition.PrevComboIds != null &&
|
|
9160
|
+
realCastCondition.PrevComboIds.length > 0) {
|
|
9139
9161
|
var subInfoGroup2 = {
|
|
9140
9162
|
title: "Prev combo Ids",
|
|
9141
|
-
texts: []
|
|
9163
|
+
texts: [],
|
|
9142
9164
|
};
|
|
9143
9165
|
realCastCondition.PrevComboIds.forEach(function (prevComboId) {
|
|
9144
9166
|
subInfoGroup2.texts.push(prevComboId);
|
|
9145
9167
|
});
|
|
9146
9168
|
}
|
|
9147
|
-
if (realCastCondition.SuccessRecycles != null &&
|
|
9169
|
+
if (realCastCondition.SuccessRecycles != null &&
|
|
9170
|
+
realCastCondition.SuccessRecycles.length > 0) {
|
|
9148
9171
|
var subInfoGroup3 = {
|
|
9149
9172
|
title: "SuccessRecycles",
|
|
9150
|
-
texts: []
|
|
9173
|
+
texts: [],
|
|
9151
9174
|
};
|
|
9152
9175
|
realCastCondition.SuccessRecycles.forEach(function (recycle) {
|
|
9153
9176
|
subInfoGroup3.texts.push(React__default["default"].createElement("div", null,
|
|
9154
9177
|
"Group: ",
|
|
9155
9178
|
React__default["default"].createElement(BlueColoredText$1, { text: recycle.Item1 }),
|
|
9156
|
-
", Id:
|
|
9179
|
+
", Id:",
|
|
9180
|
+
" ",
|
|
9157
9181
|
React__default["default"].createElement(BlueColoredText$1, { text: recycle.Item2.toString() })));
|
|
9158
9182
|
});
|
|
9159
9183
|
}
|
|
9160
|
-
if (realCastCondition.FailRecycles != null &&
|
|
9184
|
+
if (realCastCondition.FailRecycles != null &&
|
|
9185
|
+
realCastCondition.FailRecycles.length > 0) {
|
|
9161
9186
|
var subInfoGroup4 = {
|
|
9162
9187
|
title: "FailRecycles",
|
|
9163
|
-
texts: []
|
|
9188
|
+
texts: [],
|
|
9164
9189
|
};
|
|
9165
9190
|
realCastCondition.FailRecycles.forEach(function (recycle) {
|
|
9166
9191
|
subInfoGroup4.texts.push(React__default["default"].createElement("div", null,
|
|
9167
9192
|
"Group: ",
|
|
9168
9193
|
React__default["default"].createElement(BlueColoredText$1, { text: recycle.Item1 }),
|
|
9169
|
-
", Id:
|
|
9194
|
+
", Id:",
|
|
9195
|
+
" ",
|
|
9170
9196
|
React__default["default"].createElement(BlueColoredText$1, { text: recycle.Item2.toString() })));
|
|
9171
9197
|
});
|
|
9172
9198
|
}
|
|
@@ -9200,15 +9226,15 @@ function BlueColoredTextDangerous(_a) {
|
|
|
9200
9226
|
}
|
|
9201
9227
|
function BlueColoredText$1(_a) {
|
|
9202
9228
|
var text = _a.text, _b = _a.customClasses, customClasses = _b === void 0 ? "" : _b;
|
|
9203
|
-
return
|
|
9229
|
+
return React__default["default"].createElement("span", { className: "tooltipArg " + customClasses }, text);
|
|
9204
9230
|
}
|
|
9205
9231
|
function RedColoredText(_a) {
|
|
9206
9232
|
var text = _a.text;
|
|
9207
|
-
return
|
|
9233
|
+
return React__default["default"].createElement("span", { className: "TooltipBase_bns_upgradeRed_color" }, text);
|
|
9208
9234
|
}
|
|
9209
9235
|
function GreenColoredText(_a) {
|
|
9210
9236
|
var text = _a.text;
|
|
9211
|
-
return
|
|
9237
|
+
return React__default["default"].createElement("span", { className: "00008130.UI.Label_Green03_12" }, text);
|
|
9212
9238
|
}
|
|
9213
9239
|
|
|
9214
9240
|
var css_248z$5 = ".TooltipBase_bns_upgradeRed_color {\n color: #FF2818;\n}\n\n.TooltipBase_bns_downgradeBlue_color {\n color: #28A9F0;\n}\n\n.tippy-box {\n max-width: none !important;\n background-color: transparent !important;\n box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;\n}\n.tippy-box:hover {\n box-shadow: rgba(0, 0, 0, 0.8) 0px 20px 60px 0px !important;\n}\n\n.tippy-content {\n padding: 0 !important;\n}\n\n.tippy-box[data-theme~=grade1][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #9B9B9B !important;\n}\n\n.tippy-box[data-theme~=grade1][data-placement^=top] .tippy-arrow::before {\n border-top-color: #9B9B9B !important;\n}\n\n.tippy-box[data-theme~=grade1][data-placement^=left] .tippy-arrow::before {\n border-left-color: #9B9B9B !important;\n}\n\n.tippy-box[data-theme~=grade1][data-placement^=right] .tippy-arrow::before {\n border-right-color: #9B9B9B !important;\n}\n\n.tippy-box[data-theme~=grade2][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #ffffff !important;\n}\n\n.tippy-box[data-theme~=grade2][data-placement^=top] .tippy-arrow::before {\n border-top-color: #ffffff !important;\n}\n\n.tippy-box[data-theme~=grade2][data-placement^=left] .tippy-arrow::before {\n border-left-color: #ffffff !important;\n}\n\n.tippy-box[data-theme~=grade2][data-placement^=right] .tippy-arrow::before {\n border-right-color: #ffffff !important;\n}\n\n.tippy-box[data-theme~=grade3][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #57FF78 !important;\n}\n\n.tippy-box[data-theme~=grade3][data-placement^=top] .tippy-arrow::before {\n border-top-color: #57FF78 !important;\n}\n\n.tippy-box[data-theme~=grade3][data-placement^=left] .tippy-arrow::before {\n border-left-color: #57FF78 !important;\n}\n\n.tippy-box[data-theme~=grade3][data-placement^=right] .tippy-arrow::before {\n border-right-color: #57FF78 !important;\n}\n\n.tippy-box[data-theme~=grade4][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #00D9FF !important;\n}\n\n.tippy-box[data-theme~=grade4][data-placement^=top] .tippy-arrow::before {\n border-top-color: #00D9FF !important;\n}\n\n.tippy-box[data-theme~=grade4][data-placement^=left] .tippy-arrow::before {\n border-left-color: #00D9FF !important;\n}\n\n.tippy-box[data-theme~=grade4][data-placement^=right] .tippy-arrow::before {\n border-right-color: #00D9FF !important;\n}\n\n.tippy-box[data-theme~=grade5][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #D836FF !important;\n}\n\n.tippy-box[data-theme~=grade5][data-placement^=top] .tippy-arrow::before {\n border-top-color: #D836FF !important;\n}\n\n.tippy-box[data-theme~=grade5][data-placement^=left] .tippy-arrow::before {\n border-left-color: #D836FF !important;\n}\n\n.tippy-box[data-theme~=grade5][data-placement^=right] .tippy-arrow::before {\n border-right-color: #D836FF !important;\n}\n\n.tippy-box[data-theme~=grade6][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #FF9700 !important;\n}\n\n.tippy-box[data-theme~=grade6][data-placement^=top] .tippy-arrow::before {\n border-top-color: #FF9700 !important;\n}\n\n.tippy-box[data-theme~=grade6][data-placement^=left] .tippy-arrow::before {\n border-left-color: #FF9700 !important;\n}\n\n.tippy-box[data-theme~=grade6][data-placement^=right] .tippy-arrow::before {\n border-right-color: #FF9700 !important;\n}\n\n.tippy-box[data-theme~=grade7][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #FF7802 !important;\n}\n\n.tippy-box[data-theme~=grade7][data-placement^=top] .tippy-arrow::before {\n border-top-color: #FF7802 !important;\n}\n\n.tippy-box[data-theme~=grade7][data-placement^=left] .tippy-arrow::before {\n border-left-color: #FF7802 !important;\n}\n\n.tippy-box[data-theme~=grade7][data-placement^=right] .tippy-arrow::before {\n border-right-color: #FF7802 !important;\n}\n\n.tippy-box[data-theme~=grade8][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #FF0085 !important;\n}\n\n.tippy-box[data-theme~=grade8][data-placement^=top] .tippy-arrow::before {\n border-top-color: #FF0085 !important;\n}\n\n.tippy-box[data-theme~=grade8][data-placement^=left] .tippy-arrow::before {\n border-left-color: #FF0085 !important;\n}\n\n.tippy-box[data-theme~=grade8][data-placement^=right] .tippy-arrow::before {\n border-right-color: #FF0085 !important;\n}\n\n.tippy-box[data-theme~=grade9][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #FFED23 !important;\n}\n\n.tippy-box[data-theme~=grade9][data-placement^=top] .tippy-arrow::before {\n border-top-color: #FFED23 !important;\n}\n\n.tippy-box[data-theme~=grade9][data-placement^=left] .tippy-arrow::before {\n border-left-color: #FFED23 !important;\n}\n\n.tippy-box[data-theme~=grade9][data-placement^=right] .tippy-arrow::before {\n border-right-color: #FFED23 !important;\n}";
|
|
@@ -9585,6 +9611,7 @@ var EffectTooltipWrapper = function (_a) {
|
|
|
9585
9611
|
exports.EffectTooltip = EffectTooltip;
|
|
9586
9612
|
exports.EffectTooltipWrapper = EffectTooltipWrapper;
|
|
9587
9613
|
exports.GetCooldownString = GetCooldownString;
|
|
9614
|
+
exports.ItemDownloadClient = ItemDownloadClient;
|
|
9588
9615
|
exports.ItemImproveEffectsTooltip = ItemImproveEffectsTooltip;
|
|
9589
9616
|
exports.ItemImproveEffectsTooltipWrapper = ItemImproveEffectsTooltipWrapper;
|
|
9590
9617
|
exports.ItemImproveSelectStageTooltip = ItemImproveSelectStageTooltip;
|