@rpg-engine/long-bow 0.8.103 → 0.8.105
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 +55 -25
- 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 +55 -25
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DailyTasks/DailyRewardsTooltip.tsx +11 -16
- package/src/components/DailyTasks/TaskProgress.tsx +1 -3
- package/src/components/DailyTasks/TaskProgressDetails.tsx +15 -6
- 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 -2
- package/src/components/Store/StoreItemRow.tsx +1 -1
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 + " notranslate"
|
|
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 " + (isDifference ? isBetter ? 'better' : 'worse' : '')
|
|
28513
|
+
className: "value notranslate " + (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 notranslate"
|
|
28533
28533
|
}, itemToCompareStatistic.toString())));
|
|
28534
28534
|
}
|
|
28535
28535
|
}
|
|
@@ -28570,13 +28570,19 @@ 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: ",
|
|
28573
|
+
}, "Requirements:"), React.createElement("div", null, "- Level: ", React.createElement("span", {
|
|
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, {
|
|
28574
28578
|
"$isSpecial": true
|
|
28575
28579
|
}, item.usableEffectDescription), item.equippedBuffDescription && React.createElement(Statistic, {
|
|
28576
28580
|
"$isSpecial": true
|
|
28577
28581
|
}, item.equippedBuffDescription), item.isTwoHanded && React.createElement(Statistic, {
|
|
28578
28582
|
"$isSpecial": true
|
|
28579
|
-
}, "Two handed"), React.createElement(Description, null, item.description), item.maxStackSize && item.maxStackSize !== 1 && React.createElement(StackInfo,
|
|
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()));
|
|
28580
28586
|
};
|
|
28581
28587
|
var Container$d = /*#__PURE__*/styled.div.withConfig({
|
|
28582
28588
|
displayName: "ItemInfo__Container",
|
|
@@ -29514,7 +29520,7 @@ var DailyRewardsTooltip = function DailyRewardsTooltip(_ref) {
|
|
|
29514
29520
|
};
|
|
29515
29521
|
return React.createElement(TooltipContainer$1, null, React.createElement(CollapsibleHeader, {
|
|
29516
29522
|
onClick: toggleExpand
|
|
29517
|
-
}, React.createElement(HeaderText, null, "Rewards
|
|
29523
|
+
}, React.createElement(HeaderText, null, "Rewards"), React.createElement(ExpandIcon, null, isExpanded ? '▼' : '▶')), isExpanded && React.createElement(CollapsibleContent, null, React.createElement(RewardsList, {
|
|
29518
29524
|
isMobile: isMobile,
|
|
29519
29525
|
rewardCount: sortedRewards.length
|
|
29520
29526
|
}, sortedRewards.map(function (reward, index) {
|
|
@@ -29571,15 +29577,15 @@ var CollapsibleContent = /*#__PURE__*/styled.div.withConfig({
|
|
|
29571
29577
|
var RewardItem = /*#__PURE__*/styled.div.withConfig({
|
|
29572
29578
|
displayName: "DailyRewardsTooltip__RewardItem",
|
|
29573
29579
|
componentId: "sc-wxzcu4-6"
|
|
29574
|
-
})(["display:flex;align-items:center;gap:
|
|
29580
|
+
})(["display:flex;align-items:center;gap:6px;width:100%;padding:2px 4px;min-height:24px;background:rgba(0,0,0,0.2);border-radius:3px;"]);
|
|
29575
29581
|
var RewardIcon = /*#__PURE__*/styled.div.withConfig({
|
|
29576
29582
|
displayName: "DailyRewardsTooltip__RewardIcon",
|
|
29577
29583
|
componentId: "sc-wxzcu4-7"
|
|
29578
|
-
})(["flex-shrink:0;width:20px;height:20px;display:flex;align-items:
|
|
29584
|
+
})(["flex-shrink:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-style:normal;*{font-style:normal !important;}"]);
|
|
29579
29585
|
var RewardContent = /*#__PURE__*/styled.div.withConfig({
|
|
29580
29586
|
displayName: "DailyRewardsTooltip__RewardContent",
|
|
29581
29587
|
componentId: "sc-wxzcu4-8"
|
|
29582
|
-
})(["display:flex;
|
|
29588
|
+
})(["display:flex;align-items:center;gap:4px;min-width:0;"]);
|
|
29583
29589
|
var RewardLabel = /*#__PURE__*/styled.span.withConfig({
|
|
29584
29590
|
displayName: "DailyRewardsTooltip__RewardLabel",
|
|
29585
29591
|
componentId: "sc-wxzcu4-9"
|
|
@@ -29589,8 +29595,8 @@ var RewardLabel = /*#__PURE__*/styled.span.withConfig({
|
|
|
29589
29595
|
var RewardValue = /*#__PURE__*/styled.span.withConfig({
|
|
29590
29596
|
displayName: "DailyRewardsTooltip__RewardValue",
|
|
29591
29597
|
componentId: "sc-wxzcu4-10"
|
|
29592
|
-
})(["color:", ";font-size:", ";line-height:1.2;display:flex;align-items:center;font-weight:600;flex-shrink:0;
|
|
29593
|
-
return props.isMobile ? '0.
|
|
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.65rem' : '0.7rem';
|
|
29594
29600
|
});
|
|
29595
29601
|
|
|
29596
29602
|
var ReadOnlyCheckItem = function ReadOnlyCheckItem(_ref) {
|
|
@@ -29638,7 +29644,9 @@ var TaskProgressDetails = function TaskProgressDetails(_ref) {
|
|
|
29638
29644
|
value = _ref2[1];
|
|
29639
29645
|
return React.createElement(ProgressItem, {
|
|
29640
29646
|
key: index
|
|
29641
|
-
}, React.createElement("span", null, formatTaskKey(key), ":"), React.createElement(ProgressCount,
|
|
29647
|
+
}, React.createElement("span", null, formatTaskKey(key), ":"), React.createElement(ProgressCount, {
|
|
29648
|
+
className: "notranslate"
|
|
29649
|
+
}, value, "/", ((_task$requirements$ta = task.requirements.targets.find(function (t) {
|
|
29642
29650
|
return t.key === key;
|
|
29643
29651
|
})) == null ? void 0 : _task$requirements$ta.quantity) || 0));
|
|
29644
29652
|
});
|
|
@@ -29649,7 +29657,9 @@ var TaskProgressDetails = function TaskProgressDetails(_ref) {
|
|
|
29649
29657
|
value = _ref3[1];
|
|
29650
29658
|
return React.createElement(ProgressItem, {
|
|
29651
29659
|
key: index
|
|
29652
|
-
}, React.createElement("span", null, formatTaskKey(key), ":"), React.createElement(ProgressCount,
|
|
29660
|
+
}, React.createElement("span", null, formatTaskKey(key), ":"), React.createElement(ProgressCount, {
|
|
29661
|
+
className: "notranslate"
|
|
29662
|
+
}, value, "/", ((_task$requirements$ta2 = task.requirements.targets.find(function (t) {
|
|
29653
29663
|
return t.key === key;
|
|
29654
29664
|
})) == null ? void 0 : _task$requirements$ta2.quantity) || 0));
|
|
29655
29665
|
});
|
|
@@ -29660,7 +29670,9 @@ var TaskProgressDetails = function TaskProgressDetails(_ref) {
|
|
|
29660
29670
|
value = _ref4[1];
|
|
29661
29671
|
return React.createElement(ProgressItem, {
|
|
29662
29672
|
key: index
|
|
29663
|
-
}, React.createElement("span", null, formatTaskKey(key), ":"), React.createElement(ProgressCount,
|
|
29673
|
+
}, React.createElement("span", null, formatTaskKey(key), ":"), React.createElement(ProgressCount, {
|
|
29674
|
+
className: "notranslate"
|
|
29675
|
+
}, value, "/", ((_task$requirements$ta3 = task.requirements.targets.find(function (t) {
|
|
29664
29676
|
return t.key === key;
|
|
29665
29677
|
})) == null ? void 0 : _task$requirements$ta3.quantity) || 0));
|
|
29666
29678
|
});
|
|
@@ -29681,15 +29693,15 @@ var TaskProgressDetails = function TaskProgressDetails(_ref) {
|
|
|
29681
29693
|
var ProgressList = /*#__PURE__*/styled.div.withConfig({
|
|
29682
29694
|
displayName: "TaskProgressDetails__ProgressList",
|
|
29683
29695
|
componentId: "sc-hm6sp1-0"
|
|
29684
|
-
})(["display:flex;flex-direction:column;gap:
|
|
29696
|
+
})(["display:flex;flex-direction:column;gap:4px;"]);
|
|
29685
29697
|
var ProgressItem = /*#__PURE__*/styled.div.withConfig({
|
|
29686
29698
|
displayName: "TaskProgressDetails__ProgressItem",
|
|
29687
29699
|
componentId: "sc-hm6sp1-1"
|
|
29688
|
-
})(["display:flex;
|
|
29700
|
+
})(["display:flex;align-items:center;gap:6px;background:rgba(0,0,0,0.2);padding:4px 8px;border-radius:3px;span:first-child{color:", ";font-size:0.75rem;}"], uiColors.lightGray);
|
|
29689
29701
|
var ProgressCount = /*#__PURE__*/styled.span.withConfig({
|
|
29690
29702
|
displayName: "TaskProgressDetails__ProgressCount",
|
|
29691
29703
|
componentId: "sc-hm6sp1-2"
|
|
29692
|
-
})(["color:", " !important;"], uiColors.
|
|
29704
|
+
})(["color:", " !important;font-weight:600;"], uiColors.green);
|
|
29693
29705
|
var CheckItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29694
29706
|
displayName: "TaskProgressDetails__CheckItemWrapper",
|
|
29695
29707
|
componentId: "sc-hm6sp1-3"
|
|
@@ -36065,7 +36077,9 @@ var ProgressBar$1 = function ProgressBar(_ref) {
|
|
|
36065
36077
|
minWidth: minWidth,
|
|
36066
36078
|
style: style,
|
|
36067
36079
|
mobileScale: mobileScale
|
|
36068
|
-
}, displayText && React.createElement(TextOverlay$1, null, React.createElement(ProgressBarText,
|
|
36080
|
+
}, displayText && React.createElement(TextOverlay$1, null, React.createElement(ProgressBarText, {
|
|
36081
|
+
className: "notranslate"
|
|
36082
|
+
}, displayValue, "/", displayMax)), React.createElement("div", {
|
|
36069
36083
|
className: " rpgui-progress-track"
|
|
36070
36084
|
}, React.createElement("div", {
|
|
36071
36085
|
className: "rpgui-progress-fill " + color + " ",
|
|
@@ -36590,7 +36604,13 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
36590
36604
|
var result = level * (buffAndDebuff / 100);
|
|
36591
36605
|
return result > 0 ? "+" + result.toFixed(2) : "" + result.toFixed(2);
|
|
36592
36606
|
};
|
|
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,
|
|
36607
|
+
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, {
|
|
36608
|
+
className: "notranslate"
|
|
36609
|
+
}, "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, {
|
|
36610
|
+
className: "notranslate"
|
|
36611
|
+
}, "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, {
|
|
36612
|
+
className: "notranslate"
|
|
36613
|
+
}, "lv ", effectiveLevel))), React.createElement(ProgressBody, null, React.createElement(ProgressIconContainer, null, atlasIMG && atlasJSON ? React.createElement(SpriteContainer$4, null, React.createElement(ErrorBoundary, null, React.createElement(SpriteFromAtlas, {
|
|
36594
36614
|
atlasIMG: atlasIMG,
|
|
36595
36615
|
atlasJSON: atlasJSON,
|
|
36596
36616
|
spriteKey: texturePath,
|
|
@@ -36600,7 +36620,11 @@ var SkillProgressBar = function SkillProgressBar(_ref) {
|
|
|
36600
36620
|
}))) : React.createElement(React.Fragment, null)), React.createElement(ProgressBarWrapper, null, React.createElement(SimpleProgressBar, {
|
|
36601
36621
|
value: progress,
|
|
36602
36622
|
bgColor: bgColor
|
|
36603
|
-
}), React.createElement(Tooltip, null,
|
|
36623
|
+
}), React.createElement(Tooltip, null, React.createElement("span", {
|
|
36624
|
+
className: "notranslate"
|
|
36625
|
+
}, skillKey ? 'SP' : 'XP', ": ", currentSkillPoints)))), showSkillPoints && React.createElement(SkillDisplayContainer, null, React.createElement(SkillPointsDisplay, {
|
|
36626
|
+
className: "notranslate"
|
|
36627
|
+
}, progress.toFixed(2), "%")));
|
|
36604
36628
|
};
|
|
36605
36629
|
var ProgressBarWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
36606
36630
|
displayName: "SkillProgressBar__ProgressBarWrapper",
|
|
@@ -37207,7 +37231,7 @@ var Spell = function Spell(_ref) {
|
|
|
37207
37231
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
37208
37232
|
className: "spell"
|
|
37209
37233
|
}, 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", {
|
|
37210
|
-
className: "cooldown"
|
|
37234
|
+
className: "cooldown notranslate"
|
|
37211
37235
|
}, activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)) : null, React.createElement(SpriteFromAtlas, {
|
|
37212
37236
|
atlasIMG: atlasIMG,
|
|
37213
37237
|
atlasJSON: atlasJSON,
|
|
@@ -37218,7 +37242,7 @@ var Spell = function Spell(_ref) {
|
|
|
37218
37242
|
})), React.createElement(Info, null, React.createElement(Title$c, null, React.createElement("span", null, name), React.createElement("span", {
|
|
37219
37243
|
className: "spell"
|
|
37220
37244
|
}, "(", 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", {
|
|
37221
|
-
className: "mana"
|
|
37245
|
+
className: "mana notranslate"
|
|
37222
37246
|
}, manaCost))));
|
|
37223
37247
|
};
|
|
37224
37248
|
var Container$I = /*#__PURE__*/styled.button.withConfig({
|
|
@@ -57864,7 +57888,9 @@ var CartView = function CartView(_ref2) {
|
|
|
57864
57888
|
height: 32,
|
|
57865
57889
|
imgScale: 2,
|
|
57866
57890
|
centered: true
|
|
57867
|
-
})), React.createElement(ItemDetails, null, React.createElement(ItemName, null, cartItem.item.name), ((_cartItem$metadata2 = cartItem.metadata) == null ? void 0 : _cartItem$metadata2.inputValue) && React.createElement(CartMeta, null, cartItem.metadata.inputValue), React.createElement(ItemInfo$1,
|
|
57891
|
+
})), React.createElement(ItemDetails, null, React.createElement(ItemName, null, cartItem.item.name), ((_cartItem$metadata2 = cartItem.metadata) == null ? void 0 : _cartItem$metadata2.inputValue) && React.createElement(CartMeta, null, cartItem.metadata.inputValue), React.createElement(ItemInfo$1, {
|
|
57892
|
+
className: "notranslate"
|
|
57893
|
+
}, React.createElement("span", null, "$", formatPrice(cartItem.item.price)), React.createElement("span", null, "\xD7"), React.createElement("span", null, cartItem.quantity), React.createElement("span", null, "="), React.createElement("span", null, "$", formatPrice(cartItem.item.price * cartItem.quantity))), cartItem.metadata && cartItem.item.metadataType && React.createElement(MetadataDisplay, {
|
|
57868
57894
|
type: cartItem.item.metadataType,
|
|
57869
57895
|
metadata: cartItem.metadata
|
|
57870
57896
|
})), React.createElement(CTAButton, {
|
|
@@ -57874,7 +57900,9 @@ var CartView = function CartView(_ref2) {
|
|
|
57874
57900
|
onRemoveFromCart(cartItem.item.key);
|
|
57875
57901
|
}
|
|
57876
57902
|
}));
|
|
57877
|
-
})), React.createElement(Footer$1, null, React.createElement(TotalInfo, null, React.createElement(TotalRow,
|
|
57903
|
+
})), React.createElement(Footer$1, null, React.createElement(TotalInfo, null, React.createElement(TotalRow, {
|
|
57904
|
+
className: "notranslate"
|
|
57905
|
+
}, React.createElement("span", null, "Total:"), React.createElement("span", null, "$", formatPrice(total))), error && React.createElement(ErrorMessage$1, null, error)), React.createElement(CTAButton, {
|
|
57878
57906
|
icon: React.createElement(FaShoppingBag, null),
|
|
57879
57907
|
label: isLoading ? 'Processing...' : 'Complete Purchase',
|
|
57880
57908
|
onClick: handlePurchase,
|
|
@@ -58530,7 +58558,9 @@ var StoreItemRow = function StoreItemRow(_ref) {
|
|
|
58530
58558
|
height: 32,
|
|
58531
58559
|
imgScale: 2,
|
|
58532
58560
|
centered: true
|
|
58533
|
-
})), React.createElement(ItemDetails$2, null, React.createElement(ItemName$2, null, item.name), React.createElement(ItemPrice$1,
|
|
58561
|
+
})), React.createElement(ItemDetails$2, null, React.createElement(ItemName$2, null, item.name), React.createElement(ItemPrice$1, {
|
|
58562
|
+
className: "notranslate"
|
|
58563
|
+
}, "$", item.price), React.createElement(ItemDescription, null, item.description)), React.createElement(Controls$1, null, showTextInput ? React.createElement(TextInput, {
|
|
58534
58564
|
type: "text",
|
|
58535
58565
|
value: textInputValue,
|
|
58536
58566
|
placeholder: textInputPlaceholder,
|