Version 2.0.0 #35

Merged
mike merged 19 commits from develop into main 2023-10-02 01:51:47 +00:00
25 changed files with 159 additions and 82 deletions
Showing only changes of commit b79ca1b4a6 - Show all commits

View File

@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## 2.0.0
### Changed
- BREAKING CHANGE: changed from creating a global `swadeMBHelpers` to requiring
`game.modules.get('swade-mb-helpers').api` instead
- FLOW change: Smite's modifier will still show the weapon affected, but the
modifier is a global modifier that can be ignored in the roll dialog or the
effect can be turned off.
- Added the following Power Effects
- Burrow
- Darksight
- Detect/Conceal Arcana
- Disguise
- Shape Change
- Sloth/Speed
## 1.2.0 ## 1.2.0
### Changed ### Changed

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000152 MANIFEST-000156

View File

@ -1,8 +1,15 @@
2023/10/01-11:42:33.323354 7fd28affd700 Recovering log #149 2023/10/01-12:11:47.448916 7fd28affd700 Recovering log #154
2023/10/01-11:42:33.330873 7fd28affd700 Delete type=0 #149 2023/10/01-12:11:47.471451 7fd28affd700 Delete type=0 #154
2023/10/01-11:42:33.330892 7fd28affd700 Delete type=3 #147 2023/10/01-12:11:47.471476 7fd28affd700 Delete type=3 #152
2023/10/01-12:06:41.807421 7fd28916a700 Level-0 table #155: started 2023/10/01-20:43:28.145021 7fd28916a700 Level-0 table #159: started
2023/10/01-12:06:41.807442 7fd28916a700 Level-0 table #155: 0 bytes OK 2023/10/01-20:43:28.148538 7fd28916a700 Level-0 table #159: 938 bytes OK
2023/10/01-12:06:41.819030 7fd28916a700 Delete type=0 #153 2023/10/01-20:43:28.151749 7fd28916a700 Delete type=0 #157
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-20:43:28.158378 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) 2023/10/01-20:43:28.162862 7fd28916a700 Manual compaction at level-1 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at '!items!TteEFvR0yPWKNbI5' @ 200 : 1
2023/10/01-20:43:28.162870 7fd28916a700 Compacting 1@1 + 1@2 files
2023/10/01-20:43:28.165511 7fd28916a700 Generated table #160@1: 20 keys, 8917 bytes
2023/10/01-20:43:28.165520 7fd28916a700 Compacted 1@1 + 1@2 files => 8917 bytes
2023/10/01-20:43:28.168246 7fd28916a700 compacted to: files[ 0 0 1 0 0 0 0 ]
2023/10/01-20:43:28.168314 7fd28916a700 Delete type=2 #159
2023/10/01-20:43:28.168359 7fd28916a700 Delete type=2 #151
2023/10/01-20:43:28.168489 7fd28916a700 Manual compaction at level-1 from '!items!TteEFvR0yPWKNbI5' @ 200 : 1 .. '!items!xA7qKMmugJv7z6j1' @ 0 : 0; will stop at (end)

View File

@ -1,15 +1,8 @@
2023/09/30-22:00:07.906145 7fd28a7fc700 Recovering log #144 2023/10/01-11:42:33.323354 7fd28affd700 Recovering log #149
2023/09/30-22:00:07.926595 7fd28a7fc700 Delete type=3 #142 2023/10/01-11:42:33.330873 7fd28affd700 Delete type=0 #149
2023/09/30-22:00:07.926627 7fd28a7fc700 Delete type=0 #144 2023/10/01-11:42:33.330892 7fd28affd700 Delete type=3 #147
2023/09/30-22:46:17.075856 7fd28916a700 Level-0 table #150: started 2023/10/01-12:06:41.807421 7fd28916a700 Level-0 table #155: started
2023/09/30-22:46:17.082635 7fd28916a700 Level-0 table #150: 2095 bytes OK 2023/10/01-12:06:41.807442 7fd28916a700 Level-0 table #155: 0 bytes OK
2023/09/30-22:46:17.091480 7fd28916a700 Delete type=0 #148 2023/10/01-12:06:41.819030 7fd28916a700 Delete type=0 #153
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/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/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/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)
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-000052 MANIFEST-000056

View File

@ -1,8 +1,8 @@
2023/10/01-11:42:33.332759 7fd28b7fe700 Recovering log #50 2023/10/01-12:11:47.473471 7fd289ffb700 Recovering log #54
2023/10/01-11:42:33.339786 7fd28b7fe700 Delete type=0 #50 2023/10/01-12:11:47.496469 7fd289ffb700 Delete type=3 #52
2023/10/01-11:42:33.339801 7fd28b7fe700 Delete type=3 #48 2023/10/01-12:11:47.496492 7fd289ffb700 Delete type=0 #54
2023/10/01-12:06:41.819080 7fd28916a700 Level-0 table #55: started 2023/10/01-20:43:28.151822 7fd28916a700 Level-0 table #59: started
2023/10/01-12:06:41.819102 7fd28916a700 Level-0 table #55: 0 bytes OK 2023/10/01-20:43:28.151850 7fd28916a700 Level-0 table #59: 0 bytes OK
2023/10/01-12:06:41.829523 7fd28916a700 Delete type=0 #53 2023/10/01-20:43:28.155380 7fd28916a700 Delete type=0 #57
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-20:43:28.162797 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) 2023/10/01-20:43:28.168435 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/30-22:00:07.928542 7fd28affd700 Recovering log #46 2023/10/01-11:42:33.332759 7fd28b7fe700 Recovering log #50
2023/09/30-22:00:07.949016 7fd28affd700 Delete type=3 #44 2023/10/01-11:42:33.339786 7fd28b7fe700 Delete type=0 #50
2023/09/30-22:00:07.949045 7fd28affd700 Delete type=0 #46 2023/10/01-11:42:33.339801 7fd28b7fe700 Delete type=3 #48
2023/09/30-22:46:17.091549 7fd28916a700 Level-0 table #51: started 2023/10/01-12:06:41.819080 7fd28916a700 Level-0 table #55: started
2023/09/30-22:46:17.091570 7fd28916a700 Level-0 table #51: 0 bytes OK 2023/10/01-12:06:41.819102 7fd28916a700 Level-0 table #55: 0 bytes OK
2023/09/30-22:46:17.102019 7fd28916a700 Delete type=0 #49 2023/10/01-12:06:41.829523 7fd28916a700 Delete type=0 #53
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/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/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) 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)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000181 MANIFEST-000186

View File

@ -1,15 +1,15 @@
2023/10/01-11:42:33.315112 7fd28b7fe700 Recovering log #179 2023/10/01-12:11:47.424454 7fd289ffb700 Recovering log #183
2023/10/01-11:42:33.322456 7fd28b7fe700 Delete type=3 #177 2023/10/01-12:11:47.447452 7fd289ffb700 Delete type=3 #181
2023/10/01-11:42:33.322475 7fd28b7fe700 Delete type=0 #179 2023/10/01-12:11:47.447476 7fd289ffb700 Delete type=0 #183
2023/10/01-12:06:41.769629 7fd28916a700 Level-0 table #184: started 2023/10/01-20:43:28.125761 7fd28916a700 Level-0 table #189: started
2023/10/01-12:06:41.777478 7fd28916a700 Level-0 table #184: 4857 bytes OK 2023/10/01-20:43:28.129385 7fd28916a700 Level-0 table #189: 4766 bytes OK
2023/10/01-12:06:41.787785 7fd28916a700 Delete type=0 #182 2023/10/01-20:43:28.132402 7fd28916a700 Delete type=0 #187
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-20:43:28.139282 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-20:43:28.139387 7fd28916a700 Manual compaction at level-1 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at '!macros!wU2mAUnw3RW9qMT8' @ 73 : 1
2023/10/01-12:06:41.788084 7fd28916a700 Compacting 1@1 + 1@2 files 2023/10/01-20:43:28.139394 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-20:43:28.141794 7fd28916a700 Generated table #190@1: 24 keys, 5951 bytes
2023/10/01-12:06:41.797046 7fd28916a700 Compacted 1@1 + 1@2 files => 5730 bytes 2023/10/01-20:43:28.141803 7fd28916a700 Compacted 1@1 + 1@2 files => 5951 bytes
2023/10/01-12:06:41.807269 7fd28916a700 compacted to: files[ 0 0 1 0 0 0 0 ] 2023/10/01-20:43:28.144771 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-20:43:28.144875 7fd28916a700 Delete type=2 #185
2023/10/01-12:06:41.807373 7fd28916a700 Delete type=2 #176 2023/10/01-20:43:28.144921 7fd28916a700 Delete type=2 #189
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) 2023/10/01-20:43:28.151797 7fd28916a700 Manual compaction at level-1 from '!macros!wU2mAUnw3RW9qMT8' @ 73 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end)

View File

@ -1,8 +1,15 @@
2023/09/30-22:00:07.883512 7fd28affd700 Recovering log #174 2023/10/01-11:42:33.315112 7fd28b7fe700 Recovering log #179
2023/09/30-22:00:07.904799 7fd28affd700 Delete type=3 #172 2023/10/01-11:42:33.322456 7fd28b7fe700 Delete type=3 #177
2023/09/30-22:00:07.904823 7fd28affd700 Delete type=0 #174 2023/10/01-11:42:33.322475 7fd28b7fe700 Delete type=0 #179
2023/09/30-22:46:17.066546 7fd28916a700 Level-0 table #180: started 2023/10/01-12:06:41.769629 7fd28916a700 Level-0 table #184: started
2023/09/30-22:46:17.066565 7fd28916a700 Level-0 table #180: 0 bytes OK 2023/10/01-12:06:41.777478 7fd28916a700 Level-0 table #184: 4857 bytes OK
2023/09/30-22:46:17.075634 7fd28916a700 Delete type=0 #178 2023/10/01-12:06:41.787785 7fd28916a700 Delete type=0 #182
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/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/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) 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)

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000180 MANIFEST-000184

View File

@ -1,8 +1,8 @@
2023/10/01-11:42:33.305447 7fd28affd700 Recovering log #178 2023/10/01-12:11:47.399453 7fd28affd700 Recovering log #182
2023/10/01-11:42:33.313480 7fd28affd700 Delete type=3 #176 2023/10/01-12:11:47.422711 7fd28affd700 Delete type=3 #180
2023/10/01-11:42:33.313506 7fd28affd700 Delete type=0 #178 2023/10/01-12:11:47.422738 7fd28affd700 Delete type=0 #182
2023/10/01-12:06:41.759034 7fd28916a700 Level-0 table #183: started 2023/10/01-20:43:28.122368 7fd28916a700 Level-0 table #187: started
2023/10/01-12:06:41.759058 7fd28916a700 Level-0 table #183: 0 bytes OK 2023/10/01-20:43:28.122497 7fd28916a700 Level-0 table #187: 0 bytes OK
2023/10/01-12:06:41.769582 7fd28916a700 Delete type=0 #181 2023/10/01-20:43:28.125721 7fd28916a700 Delete type=0 #185
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-20:43:28.139254 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) 2023/10/01-20:43:28.139359 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/30-22:00:07.861773 7fd28a7fc700 Recovering log #174 2023/10/01-11:42:33.305447 7fd28affd700 Recovering log #178
2023/09/30-22:00:07.881833 7fd28a7fc700 Delete type=3 #172 2023/10/01-11:42:33.313480 7fd28affd700 Delete type=3 #176
2023/09/30-22:00:07.881873 7fd28a7fc700 Delete type=0 #174 2023/10/01-11:42:33.313506 7fd28affd700 Delete type=0 #178
2023/09/30-22:46:17.057116 7fd28916a700 Level-0 table #179: started 2023/10/01-12:06:41.759034 7fd28916a700 Level-0 table #183: started
2023/09/30-22:46:17.057140 7fd28916a700 Level-0 table #179: 0 bytes OK 2023/10/01-12:06:41.759058 7fd28916a700 Level-0 table #183: 0 bytes OK
2023/09/30-22:46:17.066444 7fd28916a700 Delete type=0 #177 2023/10/01-12:06:41.769582 7fd28916a700 Delete type=0 #181
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/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/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) 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

@ -424,6 +424,23 @@ class DarksightEffect extends TargetedPowerEffect {
} }
} }
class DisguiseEffect extends TargetedPowerEffect {
get name () { return 'Disguise' }
get baseDurationRounds () { return 100 }
async prepResult () {
const raise = this.buttons === 'raise'
const icon = 'icons/skills/social/diplomacy-peace-alliance.webp'
this.effectDocs.push(
shim.createEffectDocument(
icon,
`${raise ? 'major' : 'minor'} ${this.name}`,
this.durationRounds,
[])
)
}
}
class DeflectionEffect extends TargetedPowerEffect { class DeflectionEffect extends TargetedPowerEffect {
get name () { get name () {
return 'Deflection' return 'Deflection'
@ -449,6 +466,38 @@ class DeflectionEffect extends TargetedPowerEffect {
} }
} }
class DetectConcealArcanaEffect extends TargetedPowerEffect {
get name () { return 'Detect/Conceal Arcana' }
get baseDurationRounds () {
if (this.inputs?.[this.inputIndex + 2] === true) {
return 600
}
return 5
}
async prepMenu () {
this.menuData.inputs = this.menuData.inputs.concat(
{ type: 'info', label: 'Detect or Conceal?' },
{ type: 'radio', label: 'Detect', options: ['isDetect', true] },
{ type: 'radio', label: 'Conceal', options: ['isDetect', false] },
{ type: 'checkbox', label: 'Strong (+1, conceal only)', options: false }
)
}
async prepResult () {
const raise = (this.buttons === 'raise')
const isDetect = this.inputs[this.inputIndex + 1] === true
const strong = !isDetect && !!this.inputs[this.inputIndex + 3]
const icon = (isDetect
? 'icons/magic/perception/third-eye-blue-red.webp'
: 'icons/magic/perception/silhouette-stealth-shadow.webp')
const name = `${raise ? 'major ' : ''}${isDetect ? 'Detect' : 'Conceal'} Arcana${strong ? ' (strong)' : ''}`
const effect = shim.createEffectDocument(icon, name, this.durationRounds, [])
this.effectDocs.push(effect)
}
}
class EntangleEffect extends TargetedPowerEffect { class EntangleEffect extends TargetedPowerEffect {
get name () { get name () {
return 'Entangle' return 'Entangle'
@ -1290,9 +1339,13 @@ const PowerClasses = {
'boost trait': BoostLowerTraitEffect, 'boost trait': BoostLowerTraitEffect,
burrow: BurrowEffect, burrow: BurrowEffect,
burst: BurstEffect, burst: BurstEffect,
'conceal arcana': DetectConcealArcanaEffect,
confusion: ConfusionEffect, confusion: ConfusionEffect,
darksight: DarksightEffect, darksight: DarksightEffect,
deflection: DeflectionEffect, deflection: DeflectionEffect,
'detect arcana': DetectConcealArcanaEffect,
'detect/conceal aracana': DetectConcealArcanaEffect,
disguise: DisguiseEffect,
entangle: EntangleEffect, entangle: EntangleEffect,
intangibility: IntangibilityEffect, intangibility: IntangibilityEffect,
invisibility: InvisibilityEffect, invisibility: InvisibilityEffect,