@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
package/dist/long-bow.esm.js
CHANGED
|
@@ -16248,13 +16248,13 @@ var Spell = function Spell(_ref) {
|
|
|
16248
16248
|
manaCost = _ref.manaCost,
|
|
16249
16249
|
charMana = _ref.charMana,
|
|
16250
16250
|
charMagicLevel = _ref.charMagicLevel,
|
|
16251
|
-
|
|
16251
|
+
onPointerUp = _ref.onPointerUp,
|
|
16252
16252
|
isSettingShortcut = _ref.isSettingShortcut,
|
|
16253
16253
|
minMagicLevelRequired = _ref.minMagicLevelRequired;
|
|
16254
16254
|
var disabled = isSettingShortcut ? charMagicLevel < minMagicLevelRequired : manaCost > charMana || charMagicLevel < minMagicLevelRequired;
|
|
16255
16255
|
return React.createElement(Container$m, {
|
|
16256
16256
|
disabled: disabled,
|
|
16257
|
-
|
|
16257
|
+
onPointerUp: onPointerUp == null ? void 0 : onPointerUp.bind(null, spellKey),
|
|
16258
16258
|
isSettingShortcut: isSettingShortcut && !disabled,
|
|
16259
16259
|
className: "spell"
|
|
16260
16260
|
}, disabled && React.createElement(Overlay, null, charMagicLevel < minMagicLevelRequired ? 'Low magic level' : manaCost > charMana && 'No mana'), React.createElement(SpellImage, null, magicWords.split(' ').map(function (word) {
|
|
@@ -16374,7 +16374,7 @@ var Spellbook = function Spellbook(_ref) {
|
|
|
16374
16374
|
}, React.createElement(Spell, Object.assign({
|
|
16375
16375
|
charMana: mana,
|
|
16376
16376
|
charMagicLevel: magicLevel,
|
|
16377
|
-
|
|
16377
|
+
onPointerUp: settingShortcutIndex !== -1 ? setShortcut : onSpellClick,
|
|
16378
16378
|
spellKey: spell.key,
|
|
16379
16379
|
isSettingShortcut: settingShortcutIndex !== -1
|
|
16380
16380
|
}, spell)));
|