bnstooltips 1.8.7 → 1.9.0

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.
@@ -14,6 +14,23 @@ export interface Skill {
14
14
  EqualizedPvp: string;
15
15
  Pvp: string;
16
16
  BreakValue: string;
17
+ RealCastCondition: RealCastCondition;
18
+ }
19
+ export interface RealCastCondition {
20
+ Stance: string;
21
+ RequiredWeaponType: string;
22
+ UnnecessaryAcquired: boolean;
23
+ MoveType: string;
24
+ PrevComboIds: number[];
25
+ NoFlagsAndFilters: boolean;
26
+ SuccessRecycles: {
27
+ item1: string;
28
+ item2: number;
29
+ }[];
30
+ FailRecycles: {
31
+ item1: string;
32
+ item2: number;
33
+ }[];
17
34
  }
18
35
  export interface Tooltip {
19
36
  Main1: TooltipItem[];
package/build/index.es.js CHANGED
@@ -6958,6 +6958,7 @@ function SkillTooltip(_a) {
6958
6958
  AddStances(tooltipBaseProps.subInfoGroups, skill);
6959
6959
  if (debug) {
6960
6960
  AddIds(tooltipBaseProps.subInfoGroups, skill);
6961
+ AddRealCastConds(tooltipBaseProps.subInfoGroups, skill);
6961
6962
  }
6962
6963
  }
6963
6964
  return React.createElement(TooltipBase, __assign({}, tooltipBaseProps));
@@ -7042,6 +7043,71 @@ function AddIds(subInfoGroups, skill) {
7042
7043
  "Variation: ",
7043
7044
  skill.Variation)],
7044
7045
  });
7046
+ }
7047
+ function AddRealCastConds(subInfoGroups, skill) {
7048
+ var realCastCondition = skill.RealCastCondition;
7049
+ if (realCastCondition == undefined || realCastCondition == null)
7050
+ return;
7051
+ var subInfoGroup = {
7052
+ title: "Real cast conditions",
7053
+ texts: [
7054
+ React.createElement("div", null,
7055
+ "Stance: ",
7056
+ React.createElement(ColoredText, { text: realCastCondition.Stance })),
7057
+ React.createElement("div", null,
7058
+ "Required Weapon: ",
7059
+ React.createElement(ColoredText, { text: realCastCondition.RequiredWeaponType })),
7060
+ React.createElement("div", null,
7061
+ "MoveType: ",
7062
+ React.createElement(ColoredText, { text: realCastCondition.MoveType }))
7063
+ ],
7064
+ };
7065
+ if (realCastCondition.PrevComboIds != null && realCastCondition.PrevComboIds.length > 0) {
7066
+ var subInfoGroup2 = {
7067
+ title: "Prev combo Ids",
7068
+ texts: []
7069
+ };
7070
+ realCastCondition.PrevComboIds.forEach(function (prevComboId) {
7071
+ subInfoGroup2.texts.push(prevComboId);
7072
+ });
7073
+ }
7074
+ if (realCastCondition.SuccessRecycles != null && realCastCondition.SuccessRecycles.length > 0) {
7075
+ var subInfoGroup3 = {
7076
+ title: "SuccessRecycles",
7077
+ texts: []
7078
+ };
7079
+ realCastCondition.SuccessRecycles.forEach(function (recycle) {
7080
+ subInfoGroup3.texts.push("Group: " + recycle.item1 + ", Id: " + recycle.item2);
7081
+ });
7082
+ }
7083
+ if (realCastCondition.FailRecycles != null && realCastCondition.FailRecycles.length > 0) {
7084
+ var subInfoGroup4 = {
7085
+ title: "FailRecycles",
7086
+ texts: []
7087
+ };
7088
+ realCastCondition.FailRecycles.forEach(function (recycle) {
7089
+ subInfoGroup4.texts.push("Group: " + recycle.item1 + ", Id: " + recycle.item2);
7090
+ });
7091
+ }
7092
+ if (realCastCondition.UnnecessaryAcquired) {
7093
+ subInfoGroup.texts.push(React.createElement("div", null,
7094
+ React.createElement(ColoredText, { text: "UnnecessaryAcquired" })));
7095
+ }
7096
+ if (realCastCondition.NoFlagsAndFilters) {
7097
+ subInfoGroup.texts.push(React.createElement("div", null,
7098
+ React.createElement(ColoredText, { text: "NoFlagsAndFilters" })));
7099
+ }
7100
+ subInfoGroups.push(subInfoGroup);
7101
+ if (subInfoGroup2 != null)
7102
+ subInfoGroups.push(subInfoGroup2);
7103
+ if (subInfoGroup3 != null)
7104
+ subInfoGroups.push(subInfoGroup3);
7105
+ if (subInfoGroup4 != null)
7106
+ subInfoGroups.push(subInfoGroup4);
7107
+ }
7108
+ function ColoredText(_a) {
7109
+ var text = _a.text;
7110
+ return (React.createElement("span", { className: "tooltipArg" }, text));
7045
7111
  }
7046
7112
 
7047
7113
  var css_248z$3 = ".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 .tippy-box:hover {\n box-shadow: rgba(0, 0, 0, 0.8) 0px 20px 60px 0px !important; }\n\n.tippy-content {\n padding: 0 !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #ff0084 !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #ff0084 !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #ff0084 !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #ff0084 !important; }\n";