@rpg-engine/long-bow 0.5.0 → 0.5.2
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 +3 -2
- 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 +3 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Item/Cards/ItemInfo.tsx +11 -9
package/dist/long-bow.esm.js
CHANGED
|
@@ -13831,7 +13831,7 @@ var statisticsToDisplay = [{
|
|
|
13831
13831
|
higherIsWorse: true
|
|
13832
13832
|
}];
|
|
13833
13833
|
var ItemInfo = function ItemInfo(_ref) {
|
|
13834
|
-
var _item$stackQty;
|
|
13834
|
+
var _item$minRequirements, _item$minRequirements2, _item$minRequirements3, _item$minRequirements4, _item$minRequirements5, _item$stackQty;
|
|
13835
13835
|
var item = _ref.item,
|
|
13836
13836
|
itemToCompare = _ref.itemToCompare,
|
|
13837
13837
|
atlasIMG = _ref.atlasIMG,
|
|
@@ -13908,13 +13908,14 @@ var ItemInfo = function ItemInfo(_ref) {
|
|
|
13908
13908
|
}));
|
|
13909
13909
|
});
|
|
13910
13910
|
};
|
|
13911
|
+
var skillName = (_item$minRequirements = item.minRequirements) == null ? void 0 : (_item$minRequirements2 = _item$minRequirements.skill) == null ? void 0 : _item$minRequirements2.name;
|
|
13911
13912
|
return React.createElement(Container$b, {
|
|
13912
13913
|
item: item
|
|
13913
13914
|
}, React.createElement(Header, null, React.createElement("div", null, React.createElement(Title$1, null, item.name), item.rarity !== 'Common' && React.createElement(Rarity, {
|
|
13914
13915
|
item: item
|
|
13915
13916
|
}, item.rarity), React.createElement(Type, null, item.subType)), React.createElement(AllowedSlots, null, renderAvaibleSlots())), item.minRequirements && React.createElement(LevelRequirement, null, React.createElement("div", {
|
|
13916
13917
|
className: "title"
|
|
13917
|
-
}, "Requirements:"), React.createElement("div", null, "- Level: ", item.minRequirements.level), React.createElement("div", null, "-",
|
|
13918
|
+
}, "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, {
|
|
13918
13919
|
"$isSpecial": true
|
|
13919
13920
|
}, item.usableEffectDescription), item.equippedBuffDescription && React.createElement(Statistic, {
|
|
13920
13921
|
"$isSpecial": true
|