change to game.modules.get(name) method

This commit is contained in:
Mike Bloy 2023-10-01 12:07:27 -05:00
parent 41e1ade442
commit d9917ac5c8
24 changed files with 87 additions and 90 deletions

View File

@ -1 +1 @@
MANIFEST-000142
MANIFEST-000152

View File

@ -1,15 +1,8 @@
2023/09/30-11:04:18.334512 7fd28b7fe700 Recovering log #140
2023/09/30-11:04:18.342723 7fd28b7fe700 Delete type=3 #138
2023/09/30-11:04:18.342746 7fd28b7fe700 Delete type=0 #140
2023/09/30-12:30:55.332730 7fd28916a700 Level-0 table #145: started
2023/09/30-12:30:55.340207 7fd28916a700 Level-0 table #145: 1238 bytes OK
2023/09/30-12:30:55.348986 7fd28916a700 Delete type=0 #143
2023/09/30-12:30:55.368234 7fd28916a700 Manual compaction at level-0 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at (end)
2023/09/30-12:30:55.377505 7fd28916a700 Manual compaction at level-1 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at '!items!XJYoBJcpr0Ar3cES' @ 192 : 1
2023/09/30-12:30:55.377514 7fd28916a700 Compacting 1@1 + 1@2 files
2023/09/30-12:30:55.384320 7fd28916a700 Generated table #146@1: 17 keys, 8697 bytes
2023/09/30-12:30:55.384329 7fd28916a700 Compacted 1@1 + 1@2 files => 8697 bytes
2023/09/30-12:30:55.393234 7fd28916a700 compacted to: files[ 0 0 1 0 0 0 0 ]
2023/09/30-12:30:55.393270 7fd28916a700 Delete type=2 #137
2023/09/30-12:30:55.393305 7fd28916a700 Delete type=2 #145
2023/09/30-12:30:55.393414 7fd28916a700 Manual compaction at level-1 from '!items!XJYoBJcpr0Ar3cES' @ 192 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at (end)
2023/10/01-11:42:33.323354 7fd28affd700 Recovering log #149
2023/10/01-11:42:33.330873 7fd28affd700 Delete type=0 #149
2023/10/01-11:42:33.330892 7fd28affd700 Delete type=3 #147
2023/10/01-12:06:41.807421 7fd28916a700 Level-0 table #155: started
2023/10/01-12:06:41.807442 7fd28916a700 Level-0 table #155: 0 bytes OK
2023/10/01-12:06:41.819030 7fd28916a700 Delete type=0 #153
2023/10/01-12:06:41.840054 7fd28916a700 Manual compaction at level-0 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at (end)
2023/10/01-12:06:41.840105 7fd28916a700 Manual compaction at level-1 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at (end)

View File

@ -1,8 +1,15 @@
2023/09/25-22:33:46.979390 7fe7b968d700 Recovering log #135
2023/09/25-22:33:46.999374 7fe7b968d700 Delete type=3 #133
2023/09/25-22:33:46.999397 7fe7b968d700 Delete type=0 #135
2023/09/25-22:34:49.573980 7fe51bfff700 Level-0 table #141: started
2023/09/25-22:34:49.573997 7fe51bfff700 Level-0 table #141: 0 bytes OK
2023/09/25-22:34:49.583422 7fe51bfff700 Delete type=0 #139
2023/09/25-22:34:49.602253 7fe51bfff700 Manual compaction at level-0 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at (end)
2023/09/25-22:34:49.611494 7fe51bfff700 Manual compaction at level-1 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at (end)
2023/09/30-22:00:07.906145 7fd28a7fc700 Recovering log #144
2023/09/30-22:00:07.926595 7fd28a7fc700 Delete type=3 #142
2023/09/30-22:00:07.926627 7fd28a7fc700 Delete type=0 #144
2023/09/30-22:46:17.075856 7fd28916a700 Level-0 table #150: started
2023/09/30-22:46:17.082635 7fd28916a700 Level-0 table #150: 2095 bytes OK
2023/09/30-22:46:17.091480 7fd28916a700 Delete type=0 #148
2023/09/30-22:46:17.111008 7fd28916a700 Manual compaction at level-0 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at (end)
2023/09/30-22:46:17.111125 7fd28916a700 Manual compaction at level-1 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at '!items!XJYoBJcpr0Ar3cES' @ 197 : 1
2023/09/30-22:46:17.111148 7fd28916a700 Compacting 1@1 + 1@2 files
2023/09/30-22:46:17.117878 7fd28916a700 Generated table #151@1: 19 keys, 9149 bytes
2023/09/30-22:46:17.117888 7fd28916a700 Compacted 1@1 + 1@2 files => 9149 bytes
2023/09/30-22:46:17.126623 7fd28916a700 compacted to: files[ 0 0 1 0 0 0 0 ]
2023/09/30-22:46:17.126664 7fd28916a700 Delete type=2 #146
2023/09/30-22:46:17.126708 7fd28916a700 Delete type=2 #150
2023/09/30-22:46:17.137192 7fd28916a700 Manual compaction at level-1 from '!items!XJYoBJcpr0Ar3cES' @ 197 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000044
MANIFEST-000052

View File

@ -1,8 +1,8 @@
2023/09/30-11:04:18.344689 7fd28affd700 Recovering log #42
2023/09/30-11:04:18.352626 7fd28affd700 Delete type=3 #40
2023/09/30-11:04:18.352649 7fd28affd700 Delete type=0 #42
2023/09/30-12:30:55.349040 7fd28916a700 Level-0 table #47: started
2023/09/30-12:30:55.349059 7fd28916a700 Level-0 table #47: 0 bytes OK
2023/09/30-12:30:55.358701 7fd28916a700 Delete type=0 #45
2023/09/30-12:30:55.368265 7fd28916a700 Manual compaction at level-0 from '!actors!U5v4gFHquo0Y1SAq' @ 72057594037927935 : 1 .. '!actors!U5v4gFHquo0Y1SAq' @ 0 : 0; will stop at (end)
2023/09/30-12:30:55.393347 7fd28916a700 Manual compaction at level-1 from '!actors!U5v4gFHquo0Y1SAq' @ 72057594037927935 : 1 .. '!actors!U5v4gFHquo0Y1SAq' @ 0 : 0; will stop at (end)
2023/10/01-11:42:33.332759 7fd28b7fe700 Recovering log #50
2023/10/01-11:42:33.339786 7fd28b7fe700 Delete type=0 #50
2023/10/01-11:42:33.339801 7fd28b7fe700 Delete type=3 #48
2023/10/01-12:06:41.819080 7fd28916a700 Level-0 table #55: started
2023/10/01-12:06:41.819102 7fd28916a700 Level-0 table #55: 0 bytes OK
2023/10/01-12:06:41.829523 7fd28916a700 Delete type=0 #53
2023/10/01-12:06:41.840082 7fd28916a700 Manual compaction at level-0 from '!actors!U5v4gFHquo0Y1SAq' @ 72057594037927935 : 1 .. '!actors!U5v4gFHquo0Y1SAq' @ 0 : 0; will stop at (end)
2023/10/01-12:06:41.840124 7fd28916a700 Manual compaction at level-1 from '!actors!U5v4gFHquo0Y1SAq' @ 72057594037927935 : 1 .. '!actors!U5v4gFHquo0Y1SAq' @ 0 : 0; will stop at (end)

View File

@ -1,8 +1,8 @@
2023/09/25-22:33:47.001326 7fe7b9e8e700 Recovering log #38
2023/09/25-22:33:47.021271 7fe7b9e8e700 Delete type=0 #38
2023/09/25-22:33:47.021294 7fe7b9e8e700 Delete type=3 #36
2023/09/25-22:34:49.621185 7fe51bfff700 Level-0 table #43: started
2023/09/25-22:34:49.621202 7fe51bfff700 Level-0 table #43: 0 bytes OK
2023/09/25-22:34:49.630680 7fe51bfff700 Delete type=0 #41
2023/09/25-22:34:49.650161 7fe51bfff700 Manual compaction at level-0 from '!actors!U5v4gFHquo0Y1SAq' @ 72057594037927935 : 1 .. '!actors!U5v4gFHquo0Y1SAq' @ 0 : 0; will stop at (end)
2023/09/25-22:34:49.659391 7fe51bfff700 Manual compaction at level-1 from '!actors!U5v4gFHquo0Y1SAq' @ 72057594037927935 : 1 .. '!actors!U5v4gFHquo0Y1SAq' @ 0 : 0; will stop at (end)
2023/09/30-22:00:07.928542 7fd28affd700 Recovering log #46
2023/09/30-22:00:07.949016 7fd28affd700 Delete type=3 #44
2023/09/30-22:00:07.949045 7fd28affd700 Delete type=0 #46
2023/09/30-22:46:17.091549 7fd28916a700 Level-0 table #51: started
2023/09/30-22:46:17.091570 7fd28916a700 Level-0 table #51: 0 bytes OK
2023/09/30-22:46:17.102019 7fd28916a700 Delete type=0 #49
2023/09/30-22:46:17.111043 7fd28916a700 Manual compaction at level-0 from '!actors!U5v4gFHquo0Y1SAq' @ 72057594037927935 : 1 .. '!actors!U5v4gFHquo0Y1SAq' @ 0 : 0; will stop at (end)
2023/09/30-22:46:17.126758 7fd28916a700 Manual compaction at level-1 from '!actors!U5v4gFHquo0Y1SAq' @ 72057594037927935 : 1 .. '!actors!U5v4gFHquo0Y1SAq' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000172
MANIFEST-000181

View File

@ -1,15 +1,15 @@
2023/09/30-11:04:18.322209 7fd28affd700 Recovering log #170
2023/09/30-11:04:18.332624 7fd28affd700 Delete type=0 #170
2023/09/30-11:04:18.332669 7fd28affd700 Delete type=3 #168
2023/09/30-12:30:55.290872 7fd28916a700 Level-0 table #175: started
2023/09/30-12:30:55.297661 7fd28916a700 Level-0 table #175: 677 bytes OK
2023/09/30-12:30:55.306838 7fd28916a700 Delete type=0 #173
2023/09/30-12:30:55.316621 7fd28916a700 Manual compaction at level-0 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end)
2023/09/30-12:30:55.316725 7fd28916a700 Manual compaction at level-1 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at '!macros!uWF4I2mnDkV8NZ6j' @ 39 : 1
2023/09/30-12:30:55.316732 7fd28916a700 Compacting 1@1 + 1@2 files
2023/09/30-12:30:55.323583 7fd28916a700 Generated table #176@1: 20 keys, 4888 bytes
2023/09/30-12:30:55.323594 7fd28916a700 Compacted 1@1 + 1@2 files => 4888 bytes
2023/09/30-12:30:55.332570 7fd28916a700 compacted to: files[ 0 0 1 0 0 0 0 ]
2023/09/30-12:30:55.332616 7fd28916a700 Delete type=2 #167
2023/09/30-12:30:55.332655 7fd28916a700 Delete type=2 #175
2023/09/30-12:30:55.358749 7fd28916a700 Manual compaction at level-1 from '!macros!uWF4I2mnDkV8NZ6j' @ 39 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end)
2023/10/01-11:42:33.315112 7fd28b7fe700 Recovering log #179
2023/10/01-11:42:33.322456 7fd28b7fe700 Delete type=3 #177
2023/10/01-11:42:33.322475 7fd28b7fe700 Delete type=0 #179
2023/10/01-12:06:41.769629 7fd28916a700 Level-0 table #184: started
2023/10/01-12:06:41.777478 7fd28916a700 Level-0 table #184: 4857 bytes OK
2023/10/01-12:06:41.787785 7fd28916a700 Delete type=0 #182
2023/10/01-12:06:41.787963 7fd28916a700 Manual compaction at level-0 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end)
2023/10/01-12:06:41.788081 7fd28916a700 Manual compaction at level-1 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at '!macros!wU2mAUnw3RW9qMT8' @ 58 : 1
2023/10/01-12:06:41.788084 7fd28916a700 Compacting 1@1 + 1@2 files
2023/10/01-12:06:41.797036 7fd28916a700 Generated table #185@1: 22 keys, 5730 bytes
2023/10/01-12:06:41.797046 7fd28916a700 Compacted 1@1 + 1@2 files => 5730 bytes
2023/10/01-12:06:41.807269 7fd28916a700 compacted to: files[ 0 0 1 0 0 0 0 ]
2023/10/01-12:06:41.807323 7fd28916a700 Delete type=2 #184
2023/10/01-12:06:41.807373 7fd28916a700 Delete type=2 #176
2023/10/01-12:06:41.840022 7fd28916a700 Manual compaction at level-1 from '!macros!wU2mAUnw3RW9qMT8' @ 58 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end)

View File

@ -1,8 +1,8 @@
2023/09/25-22:33:46.957940 7fe7b9e8e700 Recovering log #165
2023/09/25-22:33:46.977376 7fe7b9e8e700 Delete type=0 #165
2023/09/25-22:33:46.977395 7fe7b9e8e700 Delete type=3 #163
2023/09/25-22:34:49.583492 7fe51bfff700 Level-0 table #171: started
2023/09/25-22:34:49.583508 7fe51bfff700 Level-0 table #171: 0 bytes OK
2023/09/25-22:34:49.592987 7fe51bfff700 Delete type=0 #169
2023/09/25-22:34:49.611444 7fe51bfff700 Manual compaction at level-0 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end)
2023/09/25-22:34:49.611542 7fe51bfff700 Manual compaction at level-1 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end)
2023/09/30-22:00:07.883512 7fd28affd700 Recovering log #174
2023/09/30-22:00:07.904799 7fd28affd700 Delete type=3 #172
2023/09/30-22:00:07.904823 7fd28affd700 Delete type=0 #174
2023/09/30-22:46:17.066546 7fd28916a700 Level-0 table #180: started
2023/09/30-22:46:17.066565 7fd28916a700 Level-0 table #180: 0 bytes OK
2023/09/30-22:46:17.075634 7fd28916a700 Delete type=0 #178
2023/09/30-22:46:17.075781 7fd28916a700 Manual compaction at level-0 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end)
2023/09/30-22:46:17.110974 7fd28916a700 Manual compaction at level-1 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000172
MANIFEST-000180

View File

@ -1,8 +1,8 @@
2023/09/30-11:04:18.312359 7fd28b7fe700 Recovering log #170
2023/09/30-11:04:18.320109 7fd28b7fe700 Delete type=0 #170
2023/09/30-11:04:18.320149 7fd28b7fe700 Delete type=3 #168
2023/09/30-12:30:55.281430 7fd28916a700 Level-0 table #175: started
2023/09/30-12:30:55.281448 7fd28916a700 Level-0 table #175: 0 bytes OK
2023/09/30-12:30:55.290810 7fd28916a700 Delete type=0 #173
2023/09/30-12:30:55.316595 7fd28916a700 Manual compaction at level-0 from '!journal!HbtPlHNFO1L6RVj0' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.lhULHNp4gz9IjOR3' @ 0 : 0; will stop at (end)
2023/09/30-12:30:55.316696 7fd28916a700 Manual compaction at level-1 from '!journal!HbtPlHNFO1L6RVj0' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.lhULHNp4gz9IjOR3' @ 0 : 0; will stop at (end)
2023/10/01-11:42:33.305447 7fd28affd700 Recovering log #178
2023/10/01-11:42:33.313480 7fd28affd700 Delete type=3 #176
2023/10/01-11:42:33.313506 7fd28affd700 Delete type=0 #178
2023/10/01-12:06:41.759034 7fd28916a700 Level-0 table #183: started
2023/10/01-12:06:41.759058 7fd28916a700 Level-0 table #183: 0 bytes OK
2023/10/01-12:06:41.769582 7fd28916a700 Delete type=0 #181
2023/10/01-12:06:41.787931 7fd28916a700 Manual compaction at level-0 from '!journal!HbtPlHNFO1L6RVj0' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.lhULHNp4gz9IjOR3' @ 0 : 0; will stop at (end)
2023/10/01-12:06:41.788066 7fd28916a700 Manual compaction at level-1 from '!journal!HbtPlHNFO1L6RVj0' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.lhULHNp4gz9IjOR3' @ 0 : 0; will stop at (end)

View File

@ -1,8 +1,8 @@
2023/09/25-22:33:46.936754 7fe7b968d700 Recovering log #165
2023/09/25-22:33:46.956358 7fe7b968d700 Delete type=0 #165
2023/09/25-22:33:46.956379 7fe7b968d700 Delete type=3 #163
2023/09/25-22:34:49.564751 7fe51bfff700 Level-0 table #171: started
2023/09/25-22:34:49.564770 7fe51bfff700 Level-0 table #171: 0 bytes OK
2023/09/25-22:34:49.573732 7fe51bfff700 Delete type=0 #169
2023/09/25-22:34:49.573869 7fe51bfff700 Manual compaction at level-0 from '!journal!HbtPlHNFO1L6RVj0' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.lhULHNp4gz9IjOR3' @ 0 : 0; will stop at (end)
2023/09/25-22:34:49.583466 7fe51bfff700 Manual compaction at level-1 from '!journal!HbtPlHNFO1L6RVj0' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.lhULHNp4gz9IjOR3' @ 0 : 0; will stop at (end)
2023/09/30-22:00:07.861773 7fd28a7fc700 Recovering log #174
2023/09/30-22:00:07.881833 7fd28a7fc700 Delete type=3 #172
2023/09/30-22:00:07.881873 7fd28a7fc700 Delete type=0 #174
2023/09/30-22:46:17.057116 7fd28916a700 Level-0 table #179: started
2023/09/30-22:46:17.057140 7fd28916a700 Level-0 table #179: 0 bytes OK
2023/09/30-22:46:17.066444 7fd28916a700 Delete type=0 #177
2023/09/30-22:46:17.075689 7fd28916a700 Manual compaction at level-0 from '!journal!HbtPlHNFO1L6RVj0' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.lhULHNp4gz9IjOR3' @ 0 : 0; will stop at (end)
2023/09/30-22:46:17.075793 7fd28916a700 Manual compaction at level-1 from '!journal!HbtPlHNFO1L6RVj0' @ 72057594037927935 : 1 .. '!journal.pages!Mw1g2Fx5dp4SoqVP.lhULHNp4gz9IjOR3' @ 0 : 0; will stop at (end)

View File

@ -9,15 +9,10 @@ export class api {
}
static globals () {
globalThis.swadeMBHelpers = {
const moduleName = 'swade-mb-helpers'
game.modules.get(moduleName).api = {
DEBUG: true,
powerEffects,
createEffectDocument: shim.createEffectDocument,
createMutationWithEffect: helpers.createMutationWithEffect,
defaultMutationOptions: helpers.defaultMutationOptions,
getActorFolderByPath: shim.getActorFolderByPath,
getActorsInFolder: shim.getActorsInFolder,
runOnTargetOrSelectedTokens: helpers.runOnTargetOrSelectedTokens
powerEffects
}
}
}

View File

@ -2,6 +2,8 @@ import { api } from './api.js'
import { shapeChangeOnDismiss } from './powerEffects.js'
import { log } from './shim.js'
const moduleName = 'swade-mb-helpers'
function _checkModule (name) {
if (!game.modules.get(name)?.active && game.user.isGM) {
let action = 'install and activate'