@rpg-engine/long-bow 0.3.93 → 0.3.94
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/Spellbook/Spell.d.ts +1 -1
- package/dist/long-bow.cjs.development.js +3 -3
- 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 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Spellbook/Spell.tsx +3 -3
- package/src/components/Spellbook/Spellbook.tsx +1 -1
|
@@ -16250,13 +16250,13 @@ var Spell = function Spell(_ref) {
|
|
|
16250
16250
|
manaCost = _ref.manaCost,
|
|
16251
16251
|
charMana = _ref.charMana,
|
|
16252
16252
|
charMagicLevel = _ref.charMagicLevel,
|
|
16253
|
-
|
|
16253
|
+
onPointerUp = _ref.onPointerUp,
|
|
16254
16254
|
isSettingShortcut = _ref.isSettingShortcut,
|
|
16255
16255
|
minMagicLevelRequired = _ref.minMagicLevelRequired;
|
|
16256
16256
|
var disabled = isSettingShortcut ? charMagicLevel < minMagicLevelRequired : manaCost > charMana || charMagicLevel < minMagicLevelRequired;
|
|
16257
16257
|
return React__default.createElement(Container$m, {
|
|
16258
16258
|
disabled: disabled,
|
|
16259
|
-
|
|
16259
|
+
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
16260
16260
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
16261
16261
|
className: "spell"
|
|
16262
16262
|
}, disabled && React__default.createElement(Overlay, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React__default.createElement(SpellImage, null, magicWords.split(' ').map(function (word) {
|
|
@@ -16376,7 +16376,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
16376
16376
|
}, React__default.createElement(Spell, Object.assign({
|
|
16377
16377
|
charMana: mana,
|
|
16378
16378
|
charMagicLevel: magicLevel,
|
|
16379
|
-
|
|
16379
|
+
onPointerUp: settingShortcutIndex !== -1 ? setShortcut : onSpellClick,
|
|
16380
16380
|
spellKey: spell.key,
|
|
16381
16381
|
isSettingShortcut: settingShortcutIndex !== -1
|
|
16382
16382
|
}, spell)));
|