@rpg-engine/long-bow 0.8.104 → 0.8.106
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/dist/long-bow.cjs.development.js +23 -49
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +23 -49
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DailyTasks/DailyRewardsTooltip.tsx +16 -11
- package/src/components/DailyTasks/TaskProgress.tsx +3 -1
- package/src/components/DailyTasks/TaskProgressDetails.tsx +4 -15
- package/src/components/Item/Cards/ItemInfo.tsx +5 -5
- package/src/components/Item/Inventory/ItemSlotQty/ItemSlotQty.tsx +1 -1
- package/src/components/ProgressBar.tsx +1 -1
- package/src/components/SkillProgressBar.tsx +5 -5
- package/src/components/Spellbook/Spell.tsx +2 -2
- package/src/components/Store/CartView.tsx +2 -6
- package/src/components/Store/StoreItemRow.tsx +1 -3
package/dist/long-bow.esm.js
CHANGED
|
@@ -28057,7 +28057,7 @@ var ItemSlotQty$1 = function ItemSlotQty(_ref) {
|
|
|
28057
28057
|
maxLines: 1,
|
|
28058
28058
|
maxWidth: "48px"
|
|
28059
28059
|
}, React.createElement(ItemQty, {
|
|
28060
|
-
className: qtyClassName
|
|
28060
|
+
className: qtyClassName
|
|
28061
28061
|
}, Math.round(stackQty * 100) / 100, ' ')));
|
|
28062
28062
|
};
|
|
28063
28063
|
var ItemQtyContainer$1 = /*#__PURE__*/styled.div.withConfig({
|
|
@@ -28510,7 +28510,7 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
28510
28510
|
}, React.createElement("div", {
|
|
28511
28511
|
className: "label"
|
|
28512
28512
|
}, label, ":"), React.createElement("div", {
|
|
28513
|
-
className: "value
|
|
28513
|
+
className: "value " + (isDifference ? isBetter ? 'better' : 'worse' : '')
|
|
28514
28514
|
}, itemStatistic.toString() + " " + (isDifference ? "(" + (statDiff > 0 ? '+' : '') + statDiff + ")" : ''))));
|
|
28515
28515
|
}
|
|
28516
28516
|
}
|
|
@@ -28529,7 +28529,7 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
28529
28529
|
}, React.createElement("div", {
|
|
28530
28530
|
className: "label"
|
|
28531
28531
|
}, label, ":"), React.createElement("div", {
|
|
28532
|
-
className: "value worse
|
|
28532
|
+
className: "value worse"
|
|
28533
28533
|
}, itemToCompareStatistic.toString())));
|
|
28534
28534
|
}
|
|
28535
28535
|
}
|
|
@@ -28570,19 +28570,13 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
28570
28570
|
item: item
|
|
28571
28571
|
}, item.rarity), React.createElement(Type, null, item.subType)), React.createElement(AllowedSlots, null, renderAvaibleSlots())), item.minRequirements && React.createElement(LevelRequirement, null, React.createElement("div", {
|
|
28572
28572
|
className: "title"
|
|
28573
|
-
}, "Requirements:"), React.createElement("div", null, "- Level: ", React.createElement("
|
|
28574
|
-
className: "notranslate"
|
|
28575
|
-
}, (_item$minRequirements3 = item.minRequirements) == null ? void 0 : _item$minRequirements3.level)), skillName && React.createElement("div", null, "- ", skillName.charAt(0).toUpperCase() + skillName.slice(1), ":", ' ', React.createElement("span", {
|
|
28576
|
-
className: "notranslate"
|
|
28577
|
-
}, (_item$minRequirements4 = item.minRequirements) == null ? void 0 : (_item$minRequirements5 = _item$minRequirements4.skill) == null ? void 0 : _item$minRequirements5.level))), renderStatistics(), renderEntityEffects(), item.usableEffectDescription && React.createElement(Statistic, {
|
|
28573
|
+
}, "Requirements:"), React.createElement("div", null, "- Level: ", (_item$minRequirements3 = item.minRequirements) == null ? void 0 : _item$minRequirements3.level), skillName && React.createElement("div", null, "- ", skillName.charAt(0).toUpperCase() + skillName.slice(1), ":", ' ', (_item$minRequirements4 = item.minRequirements) == null ? void 0 : (_item$minRequirements5 = _item$minRequirements4.skill) == null ? void 0 : _item$minRequirements5.level)), renderStatistics(), renderEntityEffects(), item.usableEffectDescription && React.createElement(Statistic, {
|
|
28578
28574
|
"$isSpecial": true
|
|
28579
28575
|
}, item.usableEffectDescription), item.equippedBuffDescription && React.createElement(Statistic, {
|
|
28580
28576
|
"$isSpecial": true
|
|
28581
28577
|
}, item.equippedBuffDescription), item.isTwoHanded && React.createElement(Statistic, {
|
|
28582
28578
|
"$isSpecial": true
|
|
28583
|
-
}, "Two handed"), React.createElement(Description, null, item.description), item.maxStackSize && item.maxStackSize !== 1 && React.createElement(StackInfo,
|
|
28584
|
-
className: "notranslate"
|
|
28585
|
-
}, "x", Math.round(((_item$stackQty = item.stackQty) != null ? _item$stackQty : 1) * 100) / 100, "(", item.maxStackSize, ")"), renderMissingStatistic().length > 0 && React.createElement(MissingStatistics, null, React.createElement(Statistic, null, "Equipped Diff"), itemToCompare && renderMissingStatistic()));
|
|
28579
|
+
}, "Two handed"), React.createElement(Description, null, item.description), item.maxStackSize && item.maxStackSize !== 1 && React.createElement(StackInfo, null, "x", Math.round(((_item$stackQty = item.stackQty) != null ? _item$stackQty : 1) * 100) / 100, "(", item.maxStackSize, ")"), renderMissingStatistic().length > 0 && React.createElement(MissingStatistics, null, React.createElement(Statistic, null, "Equipped Diff"), itemToCompare && renderMissingStatistic()));
|
|
28586
28580
|
};
|
|
28587
28581
|
var Container$d = /*#__PURE__*/styled.div.withConfig({
|
|
28588
28582
|
displayName: "ItemInfo__Container",
|
|
@@ -29520,7 +29514,7 @@ var DailyRewardsTooltip = function DailyRewardsTooltip(_ref) {
|
|
|
29520
29514
|
};
|
|
29521
29515
|
return React.createElement(TooltipContainer$1, null, React.createElement(CollapsibleHeader, {
|
|
29522
29516
|
onClick: toggleExpand
|
|
29523
|
-
}, React.createElement(HeaderText, null, "Rewards"), React.createElement(ExpandIcon, null, isExpanded ? '▼' : '▶')), isExpanded && React.createElement(CollapsibleContent, null, React.createElement(RewardsList, {
|
|
29517
|
+
}, React.createElement(HeaderText, null, "Rewards?"), React.createElement(ExpandIcon, null, isExpanded ? '▼' : '▶')), isExpanded && React.createElement(CollapsibleContent, null, React.createElement(RewardsList, {
|
|
29524
29518
|
isMobile: isMobile,
|
|
29525
29519
|
rewardCount: sortedRewards.length
|
|
29526
29520
|
}, sortedRewards.map(function (reward, index) {
|
|
@@ -29577,15 +29571,15 @@ var CollapsibleContent = /*#__PURE__*/styled.div.withConfig({
|
|
|
29577
29571
|
var RewardItem = /*#__PURE__*/styled.div.withConfig({
|
|
29578
29572
|
displayName: "DailyRewardsTooltip__RewardItem",
|
|
29579
29573
|
componentId: "sc-wxzcu4-6"
|
|
29580
|
-
})(["display:flex;align-items:center;gap:
|
|
29574
|
+
})(["display:flex;align-items:center;gap:4px;width:100%;padding:2px;min-height:22px;"]);
|
|
29581
29575
|
var RewardIcon = /*#__PURE__*/styled.div.withConfig({
|
|
29582
29576
|
displayName: "DailyRewardsTooltip__RewardIcon",
|
|
29583
29577
|
componentId: "sc-wxzcu4-7"
|
|
29584
|
-
})(["flex-shrink:0;width:20px;height:20px;display:flex;align-items:
|
|
29578
|
+
})(["flex-shrink:0;width:20px;height:20px;display:flex;align-items:flex-start;justify-content:flex-start;font-style:normal;margin-right:4px;*{font-style:normal !important;}position:relative;left:-0.5rem;top:-0.4rem;"]);
|
|
29585
29579
|
var RewardContent = /*#__PURE__*/styled.div.withConfig({
|
|
29586
29580
|
displayName: "DailyRewardsTooltip__RewardContent",
|
|
29587
29581
|
componentId: "sc-wxzcu4-8"
|
|
29588
|
-
})(["display:flex;align-items:center;
|
|
29582
|
+
})(["display:flex;justify-content:space-between;align-items:center;flex:1;min-width:0;"]);
|
|
29589
29583
|
var RewardLabel = /*#__PURE__*/styled.span.withConfig({
|
|
29590
29584
|
displayName: "DailyRewardsTooltip__RewardLabel",
|
|
29591
29585
|
componentId: "sc-wxzcu4-9"
|
|
@@ -29595,8 +29589,8 @@ var RewardLabel = /*#__PURE__*/styled.span.withConfig({
|
|
|
29595
29589
|
var RewardValue = /*#__PURE__*/styled.span.withConfig({
|
|
29596
29590
|
displayName: "DailyRewardsTooltip__RewardValue",
|
|
29597
29591
|
componentId: "sc-wxzcu4-10"
|
|
29598
|
-
})(["color:", ";font-size:", ";line-height:1.2;display:flex;align-items:center;font-weight:600;flex-shrink:0;"], uiColors.green, function (props) {
|
|
29599
|
-
return props.isMobile ? '0.
|
|
29592
|
+
})(["color:", ";font-size:", ";line-height:1.2;display:flex;align-items:center;font-weight:600;flex-shrink:0;margin-left:8px;"], uiColors.green, function (props) {
|
|
29593
|
+
return props.isMobile ? '0.6rem' : '0.65rem';
|
|
29600
29594
|
});
|
|
29601
29595
|
|
|
29602
29596
|
var ReadOnlyCheckItem = function ReadOnlyCheckItem(_ref) {
|
|
@@ -29687,17 +29681,15 @@ var TaskProgressDetails = function TaskProgressDetails(_ref) {
|
|
|
29687
29681
|
var ProgressList = /*#__PURE__*/styled.div.withConfig({
|
|
29688
29682
|
displayName: "TaskProgressDetails__ProgressList",
|
|
29689
29683
|
componentId: "sc-hm6sp1-0"
|
|
29690
|
-
})(["display:flex;flex-direction:column;gap:
|
|
29684
|
+
})(["display:flex;flex-direction:column;gap:8px;"]);
|
|
29691
29685
|
var ProgressItem = /*#__PURE__*/styled.div.withConfig({
|
|
29692
29686
|
displayName: "TaskProgressDetails__ProgressItem",
|
|
29693
29687
|
componentId: "sc-hm6sp1-1"
|
|
29694
|
-
})(["display:flex;
|
|
29695
|
-
var ProgressCount = /*#__PURE__*/styled.span.
|
|
29696
|
-
className: 'notranslate'
|
|
29697
|
-
}).withConfig({
|
|
29688
|
+
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
29689
|
+
var ProgressCount = /*#__PURE__*/styled.span.withConfig({
|
|
29698
29690
|
displayName: "TaskProgressDetails__ProgressCount",
|
|
29699
29691
|
componentId: "sc-hm6sp1-2"
|
|
29700
|
-
})(["color:", " !important;
|
|
29692
|
+
})(["color:", " !important;"], uiColors.white);
|
|
29701
29693
|
var CheckItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29702
29694
|
displayName: "TaskProgressDetails__CheckItemWrapper",
|
|
29703
29695
|
componentId: "sc-hm6sp1-3"
|
|
@@ -36073,9 +36065,7 @@ var ProgressBar$1 = function ProgressBar(_ref) {
|
|
|
36073
36065
|
minWidth: minWidth,
|
|
36074
36066
|
style: style,
|
|
36075
36067
|
mobileScale: mobileScale
|
|
36076
|
-
}, displayText && React.createElement(TextOverlay$1, null, React.createElement(ProgressBarText, {
|
|
36077
|
-
className: "notranslate"
|
|
36078
|
-
}, displayValue, "/", displayMax)), React.createElement("div", {
|
|
36068
|
+
}, displayText && React.createElement(TextOverlay$1, null, React.createElement(ProgressBarText, null, displayValue, "/", displayMax)), React.createElement("div", {
|
|
36079
36069
|
className: " rpgui-progress-track"
|
|
36080
36070
|
}, React.createElement("div", {
|
|
36081
36071
|
className: "rpgui-progress-fill " + color + " ",
|
|
@@ -36600,13 +36590,7 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
36600
36590
|
var result = level * (buffAndDebuff / 100);
|
|
36601
36591
|
return result > 0 ? "+" + result.toFixed(2) : "" + result.toFixed(2);
|
|
36602
36592
|
};
|
|
36603
|
-
return React.createElement(React.Fragment, null, React.createElement(ProgressTitle, null, buffAndDebuff !== undefined && React.createElement(React.Fragment, null, buffAndDebuff > 0 ? React.createElement(BuffAndDebuffContainer, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameBuff, null, skillName), React.createElement(TitleNameBuff, {
|
|
36604
|
-
className: "notranslate"
|
|
36605
|
-
}, "lv ", effectiveLevel, " (", skillsBuffsCalc(effectiveLevel, buffAndDebuff), ")")), React.createElement(TitleNameBuffContainer, null, React.createElement(TitleNameBuff, null, "(+", formatBuffAndDebuff(buffAndDebuff), "%)"))) : buffAndDebuff < 0 ? React.createElement(React.Fragment, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameDebuff, null, skillName), React.createElement(TitleNameDebuff, {
|
|
36606
|
-
className: "notranslate"
|
|
36607
|
-
}, "lv ", effectiveLevel, " (", skillsBuffsCalc(effectiveLevel, buffAndDebuff), ")")), React.createElement("div", null, React.createElement(TitleNameDebuff, null, "(", formatBuffAndDebuff(buffAndDebuff), "%)"))) : React.createElement(TitleName, null, skillName)), !buffAndDebuff && React.createElement(TitleNameContainer, null, React.createElement(TitleName, null, skillName), React.createElement(ValueDisplay, {
|
|
36608
|
-
className: "notranslate"
|
|
36609
|
-
}, "lv ", effectiveLevel))), React.createElement(ProgressBody, null, React.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React.createElement(SpriteContainer$4, null, React.createElement(ErrorBoundary, null, React.createElement(SpriteFromAtlas, {
|
|
36593
|
+
return React.createElement(React.Fragment, null, React.createElement(ProgressTitle, null, buffAndDebuff !== undefined && React.createElement(React.Fragment, null, buffAndDebuff > 0 ? React.createElement(BuffAndDebuffContainer, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameBuff, null, skillName), React.createElement(TitleNameBuff, null, "lv ", effectiveLevel, " (", skillsBuffsCalc(effectiveLevel, buffAndDebuff), ")")), React.createElement(TitleNameBuffContainer, null, React.createElement(TitleNameBuff, null, "(+", formatBuffAndDebuff(buffAndDebuff), "%)"))) : buffAndDebuff < 0 ? React.createElement(React.Fragment, null, React.createElement(TitleNameContainer, null, React.createElement(TitleNameDebuff, null, skillName), React.createElement(TitleNameDebuff, null, "lv ", effectiveLevel, " (", skillsBuffsCalc(effectiveLevel, buffAndDebuff), ")")), React.createElement("div", null, React.createElement(TitleNameDebuff, null, "(", formatBuffAndDebuff(buffAndDebuff), "%)"))) : React.createElement(TitleName, null, skillName)), !buffAndDebuff && React.createElement(TitleNameContainer, null, React.createElement(TitleName, null, skillName), React.createElement(ValueDisplay, null, "lv ", effectiveLevel))), React.createElement(ProgressBody, null, React.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React.createElement(SpriteContainer$4, null, React.createElement(ErrorBoundary, null, React.createElement(SpriteFromAtlas, {
|
|
36610
36594
|
atlasIMG: atlasIMG,
|
|
36611
36595
|
atlasJSON: atlasJSON,
|
|
36612
36596
|
spriteKey: texturePath,
|
|
@@ -36616,11 +36600,7 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
36616
36600
|
}))) : React.createElement(React.Fragment, null)), React.createElement(ProgressBarWrapper, null, React.createElement(SimpleProgressBar, {
|
|
36617
36601
|
value: progress,
|
|
36618
36602
|
bgColor: bgColor
|
|
36619
|
-
}), React.createElement(Tooltip, null, React.createElement("
|
|
36620
|
-
className: "notranslate"
|
|
36621
|
-
}, skillKey ? 'SP' : 'XP', ": ", currentSkillPoints)))), showSkillPoints && React.createElement(SkillDisplayContainer, null, React.createElement(SkillPointsDisplay, {
|
|
36622
|
-
className: "notranslate"
|
|
36623
|
-
}, progress.toFixed(2), "%")));
|
|
36603
|
+
}), React.createElement(Tooltip, null, skillKey ? 'SP' : 'XP', ": ", currentSkillPoints))), showSkillPoints && React.createElement(SkillDisplayContainer, null, React.createElement(SkillPointsDisplay, null, progress.toFixed(2), "%")));
|
|
36624
36604
|
};
|
|
36625
36605
|
var ProgressBarWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
36626
36606
|
displayName: "SkillProgressBar__ProgressBarWrapper",
|
|
@@ -37227,7 +37207,7 @@ var Spell = function Spell(_ref) {
|
|
|
37227
37207
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
37228
37208
|
className: "spell"
|
|
37229
37209
|
}, disabled && React.createElement(Overlay$3, null, characterSkillLevel < requiredLevel ? "Low " + getSkillName(attribute || 'magic level') + " level" : manaCost > charMana && 'No mana'), React.createElement(SpellImage, null, activeCooldown && activeCooldown > 0 ? React.createElement("span", {
|
|
37230
|
-
className: "cooldown
|
|
37210
|
+
className: "cooldown"
|
|
37231
37211
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React.createElement(SpriteFromAtlas, {
|
|
37232
37212
|
atlasIMG: atlasIMG,
|
|
37233
37213
|
atlasJSON: atlasJSON,
|
|
@@ -37238,7 +37218,7 @@ var Spell = function Spell(_ref) {
|
|
|
37238
37218
|
})), React.createElement(Info, null, React.createElement(Title$c, null, React.createElement("span", null, name), React.createElement("span", {
|
|
37239
37219
|
className: "spell"
|
|
37240
37220
|
}, "(", magicWords, ")")), React.createElement(Description$5, null, description)), React.createElement(Divider$1, null), React.createElement(Cost, null, React.createElement("span", null, "Mana cost:"), React.createElement("span", {
|
|
37241
|
-
className: "mana
|
|
37221
|
+
className: "mana"
|
|
37242
37222
|
}, manaCost))));
|
|
37243
37223
|
};
|
|
37244
37224
|
var Container$I = /*#__PURE__*/styled.button.withConfig({
|
|
@@ -57942,9 +57922,7 @@ var ItemName = /*#__PURE__*/styled.div.withConfig({
|
|
|
57942
57922
|
displayName: "CartView__ItemName",
|
|
57943
57923
|
componentId: "sc-ydtyl1-9"
|
|
57944
57924
|
})(["font-family:'Press Start 2P',cursive;font-size:0.875rem;color:#ffffff;"]);
|
|
57945
|
-
var ItemInfo$1 = /*#__PURE__*/styled.div.
|
|
57946
|
-
className: 'notranslate'
|
|
57947
|
-
}).withConfig({
|
|
57925
|
+
var ItemInfo$1 = /*#__PURE__*/styled.div.withConfig({
|
|
57948
57926
|
displayName: "CartView__ItemInfo",
|
|
57949
57927
|
componentId: "sc-ydtyl1-10"
|
|
57950
57928
|
})(["display:flex;align-items:center;gap:0.5rem;font-family:'Press Start 2P',cursive;font-size:0.75rem;color:#fef08a;"]);
|
|
@@ -57956,9 +57934,7 @@ var TotalInfo = /*#__PURE__*/styled.div.withConfig({
|
|
|
57956
57934
|
displayName: "CartView__TotalInfo",
|
|
57957
57935
|
componentId: "sc-ydtyl1-12"
|
|
57958
57936
|
})(["display:flex;flex-direction:column;gap:0.5rem;"]);
|
|
57959
|
-
var TotalRow = /*#__PURE__*/styled.div.
|
|
57960
|
-
className: 'notranslate'
|
|
57961
|
-
}).withConfig({
|
|
57937
|
+
var TotalRow = /*#__PURE__*/styled.div.withConfig({
|
|
57962
57938
|
displayName: "CartView__TotalRow",
|
|
57963
57939
|
componentId: "sc-ydtyl1-13"
|
|
57964
57940
|
})(["display:flex;align-items:center;justify-content:space-between;gap:1rem;font-family:'Press Start 2P',cursive;font-size:1rem;color:#ffffff;span:last-child{color:#fef08a;}"]);
|
|
@@ -58605,9 +58581,7 @@ var ItemName$2 = /*#__PURE__*/styled.div.withConfig({
|
|
|
58605
58581
|
displayName: "StoreItemRow__ItemName",
|
|
58606
58582
|
componentId: "sc-ptotuo-3"
|
|
58607
58583
|
})(["font-family:'Press Start 2P',cursive;font-size:0.75rem;color:#ffffff;"]);
|
|
58608
|
-
var ItemPrice$1 = /*#__PURE__*/styled.div.
|
|
58609
|
-
className: 'notranslate'
|
|
58610
|
-
}).withConfig({
|
|
58584
|
+
var ItemPrice$1 = /*#__PURE__*/styled.div.withConfig({
|
|
58611
58585
|
displayName: "StoreItemRow__ItemPrice",
|
|
58612
58586
|
componentId: "sc-ptotuo-4"
|
|
58613
58587
|
})(["font-family:'Press Start 2P',cursive;font-size:0.625rem;color:#fef08a;"]);
|