bnstooltips 1.8.4 → 1.8.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 +10 -5
- package/build/index.es.js.map +1 -1
- package/build/index.js +10 -5
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -5674,7 +5674,7 @@ var ItemImproveEffectsTooltipWrapper = function (_a) {
|
|
|
5674
5674
|
};
|
|
5675
5675
|
|
|
5676
5676
|
function PrevCurNext(_a) {
|
|
5677
|
-
var item = _a.item, client = _a.client, region = _a.region, nextItem = _a.nextItem, prevItem = _a.prevItem, steps = _a.steps
|
|
5677
|
+
var item = _a.item, client = _a.client, region = _a.region, nextItem = _a.nextItem, prevItem = _a.prevItem, steps = _a.steps, allPossibleUpgrades = _a.allPossibleUpgrades, SetCustomStage = _a.SetCustomStage, NavigateTo = _a.NavigateTo;
|
|
5678
5678
|
return (React.createElement("div", { className: "ItemImproveTooltip_PrevCurNext" },
|
|
5679
5679
|
React.createElement("div", { className: "ItemImproveTooltip_PrevCurNext_container" },
|
|
5680
5680
|
React.createElement("div", { className: "ItemImproveTooltip_PrevCurNext_container_itemChild" }, prevItem != null ?
|
|
@@ -5706,7 +5706,12 @@ function PrevCurNext(_a) {
|
|
|
5706
5706
|
React.createElement("div", { style: { cursor: "default" } },
|
|
5707
5707
|
React.createElement(ItemImproveEffectsTooltipWrapper, { effectsForName: GetUpgradeEffects(item, steps, nextItem) },
|
|
5708
5708
|
React.createElement("span", { style: { fontSize: 16 }, className: "00008130.UI.Label_Green03_12 material-symbols-outlined" }, "help")))
|
|
5709
|
-
: null
|
|
5709
|
+
: null,
|
|
5710
|
+
React.createElement(ItemImproveSelectStageTooltipWrapper, { trigger: "click", interactive: true, items: allPossibleUpgrades, onClick: function (item) {
|
|
5711
|
+
SetCustomStage(item);
|
|
5712
|
+
} },
|
|
5713
|
+
React.createElement("div", { className: "ItemImproveTooltip_PrevCurNext_container_itemChildExtra_container_arrow" },
|
|
5714
|
+
React.createElement("span", { style: { fontSize: 32 }, className: "material-symbols-outlined" }, "keyboard_arrow_down"))))
|
|
5710
5715
|
: null))));
|
|
5711
5716
|
}
|
|
5712
5717
|
function GetUpgradeEffects(item, steps, nextItem) {
|
|
@@ -5834,8 +5839,8 @@ function GetAccumulatedUpgradeCost(item, steps) {
|
|
|
5834
5839
|
result = item.itemImprove.upgradeOptions;
|
|
5835
5840
|
}
|
|
5836
5841
|
else {
|
|
5837
|
-
var mainCost = item.itemImprove.upgradeOptions[0].mainItemCost;
|
|
5838
|
-
var subCosts = item.itemImprove.upgradeOptions[0].subItemCost;
|
|
5842
|
+
var mainCost = structuredClone(item.itemImprove.upgradeOptions[0].mainItemCost);
|
|
5843
|
+
var subCosts = structuredClone(item.itemImprove.upgradeOptions[0].subItemCost);
|
|
5839
5844
|
var moneyCost = item.itemImprove.upgradeOptions[0].moneyCost;
|
|
5840
5845
|
steps.forEach(function (step) {
|
|
5841
5846
|
var option0 = step.itemImprove.upgradeOptions[0];
|
|
@@ -5852,7 +5857,7 @@ function GetAccumulatedUpgradeCost(item, steps) {
|
|
|
5852
5857
|
else {
|
|
5853
5858
|
subCosts.push(mainCost);
|
|
5854
5859
|
}
|
|
5855
|
-
mainCost = option0.mainItemCost;
|
|
5860
|
+
mainCost = structuredClone(option0.mainItemCost);
|
|
5856
5861
|
}
|
|
5857
5862
|
moneyCost += option0.moneyCost;
|
|
5858
5863
|
option0.subItemCost.forEach(function (subItem) {
|