@rpg-engine/long-bow 0.3.98 → 0.3.99

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.
@@ -15834,6 +15834,8 @@ var ProgressBar = function ProgressBar(_ref) {
15834
15834
  _ref$minWidth = _ref.minWidth,
15835
15835
  minWidth = _ref$minWidth === void 0 ? 100 : _ref$minWidth,
15836
15836
  style = _ref.style;
15837
+ value = Math.round(value);
15838
+ max = Math.round(max);
15837
15839
  var calculatePercentageValue = function calculatePercentageValue(max, value) {
15838
15840
  if (value > max) {
15839
15841
  value = max;
@@ -16129,7 +16131,7 @@ var Shortcuts = function Shortcuts(_ref) {
16129
16131
  return classBase + " " + (isOnCooldown ? 'onCooldown' : '');
16130
16132
  };
16131
16133
  var isOnShortcutCooldown = shortcutCooldown > 0;
16132
- if (((_shortcuts$i = shortcuts[i]) == null ? void 0 : _shortcuts$i.type) === ShortcutType.Item) {
16134
+ if (shortcuts && ((_shortcuts$i = shortcuts[i]) == null ? void 0 : _shortcuts$i.type) === ShortcutType.Item) {
16133
16135
  var _shortcuts$i2;
16134
16136
  var _payload = (_shortcuts$i2 = shortcuts[i]) == null ? void 0 : _shortcuts$i2.payload;
16135
16137
  var itemsFromEquipment = [];
@@ -16169,7 +16171,7 @@ var Shortcuts = function Shortcuts(_ref) {
16169
16171
  className: buildClassName('keyboard', isOnShortcutCooldown)
16170
16172
  }, i + 1));
16171
16173
  }
16172
- var payload = (_shortcuts$i3 = shortcuts[i]) == null ? void 0 : _shortcuts$i3.payload;
16174
+ var payload = shortcuts && ((_shortcuts$i3 = shortcuts[i]) == null ? void 0 : _shortcuts$i3.payload); //check if shortcuts exists before using the ? operator.
16173
16175
  var spellCooldown = !payload ? 0 : (_spellCooldowns$paylo = spellCooldowns == null ? void 0 : spellCooldowns[payload.magicWords.replaceAll(' ', '_')]) != null ? _spellCooldowns$paylo : shortcutCooldown;
16174
16176
  var cooldown = spellCooldown > shortcutCooldown ? spellCooldown : shortcutCooldown;
16175
16177
  var isOnCooldown = cooldown > 0 && !!payload;
@@ -16376,6 +16378,9 @@ var SkillsContainer = function SkillsContainer(_ref) {
16376
16378
  var _Object$entries$_i = _Object$entries[_i],
16377
16379
  key = _Object$entries$_i[0],
16378
16380
  value = _Object$entries$_i[1];
16381
+ if (key === 'stamina') {
16382
+ continue;
16383
+ }
16379
16384
  //@ts-ignore
16380
16385
  var skillDetails = skill[key];
16381
16386
  output.push(React.createElement(SkillProgressBar, {
@@ -16422,7 +16427,7 @@ var SkillsContainer = function SkillsContainer(_ref) {
16422
16427
  var SkillsDraggableContainer = /*#__PURE__*/styled(DraggableContainer).withConfig({
16423
16428
  displayName: "SkillsContainer__SkillsDraggableContainer",
16424
16429
  componentId: "sc-1g0c67q-0"
16425
- })(["border:1px solid black;width:400px;height:90%;.DraggableContainer__TitleContainer-sc-184mpyl-2{width:auto;height:auto;}"]);
16430
+ })(["border:1px solid black;@media screen and (min-width:800px){body{width:800px;}}@media screen and (max-width:800px){body{width:400px;}}height:90%;.DraggableContainer__TitleContainer-sc-184mpyl-2{width:auto;height:auto;}"]);
16426
16431
  var SkillsContainerDiv = /*#__PURE__*/styled.div.withConfig({
16427
16432
  displayName: "SkillsContainer__SkillsContainerDiv",
16428
16433
  componentId: "sc-1g0c67q-1"
@@ -16469,7 +16474,7 @@ var SpellInfo = function SpellInfo(_ref) {
16469
16474
  className: "label"
16470
16475
  }, "Cooldown:"), React.createElement("div", {
16471
16476
  className: "value"
16472
- }, cooldown)), React.createElement(Statistic$1, null, React.createElement("div", {
16477
+ }, cooldown)), maxDistanceGrid && React.createElement(Statistic$1, null, React.createElement("div", {
16473
16478
  className: "label"
16474
16479
  }, "Max Distance Grid:"), React.createElement("div", {
16475
16480
  className: "value"
@@ -16675,7 +16680,7 @@ var Spell = function Spell(_ref) {
16675
16680
  var Container$p = /*#__PURE__*/styled.button.withConfig({
16676
16681
  displayName: "Spell__Container",
16677
16682
  componentId: "sc-j96fa2-0"
16678
- })(["display:block;background:none;border:2px solid transparent;border-radius:1rem;width:100%;display:flex;height:5rem;gap:1rem;align-items:center;padding:0 1rem;text-align:left;position:relative;animation:", ";@keyframes border-color-change{0%{border-color:", ";}50%{border-color:transparent;}100%{border-color:", ";}}&:hover,&:focus{background-color:", ";}&:active{background:none;}"], function (_ref2) {
16683
+ })(["display:block;background:none;border:2px solid transparent;border-radius:1rem;width:100%;display:flex;gap:1rem;align-items:center;padding:0 1rem;text-align:left;position:relative;animation:", ";@keyframes border-color-change{0%{border-color:", ";}50%{border-color:transparent;}100%{border-color:", ";}}&:hover,&:focus{background-color:", ";}&:active{background:none;}"], function (_ref2) {
16679
16684
  var isSettingShortcut = _ref2.isSettingShortcut;
16680
16685
  return isSettingShortcut ? 'border-color-change 1s infinite' : 'none';
16681
16686
  }, uiColors.yellow, uiColors.yellow, uiColors.darkGray);