@rpg-engine/long-bow 0.4.95 → 0.4.96
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/components/Button.d.ts +1 -1
- package/dist/components/Item/Inventory/ErrorBoundary.d.ts +1 -1
- package/dist/components/shared/Ellipsis.d.ts +1 -1
- package/dist/long-bow.cjs.development.js +17 -5
- 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 +17 -5
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/stories/ItemTradingComponent.stories.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/PartySystem/PartyManager/PartyManager.tsx +10 -0
- package/src/components/Shortcuts/useShortcutCooldown.ts +5 -4
package/dist/long-bow.esm.js
CHANGED
|
@@ -12854,7 +12854,6 @@ var useShortcutCooldown = function useShortcutCooldown(onShortcutCast) {
|
|
|
12854
12854
|
setShortcutCooldown = _useState[1];
|
|
12855
12855
|
var cooldownTimeout = useRef(null);
|
|
12856
12856
|
var handleShortcutCast = function handleShortcutCast(index) {
|
|
12857
|
-
console.log(shortcutCooldown);
|
|
12858
12857
|
if (shortcutCooldown <= 0) setShortcutCooldown(1.5);
|
|
12859
12858
|
onShortcutCast(index);
|
|
12860
12859
|
};
|
|
@@ -13847,7 +13846,7 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
13847
13846
|
var label = stat.label || stat.key[0].toUpperCase() + stat.key.slice(1);
|
|
13848
13847
|
var isItemToCompare = !!itemToCompare;
|
|
13849
13848
|
var isOnlyInOneItem = isItemToCompare && !(itemToCompare != null && itemToCompare[stat.key]);
|
|
13850
|
-
var statDiff = parseInt(itemStatistic.toString()) - parseInt((_itemToCompare$stat$k = itemToCompare == null
|
|
13849
|
+
var statDiff = parseInt(itemStatistic.toString()) - parseInt((_itemToCompare$stat$k = itemToCompare == null || (_itemToCompare$stat$k2 = itemToCompare[stat.key]) == null ? void 0 : _itemToCompare$stat$k2.toString()) != null ? _itemToCompare$stat$k : '0');
|
|
13851
13850
|
var isDifference = isItemToCompare && statDiff !== 0;
|
|
13852
13851
|
var isBetter = statDiff > 0 && !stat.higherIsWorse || statDiff < 0 && stat.higherIsWorse;
|
|
13853
13852
|
statistics.push(React.createElement(Statistic, {
|
|
@@ -14149,7 +14148,7 @@ var CraftingRecipe = function CraftingRecipe(_ref) {
|
|
|
14149
14148
|
name = modifiedWords.join(' ');
|
|
14150
14149
|
return name;
|
|
14151
14150
|
};
|
|
14152
|
-
var levelInSkill = (_skills$level = skills == null
|
|
14151
|
+
var levelInSkill = (_skills$level = skills == null || (_skills = skills[(_recipe$minCraftingRe = recipe == null || (_recipe$minCraftingRe2 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe2[0]) != null ? _recipe$minCraftingRe : '']) == null ? void 0 : _skills.level) != null ? _skills$level : 1;
|
|
14153
14152
|
return React.createElement(RadioOptionsWrapper, null, React.createElement(SpriteAtlasWrapper, null, React.createElement(ItemInfoWrapper, {
|
|
14154
14153
|
item: recipe,
|
|
14155
14154
|
atlasIMG: atlasIMG,
|
|
@@ -14179,7 +14178,7 @@ var CraftingRecipe = function CraftingRecipe(_ref) {
|
|
|
14179
14178
|
}
|
|
14180
14179
|
}, modifyString(recipe.name))), React.createElement(MinCraftingRequirementsText, {
|
|
14181
14180
|
levelIsOk: (_recipe$levelIsOk = recipe == null ? void 0 : recipe.levelIsOk) != null ? _recipe$levelIsOk : false
|
|
14182
|
-
}, modifyString("" + ((_recipe$minCraftingRe3 = recipe == null
|
|
14181
|
+
}, modifyString("" + ((_recipe$minCraftingRe3 = recipe == null || (_recipe$minCraftingRe4 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe4[0]) != null ? _recipe$minCraftingRe3 : '')), " lvl", ' ', (_recipe$minCraftingRe5 = recipe == null || (_recipe$minCraftingRe6 = recipe.minCraftingRequirements) == null ? void 0 : _recipe$minCraftingRe6[1]) != null ? _recipe$minCraftingRe5 : 0, " (", levelInSkill, ")"), recipe.ingredients.map(function (ingredient, index) {
|
|
14183
14182
|
var itemQtyInInventory = !inventory ? 0 : countItemFromInventory(ingredient.key, inventory);
|
|
14184
14183
|
return React.createElement(Recipe, {
|
|
14185
14184
|
key: index
|
|
@@ -16391,7 +16390,20 @@ var PartyManager = function PartyManager(_ref) {
|
|
|
16391
16390
|
className: "golden"
|
|
16392
16391
|
}))), React.createElement(RowsWrapper$2, {
|
|
16393
16392
|
className: "partyRows"
|
|
16394
|
-
}, partyRows && partyRows.members ? React.createElement(React.Fragment, null,
|
|
16393
|
+
}, partyRows && partyRows.members ? React.createElement(React.Fragment, null, React.createElement(PartyManagerRow, {
|
|
16394
|
+
key: partyRows.leader._id,
|
|
16395
|
+
id: partyRows.leader._id,
|
|
16396
|
+
leaderId: partyRows.leader._id,
|
|
16397
|
+
charName: partyRows.leader.name,
|
|
16398
|
+
charClass: partyRows.leader["class"],
|
|
16399
|
+
isLeader: true,
|
|
16400
|
+
onRemovePlayer: function onRemovePlayer() {
|
|
16401
|
+
return _onRemovePlayer(partyRows.leader._id);
|
|
16402
|
+
},
|
|
16403
|
+
onChangeLeader: function onChangeLeader() {
|
|
16404
|
+
return _onChangeLeader(partyRows.leader._id);
|
|
16405
|
+
}
|
|
16406
|
+
}), partyRows.members.map(function (partyRow) {
|
|
16395
16407
|
return React.createElement(PartyManagerRow, {
|
|
16396
16408
|
key: partyRow._id,
|
|
16397
16409
|
charName: partyRow.name,
|