Skip to content

Commit

Permalink
you fucking muppet. return if its true or false. fixes #155
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Jul 12, 2023
1 parent 70d123d commit 33c7b49
Show file tree
Hide file tree
Showing 18 changed files with 65 additions and 71 deletions.
13 changes: 7 additions & 6 deletions module/pf2e-animations.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,12 @@ pf2eAnimations.hooks.updateCombatant = Hooks.on(
pf2eAnimations.hooks.foundrySummons = Hooks.on(
"fs-postSummon",
({ tokenDoc, sourceData }) => {
let items = sourceData.summonerTokenDocument?.actor?.items?.filter(
(item) => {
item.name.includes("Summoning Animation Template");
}
);
let items =
sourceData.summonerTokenDocument?.actor?.itemTypes?.action.filter(
(item) => {
return item.name.includes("Summoning Animation Template");
}
);
let item;

if (items?.length > 0) {
Expand All @@ -483,7 +484,7 @@ pf2eAnimations.hooks.foundrySummons = Hooks.on(
items.find((i) => i.name === `Summoning Animation Template`);
}

const summoner = canvas.tokens.get(sourceData.summonerTokenDocument._id);
const summoner = sourceData.summonerTokenDocument.object;
const summoned = tokenDoc.object;

setTimeout(() => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packs/actions/CURRENT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MANIFEST-000112
MANIFEST-000116
16 changes: 8 additions & 8 deletions packs/actions/LOG
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
2023/07/12-05:27:20.735955 ffff997fa160 Recovering log #110
2023/07/12-05:27:20.748668 ffff997fa160 Delete type=0 #110
2023/07/12-05:27:20.748715 ffff997fa160 Delete type=3 #108
2023/07/12-12:49:36.324137 ffff94a1c160 Level-0 table #115: started
2023/07/12-12:49:36.324156 ffff94a1c160 Level-0 table #115: 0 bytes OK
2023/07/12-12:49:36.326966 ffff94a1c160 Delete type=0 #113
2023/07/12-12:49:36.327065 ffff94a1c160 Manual compaction at level-0 from '!items!15XurJzUEax6FhA7' @ 72057594037927935 : 1 .. '!items!vyN2kecXwFkulbpK' @ 0 : 0; will stop at (end)
2023/07/12-12:49:36.334930 ffff94a1c160 Manual compaction at level-1 from '!items!15XurJzUEax6FhA7' @ 72057594037927935 : 1 .. '!items!vyN2kecXwFkulbpK' @ 0 : 0; will stop at (end)
2023/07/12-12:50:46.755713 ffff98ff9160 Recovering log #114
2023/07/12-12:50:46.767000 ffff98ff9160 Delete type=0 #114
2023/07/12-12:50:46.767027 ffff98ff9160 Delete type=3 #112
2023/07/12-13:03:23.494348 ffff94a1c160 Level-0 table #119: started
2023/07/12-13:03:23.494365 ffff94a1c160 Level-0 table #119: 0 bytes OK
2023/07/12-13:03:23.496964 ffff94a1c160 Delete type=0 #117
2023/07/12-13:03:23.499727 ffff94a1c160 Manual compaction at level-0 from '!items!15XurJzUEax6FhA7' @ 72057594037927935 : 1 .. '!items!vyN2kecXwFkulbpK' @ 0 : 0; will stop at (end)
2023/07/12-13:03:23.499774 ffff94a1c160 Manual compaction at level-1 from '!items!15XurJzUEax6FhA7' @ 72057594037927935 : 1 .. '!items!vyN2kecXwFkulbpK' @ 0 : 0; will stop at (end)
16 changes: 8 additions & 8 deletions packs/actions/LOG.old
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
2023/07/12-05:22:17.177411 ffff997fa160 Recovering log #106
2023/07/12-05:22:17.187812 ffff997fa160 Delete type=0 #106
2023/07/12-05:22:17.187839 ffff997fa160 Delete type=3 #104
2023/07/12-05:27:16.046306 ffff94a1c160 Level-0 table #111: started
2023/07/12-05:27:16.046323 ffff94a1c160 Level-0 table #111: 0 bytes OK
2023/07/12-05:27:16.048951 ffff94a1c160 Delete type=0 #109
2023/07/12-05:27:16.049044 ffff94a1c160 Manual compaction at level-0 from '!items!15XurJzUEax6FhA7' @ 72057594037927935 : 1 .. '!items!vyN2kecXwFkulbpK' @ 0 : 0; will stop at (end)
2023/07/12-05:27:16.052329 ffff94a1c160 Manual compaction at level-1 from '!items!15XurJzUEax6FhA7' @ 72057594037927935 : 1 .. '!items!vyN2kecXwFkulbpK' @ 0 : 0; will stop at (end)
2023/07/12-05:27:20.735955 ffff997fa160 Recovering log #110
2023/07/12-05:27:20.748668 ffff997fa160 Delete type=0 #110
2023/07/12-05:27:20.748715 ffff997fa160 Delete type=3 #108
2023/07/12-12:49:36.324137 ffff94a1c160 Level-0 table #115: started
2023/07/12-12:49:36.324156 ffff94a1c160 Level-0 table #115: 0 bytes OK
2023/07/12-12:49:36.326966 ffff94a1c160 Delete type=0 #113
2023/07/12-12:49:36.327065 ffff94a1c160 Manual compaction at level-0 from '!items!15XurJzUEax6FhA7' @ 72057594037927935 : 1 .. '!items!vyN2kecXwFkulbpK' @ 0 : 0; will stop at (end)
2023/07/12-12:49:36.334930 ffff94a1c160 Manual compaction at level-1 from '!items!15XurJzUEax6FhA7' @ 72057594037927935 : 1 .. '!items!vyN2kecXwFkulbpK' @ 0 : 0; will stop at (end)
Binary file removed packs/actions/MANIFEST-000112
Binary file not shown.
Binary file added packs/actions/MANIFEST-000116
Binary file not shown.
File renamed without changes.
2 changes: 1 addition & 1 deletion packs/actors/CURRENT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MANIFEST-000113
MANIFEST-000117
16 changes: 8 additions & 8 deletions packs/actors/LOG
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
2023/07/12-05:27:20.729707 ffff99ffb160 Recovering log #111
2023/07/12-05:27:20.741127 ffff99ffb160 Delete type=3 #109
2023/07/12-05:27:20.741157 ffff99ffb160 Delete type=0 #111
2023/07/12-12:49:36.321406 ffff94a1c160 Level-0 table #116: started
2023/07/12-12:49:36.321428 ffff94a1c160 Level-0 table #116: 0 bytes OK
2023/07/12-12:49:36.324087 ffff94a1c160 Delete type=0 #114
2023/07/12-12:49:36.327049 ffff94a1c160 Manual compaction at level-0 from '!actors!teCoIt8sjArsIl4D' @ 72057594037927935 : 1 .. '!actors!teCoIt8sjArsIl4D' @ 0 : 0; will stop at (end)
2023/07/12-12:49:36.334911 ffff94a1c160 Manual compaction at level-1 from '!actors!teCoIt8sjArsIl4D' @ 72057594037927935 : 1 .. '!actors!teCoIt8sjArsIl4D' @ 0 : 0; will stop at (end)
2023/07/12-12:50:46.752391 ffff997fa160 Recovering log #115
2023/07/12-12:50:46.765476 ffff997fa160 Delete type=0 #115
2023/07/12-12:50:46.765528 ffff997fa160 Delete type=3 #113
2023/07/12-13:03:23.491372 ffff94a1c160 Level-0 table #120: started
2023/07/12-13:03:23.491404 ffff94a1c160 Level-0 table #120: 0 bytes OK
2023/07/12-13:03:23.494287 ffff94a1c160 Delete type=0 #118
2023/07/12-13:03:23.499718 ffff94a1c160 Manual compaction at level-0 from '!actors!teCoIt8sjArsIl4D' @ 72057594037927935 : 1 .. '!actors!teCoIt8sjArsIl4D' @ 0 : 0; will stop at (end)
2023/07/12-13:03:23.499827 ffff94a1c160 Manual compaction at level-1 from '!actors!teCoIt8sjArsIl4D' @ 72057594037927935 : 1 .. '!actors!teCoIt8sjArsIl4D' @ 0 : 0; will stop at (end)
16 changes: 8 additions & 8 deletions packs/actors/LOG.old
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
2023/07/12-05:22:17.173815 ffff98ff9160 Recovering log #107
2023/07/12-05:22:17.185680 ffff98ff9160 Delete type=0 #107
2023/07/12-05:22:17.187031 ffff98ff9160 Delete type=3 #105
2023/07/12-05:27:16.043154 ffff94a1c160 Level-0 table #112: started
2023/07/12-05:27:16.043172 ffff94a1c160 Level-0 table #112: 0 bytes OK
2023/07/12-05:27:16.046238 ffff94a1c160 Delete type=0 #110
2023/07/12-05:27:16.049033 ffff94a1c160 Manual compaction at level-0 from '!actors!teCoIt8sjArsIl4D' @ 72057594037927935 : 1 .. '!actors!teCoIt8sjArsIl4D' @ 0 : 0; will stop at (end)
2023/07/12-05:27:16.049149 ffff94a1c160 Manual compaction at level-1 from '!actors!teCoIt8sjArsIl4D' @ 72057594037927935 : 1 .. '!actors!teCoIt8sjArsIl4D' @ 0 : 0; will stop at (end)
2023/07/12-05:27:20.729707 ffff99ffb160 Recovering log #111
2023/07/12-05:27:20.741127 ffff99ffb160 Delete type=3 #109
2023/07/12-05:27:20.741157 ffff99ffb160 Delete type=0 #111
2023/07/12-12:49:36.321406 ffff94a1c160 Level-0 table #116: started
2023/07/12-12:49:36.321428 ffff94a1c160 Level-0 table #116: 0 bytes OK
2023/07/12-12:49:36.324087 ffff94a1c160 Delete type=0 #114
2023/07/12-12:49:36.327049 ffff94a1c160 Manual compaction at level-0 from '!actors!teCoIt8sjArsIl4D' @ 72057594037927935 : 1 .. '!actors!teCoIt8sjArsIl4D' @ 0 : 0; will stop at (end)
2023/07/12-12:49:36.334911 ffff94a1c160 Manual compaction at level-1 from '!actors!teCoIt8sjArsIl4D' @ 72057594037927935 : 1 .. '!actors!teCoIt8sjArsIl4D' @ 0 : 0; will stop at (end)
Binary file not shown.
File renamed without changes.
2 changes: 1 addition & 1 deletion packs/macros/CURRENT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MANIFEST-000126
MANIFEST-000131
23 changes: 8 additions & 15 deletions packs/macros/LOG
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
2023/07/12-05:27:20.722891 ffff987f8160 Recovering log #123
2023/07/12-05:27:20.734633 ffff987f8160 Delete type=0 #123
2023/07/12-05:27:20.734665 ffff987f8160 Delete type=3 #121
2023/07/12-12:49:36.309688 ffff94a1c160 Level-0 table #129: started
2023/07/12-12:49:36.315397 ffff94a1c160 Level-0 table #129: 155406 bytes OK
2023/07/12-12:49:36.318039 ffff94a1c160 Delete type=0 #127
2023/07/12-12:49:36.327018 ffff94a1c160 Manual compaction at level-0 from '!macros!0O8rNzIVLo8p3tXj' @ 72057594037927935 : 1 .. '!macros!ya0hNKP4l4uOfoGJ' @ 0 : 0; will stop at (end)
2023/07/12-12:49:36.327098 ffff94a1c160 Manual compaction at level-1 from '!macros!0O8rNzIVLo8p3tXj' @ 72057594037927935 : 1 .. '!macros!ya0hNKP4l4uOfoGJ' @ 0 : 0; will stop at '!macros!ya0hNKP4l4uOfoGJ' @ 320 : 1
2023/07/12-12:49:36.327105 ffff94a1c160 Compacting 1@1 + 1@2 files
2023/07/12-12:49:36.332032 ffff94a1c160 Generated table #130@1: 62 keys, 94276 bytes
2023/07/12-12:49:36.332047 ffff94a1c160 Compacted 1@1 + 1@2 files => 94276 bytes
2023/07/12-12:49:36.334641 ffff94a1c160 compacted to: files[ 0 0 1 0 0 0 0 ]
2023/07/12-12:49:36.334731 ffff94a1c160 Delete type=2 #125
2023/07/12-12:49:36.334839 ffff94a1c160 Delete type=2 #129
2023/07/12-12:49:36.338108 ffff94a1c160 Manual compaction at level-1 from '!macros!ya0hNKP4l4uOfoGJ' @ 320 : 1 .. '!macros!ya0hNKP4l4uOfoGJ' @ 0 : 0; will stop at (end)
2023/07/12-12:50:46.742677 ffff99ffb160 Recovering log #128
2023/07/12-12:50:46.754225 ffff99ffb160 Delete type=3 #126
2023/07/12-12:50:46.754264 ffff99ffb160 Delete type=0 #128
2023/07/12-13:03:23.488250 ffff94a1c160 Level-0 table #134: started
2023/07/12-13:03:23.488285 ffff94a1c160 Level-0 table #134: 0 bytes OK
2023/07/12-13:03:23.490947 ffff94a1c160 Delete type=0 #132
2023/07/12-13:03:23.491133 ffff94a1c160 Manual compaction at level-0 from '!macros!0O8rNzIVLo8p3tXj' @ 72057594037927935 : 1 .. '!macros!ya0hNKP4l4uOfoGJ' @ 0 : 0; will stop at (end)
2023/07/12-13:03:23.499694 ffff94a1c160 Manual compaction at level-1 from '!macros!0O8rNzIVLo8p3tXj' @ 72057594037927935 : 1 .. '!macros!ya0hNKP4l4uOfoGJ' @ 0 : 0; will stop at (end)
30 changes: 15 additions & 15 deletions packs/macros/LOG.old
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
2023/07/12-05:22:17.164054 ffff987f8160 Recovering log #118
2023/07/12-05:22:17.175703 ffff987f8160 Delete type=0 #118
2023/07/12-05:22:17.175736 ffff987f8160 Delete type=3 #116
2023/07/12-05:27:16.036102 ffff94a1c160 Level-0 table #124: started
2023/07/12-05:27:16.040016 ffff94a1c160 Level-0 table #124: 10195 bytes OK
2023/07/12-05:27:16.042948 ffff94a1c160 Delete type=0 #122
2023/07/12-05:27:16.049020 ffff94a1c160 Manual compaction at level-0 from '!macros!0O8rNzIVLo8p3tXj' @ 72057594037927935 : 1 .. '!macros!ya0hNKP4l4uOfoGJ' @ 0 : 0; will stop at (end)
2023/07/12-05:27:16.052343 ffff94a1c160 Manual compaction at level-1 from '!macros!0O8rNzIVLo8p3tXj' @ 72057594037927935 : 1 .. '!macros!ya0hNKP4l4uOfoGJ' @ 0 : 0; will stop at '!macros!kz6IN257FJ58SgmE' @ 244 : 1
2023/07/12-05:27:16.052350 ffff94a1c160 Compacting 1@1 + 1@2 files
2023/07/12-05:27:16.057625 ffff94a1c160 Generated table #125@1: 62 keys, 95411 bytes
2023/07/12-05:27:16.057668 ffff94a1c160 Compacted 1@1 + 1@2 files => 95411 bytes
2023/07/12-05:27:16.060162 ffff94a1c160 compacted to: files[ 0 0 1 0 0 0 0 ]
2023/07/12-05:27:16.060269 ffff94a1c160 Delete type=2 #120
2023/07/12-05:27:16.060359 ffff94a1c160 Delete type=2 #124
2023/07/12-05:27:16.066216 ffff94a1c160 Manual compaction at level-1 from '!macros!kz6IN257FJ58SgmE' @ 244 : 1 .. '!macros!ya0hNKP4l4uOfoGJ' @ 0 : 0; will stop at (end)
2023/07/12-05:27:20.722891 ffff987f8160 Recovering log #123
2023/07/12-05:27:20.734633 ffff987f8160 Delete type=0 #123
2023/07/12-05:27:20.734665 ffff987f8160 Delete type=3 #121
2023/07/12-12:49:36.309688 ffff94a1c160 Level-0 table #129: started
2023/07/12-12:49:36.315397 ffff94a1c160 Level-0 table #129: 155406 bytes OK
2023/07/12-12:49:36.318039 ffff94a1c160 Delete type=0 #127
2023/07/12-12:49:36.327018 ffff94a1c160 Manual compaction at level-0 from '!macros!0O8rNzIVLo8p3tXj' @ 72057594037927935 : 1 .. '!macros!ya0hNKP4l4uOfoGJ' @ 0 : 0; will stop at (end)
2023/07/12-12:49:36.327098 ffff94a1c160 Manual compaction at level-1 from '!macros!0O8rNzIVLo8p3tXj' @ 72057594037927935 : 1 .. '!macros!ya0hNKP4l4uOfoGJ' @ 0 : 0; will stop at '!macros!ya0hNKP4l4uOfoGJ' @ 320 : 1
2023/07/12-12:49:36.327105 ffff94a1c160 Compacting 1@1 + 1@2 files
2023/07/12-12:49:36.332032 ffff94a1c160 Generated table #130@1: 62 keys, 94276 bytes
2023/07/12-12:49:36.332047 ffff94a1c160 Compacted 1@1 + 1@2 files => 94276 bytes
2023/07/12-12:49:36.334641 ffff94a1c160 compacted to: files[ 0 0 1 0 0 0 0 ]
2023/07/12-12:49:36.334731 ffff94a1c160 Delete type=2 #125
2023/07/12-12:49:36.334839 ffff94a1c160 Delete type=2 #129
2023/07/12-12:49:36.338108 ffff94a1c160 Manual compaction at level-1 from '!macros!ya0hNKP4l4uOfoGJ' @ 320 : 1 .. '!macros!ya0hNKP4l4uOfoGJ' @ 0 : 0; will stop at (end)
Binary file removed packs/macros/MANIFEST-000126
Binary file not shown.
Binary file added packs/macros/MANIFEST-000131
Binary file not shown.

0 comments on commit 33c7b49

Please sign in to comment.