diff --git a/packs/common-actions/000060.ldb b/packs/common-actions/000060.ldb new file mode 100644 index 0000000..00b2b7f Binary files /dev/null and b/packs/common-actions/000060.ldb differ diff --git a/packs/common-actions/CURRENT b/packs/common-actions/CURRENT new file mode 100644 index 0000000..f60e23b --- /dev/null +++ b/packs/common-actions/CURRENT @@ -0,0 +1 @@ +MANIFEST-000093 diff --git a/packs/common-actions/LOCK b/packs/common-actions/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/packs/common-actions/LOG b/packs/common-actions/LOG new file mode 100644 index 0000000..d387200 --- /dev/null +++ b/packs/common-actions/LOG @@ -0,0 +1,8 @@ +2023/09/10-09:15:57.495301 7fc4427fc700 Recovering log #91 +2023/09/10-09:15:57.536628 7fc4427fc700 Delete type=0 #91 +2023/09/10-09:15:57.536656 7fc4427fc700 Delete type=3 #89 +2023/09/10-22:54:31.992405 7fc441b3b700 Level-0 table #96: started +2023/09/10-22:54:31.992425 7fc441b3b700 Level-0 table #96: 0 bytes OK +2023/09/10-22:54:31.999139 7fc441b3b700 Delete type=0 #94 +2023/09/10-22:54:31.999290 7fc441b3b700 Manual compaction at level-0 from '!items!2jAOeH9QKQqjugAt' @ 72057594037927935 : 1 .. '!items!nQHHXfEN7Ey2iWIM' @ 0 : 0; will stop at (end) +2023/09/10-22:54:32.006620 7fc441b3b700 Manual compaction at level-1 from '!items!2jAOeH9QKQqjugAt' @ 72057594037927935 : 1 .. '!items!nQHHXfEN7Ey2iWIM' @ 0 : 0; will stop at (end) diff --git a/packs/common-actions/LOG.old b/packs/common-actions/LOG.old new file mode 100644 index 0000000..af974a4 --- /dev/null +++ b/packs/common-actions/LOG.old @@ -0,0 +1,8 @@ +2023/09/09-23:23:04.947886 7fc442ffd700 Recovering log #87 +2023/09/09-23:23:04.986132 7fc442ffd700 Delete type=3 #85 +2023/09/09-23:23:04.986170 7fc442ffd700 Delete type=0 #87 +2023/09/10-01:07:03.948089 7fc441b3b700 Level-0 table #92: started +2023/09/10-01:07:03.948109 7fc441b3b700 Level-0 table #92: 0 bytes OK +2023/09/10-01:07:03.956567 7fc441b3b700 Delete type=0 #90 +2023/09/10-01:07:03.956693 7fc441b3b700 Manual compaction at level-0 from '!items!2jAOeH9QKQqjugAt' @ 72057594037927935 : 1 .. '!items!nQHHXfEN7Ey2iWIM' @ 0 : 0; will stop at (end) +2023/09/10-01:07:03.983281 7fc441b3b700 Manual compaction at level-1 from '!items!2jAOeH9QKQqjugAt' @ 72057594037927935 : 1 .. '!items!nQHHXfEN7Ey2iWIM' @ 0 : 0; will stop at (end) diff --git a/packs/common-actions/MANIFEST-000093 b/packs/common-actions/MANIFEST-000093 new file mode 100644 index 0000000..ef8ab05 Binary files /dev/null and b/packs/common-actions/MANIFEST-000093 differ diff --git a/packs/effect-macros/000097.ldb b/packs/effect-macros/000097.ldb new file mode 100644 index 0000000..b3e18a1 Binary files /dev/null and b/packs/effect-macros/000097.ldb differ diff --git a/packs/effect-macros/CURRENT b/packs/effect-macros/CURRENT new file mode 100644 index 0000000..f60e23b --- /dev/null +++ b/packs/effect-macros/CURRENT @@ -0,0 +1 @@ +MANIFEST-000093 diff --git a/packs/effect-macros/LOCK b/packs/effect-macros/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/packs/effect-macros/LOG b/packs/effect-macros/LOG new file mode 100644 index 0000000..0b4b9aa --- /dev/null +++ b/packs/effect-macros/LOG @@ -0,0 +1,15 @@ +2023/09/10-09:15:57.455935 7fc4427fc700 Recovering log #91 +2023/09/10-09:15:57.493853 7fc4427fc700 Delete type=0 #91 +2023/09/10-09:15:57.493880 7fc4427fc700 Delete type=3 #89 +2023/09/10-22:54:31.968498 7fc441b3b700 Level-0 table #96: started +2023/09/10-22:54:31.971962 7fc441b3b700 Level-0 table #96: 6174 bytes OK +2023/09/10-22:54:31.974879 7fc441b3b700 Delete type=0 #94 +2023/09/10-22:54:31.980574 7fc441b3b700 Manual compaction at level-0 from '!folders!xeSN3oIIO3p9MUtF' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end) +2023/09/10-22:54:31.986133 7fc441b3b700 Manual compaction at level-1 from '!folders!xeSN3oIIO3p9MUtF' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at '!macros!yG1ZQO30ZlntYJp7' @ 30 : 0 +2023/09/10-22:54:31.986141 7fc441b3b700 Compacting 1@1 + 1@2 files +2023/09/10-22:54:31.989428 7fc441b3b700 Generated table #97@1: 16 keys, 2931 bytes +2023/09/10-22:54:31.989437 7fc441b3b700 Compacted 1@1 + 1@2 files => 2931 bytes +2023/09/10-22:54:31.992296 7fc441b3b700 compacted to: files[ 0 0 1 0 0 0 0 ] +2023/09/10-22:54:31.992328 7fc441b3b700 Delete type=2 #96 +2023/09/10-22:54:31.992362 7fc441b3b700 Delete type=2 #60 +2023/09/10-22:54:31.999275 7fc441b3b700 Manual compaction at level-1 from '!macros!yG1ZQO30ZlntYJp7' @ 30 : 0 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end) diff --git a/packs/effect-macros/LOG.old b/packs/effect-macros/LOG.old new file mode 100644 index 0000000..7d48dc3 --- /dev/null +++ b/packs/effect-macros/LOG.old @@ -0,0 +1,8 @@ +2023/09/09-23:23:04.905935 7fc442ffd700 Recovering log #87 +2023/09/09-23:23:04.946402 7fc442ffd700 Delete type=3 #85 +2023/09/09-23:23:04.946439 7fc442ffd700 Delete type=0 #87 +2023/09/10-01:07:03.930401 7fc441b3b700 Level-0 table #92: started +2023/09/10-01:07:03.930420 7fc441b3b700 Level-0 table #92: 0 bytes OK +2023/09/10-01:07:03.939308 7fc441b3b700 Delete type=0 #90 +2023/09/10-01:07:03.956611 7fc441b3b700 Manual compaction at level-0 from '!macros!11GOryzx2Q8MXbT6' @ 72057594037927935 : 1 .. '!macros!yG1ZQO30ZlntYJp7' @ 0 : 0; will stop at (end) +2023/09/10-01:07:03.956718 7fc441b3b700 Manual compaction at level-1 from '!macros!11GOryzx2Q8MXbT6' @ 72057594037927935 : 1 .. '!macros!yG1ZQO30ZlntYJp7' @ 0 : 0; will stop at (end) diff --git a/packs/effect-macros/MANIFEST-000093 b/packs/effect-macros/MANIFEST-000093 new file mode 100644 index 0000000..eb5f4c0 Binary files /dev/null and b/packs/effect-macros/MANIFEST-000093 differ diff --git a/packs/helper-macros/000005.ldb b/packs/helper-macros/000005.ldb new file mode 100644 index 0000000..f0a41fb Binary files /dev/null and b/packs/helper-macros/000005.ldb differ diff --git a/packs/helper-macros/000059.ldb b/packs/helper-macros/000059.ldb new file mode 100644 index 0000000..a83eb6b Binary files /dev/null and b/packs/helper-macros/000059.ldb differ diff --git a/packs/helper-macros/CURRENT b/packs/helper-macros/CURRENT new file mode 100644 index 0000000..5b83d76 --- /dev/null +++ b/packs/helper-macros/CURRENT @@ -0,0 +1 @@ +MANIFEST-000092 diff --git a/packs/helper-macros/LOCK b/packs/helper-macros/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/packs/helper-macros/LOG b/packs/helper-macros/LOG new file mode 100644 index 0000000..3ab1a55 --- /dev/null +++ b/packs/helper-macros/LOG @@ -0,0 +1,8 @@ +2023/09/10-09:15:57.462006 7fc4437fe700 Recovering log #90 +2023/09/10-09:15:57.500156 7fc4437fe700 Delete type=0 #90 +2023/09/10-09:15:57.500192 7fc4437fe700 Delete type=3 #88 +2023/09/10-22:54:31.975012 7fc441b3b700 Level-0 table #95: started +2023/09/10-22:54:31.975034 7fc441b3b700 Level-0 table #95: 0 bytes OK +2023/09/10-22:54:31.980500 7fc441b3b700 Delete type=0 #93 +2023/09/10-22:54:31.986101 7fc441b3b700 Manual compaction at level-0 from '!macros!AjuA11hQ48UJNwlH' @ 72057594037927935 : 1 .. '!macros!QMnx9cuyw81kRS2o' @ 0 : 0; will stop at (end) +2023/09/10-22:54:31.999235 7fc441b3b700 Manual compaction at level-1 from '!macros!AjuA11hQ48UJNwlH' @ 72057594037927935 : 1 .. '!macros!QMnx9cuyw81kRS2o' @ 0 : 0; will stop at (end) diff --git a/packs/helper-macros/LOG.old b/packs/helper-macros/LOG.old new file mode 100644 index 0000000..c891f57 --- /dev/null +++ b/packs/helper-macros/LOG.old @@ -0,0 +1,8 @@ +2023/09/09-23:23:04.911402 7fc443fff700 Recovering log #86 +2023/09/09-23:23:04.952686 7fc443fff700 Delete type=0 #86 +2023/09/09-23:23:04.952718 7fc443fff700 Delete type=3 #84 +2023/09/10-01:07:03.939392 7fc441b3b700 Level-0 table #91: started +2023/09/10-01:07:03.939412 7fc441b3b700 Level-0 table #91: 0 bytes OK +2023/09/10-01:07:03.948045 7fc441b3b700 Delete type=0 #89 +2023/09/10-01:07:03.956664 7fc441b3b700 Manual compaction at level-0 from '!macros!AjuA11hQ48UJNwlH' @ 72057594037927935 : 1 .. '!macros!QMnx9cuyw81kRS2o' @ 0 : 0; will stop at (end) +2023/09/10-01:07:03.956728 7fc441b3b700 Manual compaction at level-1 from '!macros!AjuA11hQ48UJNwlH' @ 72057594037927935 : 1 .. '!macros!QMnx9cuyw81kRS2o' @ 0 : 0; will stop at (end) diff --git a/packs/helper-macros/MANIFEST-000092 b/packs/helper-macros/MANIFEST-000092 new file mode 100644 index 0000000..3430e1b Binary files /dev/null and b/packs/helper-macros/MANIFEST-000092 differ diff --git a/packs/module-docs/000096.ldb b/packs/module-docs/000096.ldb new file mode 100644 index 0000000..a2988a7 Binary files /dev/null and b/packs/module-docs/000096.ldb differ diff --git a/packs/module-docs/CURRENT b/packs/module-docs/CURRENT new file mode 100644 index 0000000..5b83d76 --- /dev/null +++ b/packs/module-docs/CURRENT @@ -0,0 +1 @@ +MANIFEST-000092 diff --git a/packs/module-docs/LOCK b/packs/module-docs/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/packs/module-docs/LOG b/packs/module-docs/LOG new file mode 100644 index 0000000..43fe456 --- /dev/null +++ b/packs/module-docs/LOG @@ -0,0 +1,15 @@ +2023/09/10-09:15:57.422391 7fc443fff700 Recovering log #90 +2023/09/10-09:15:57.460369 7fc443fff700 Delete type=0 #90 +2023/09/10-09:15:57.460392 7fc443fff700 Delete type=3 #88 +2023/09/10-22:54:31.953241 7fc441b3b700 Level-0 table #95: started +2023/09/10-22:54:31.956096 7fc441b3b700 Level-0 table #95: 22051 bytes OK +2023/09/10-22:54:31.959002 7fc441b3b700 Delete type=0 #93 +2023/09/10-22:54:31.974981 7fc441b3b700 Manual compaction at level-0 from '!journal!Mw1g2Fx5dp4SoqVP' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.i31qmsZnIGhjvA2K' @ 0 : 0; will stop at (end) +2023/09/10-22:54:31.980598 7fc441b3b700 Manual compaction at level-1 from '!journal!Mw1g2Fx5dp4SoqVP' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.i31qmsZnIGhjvA2K' @ 0 : 0; will stop at '!journal.pages!Mw1g2Fx5dp4SoqVP.i31qmsZnIGhjvA2K' @ 3 : 1 +2023/09/10-22:54:31.980606 7fc441b3b700 Compacting 1@1 + 1@2 files +2023/09/10-22:54:31.983098 7fc441b3b700 Generated table #96@1: 2 keys, 2537 bytes +2023/09/10-22:54:31.983111 7fc441b3b700 Compacted 1@1 + 1@2 files => 2537 bytes +2023/09/10-22:54:31.985952 7fc441b3b700 compacted to: files[ 0 0 1 0 0 0 0 ] +2023/09/10-22:54:31.986001 7fc441b3b700 Delete type=2 #5 +2023/09/10-22:54:31.986048 7fc441b3b700 Delete type=2 #95 +2023/09/10-22:54:31.999197 7fc441b3b700 Manual compaction at level-1 from '!journal.pages!Mw1g2Fx5dp4SoqVP.i31qmsZnIGhjvA2K' @ 3 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.i31qmsZnIGhjvA2K' @ 0 : 0; will stop at (end) diff --git a/packs/module-docs/LOG.old b/packs/module-docs/LOG.old new file mode 100644 index 0000000..5a05a1d --- /dev/null +++ b/packs/module-docs/LOG.old @@ -0,0 +1,8 @@ +2023/09/09-23:23:04.872878 7fc4437fe700 Recovering log #86 +2023/09/09-23:23:04.909922 7fc4437fe700 Delete type=0 #86 +2023/09/09-23:23:04.909943 7fc4437fe700 Delete type=3 #84 +2023/09/10-01:07:03.922079 7fc441b3b700 Level-0 table #91: started +2023/09/10-01:07:03.922101 7fc441b3b700 Level-0 table #91: 0 bytes OK +2023/09/10-01:07:03.930291 7fc441b3b700 Delete type=0 #89 +2023/09/10-01:07:03.939365 7fc441b3b700 Manual compaction at level-0 from '!journal!Mw1g2Fx5dp4SoqVP' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.i31qmsZnIGhjvA2K' @ 0 : 0; will stop at (end) +2023/09/10-01:07:03.956638 7fc441b3b700 Manual compaction at level-1 from '!journal!Mw1g2Fx5dp4SoqVP' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.i31qmsZnIGhjvA2K' @ 0 : 0; will stop at (end) diff --git a/packs/module-docs/MANIFEST-000092 b/packs/module-docs/MANIFEST-000092 new file mode 100644 index 0000000..7ecae3d Binary files /dev/null and b/packs/module-docs/MANIFEST-000092 differ diff --git a/scripts/powerEffects.js b/scripts/powerEffects.js index 1c99bb0..4839d2d 100644 --- a/scripts/powerEffects.js +++ b/scripts/powerEffects.js @@ -530,10 +530,14 @@ class SmiteEffect extends TargetedPowerEffect { class SummonEffect extends PowerEffect { ICON = 'icons/magic/symbols/runes-triangle-blue.webp' - get actorFolder () { + get actorFolderBase () { return 'Summonables' } + get actorFolder () { + return `${this.actorFolderBase}/${this.name}` + } + get name () { return 'Summon Creature' } @@ -724,12 +728,8 @@ class SummonAllyEffect extends SummonEffect { return 'Summon Ally' } - get actorFolder () { - return `${super.actorFolder}/Summon Ally` - } - get mirrorFolder () { - return `${super.actorFolder}/Mirror Selves` + return `${this.actorFolderBase}/Mirror Selves` } async prepMenu () { @@ -885,6 +885,36 @@ class SummonAllyEffect extends SummonEffect { } } +class SummonAnimalEffect extends SummonEffect { + get name () { + return 'Summon Animal' + } +} + +class SummonMonsterEffect extends SummonEffect { + get name () { + return 'Summon Monster' + } +} + +class SummonNaturesAllyEffect extends SummonEffect { + get name () { + return "Summon Nature's Ally" + } +} + +class SummonPlanarAllyEffect extends SummonEffect { + get name () { + return 'Summon Planar Ally' + } +} + +class SummonUndeadEffect extends SummonEffect { + get name () { + return 'Summon Undead' + } +} + const PowerClasses = { blind: BlindEffect, 'boost/lower trait': BoostLowerTraitEffect, @@ -897,11 +927,21 @@ const PowerClasses = { 'lower trait': BoostLowerTraitEffect, protection: ProtectionEffect, smite: SmiteEffect, - 'summon ally': SummonAllyEffect + 'summon ally': SummonAllyEffect, + 'summon animal': SummonAnimalEffect, + 'summon monster': SummonMonsterEffect, + "summon nature's ally": SummonNaturesAllyEffect, + 'summon planar ally': SummonPlanarAllyEffect, + 'summon undead': SummonUndeadEffect } export async function powerEffects (options = {}) { const token = 'token' in options ? options.token : [] + if (token === undefined || token === null) { + shim.notifications.error('Please select one token') + return + } + const targets = 'targets' in options ? Array.from(options.targets) : [] const item = 'item' in options ? options.item : null const name = 'name' in options ? options.name : (item !== null ? item.name : null)