diff --git a/CHANGELOG.md b/CHANGELOG.md index 87b8abb..b50403f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Trait and Damage Roll hooks to look for and apply modifiers for target + conditions: + - Vulnerable + - Deflection + - Arcane Protection + - Arcane Resistance + - Scale + - Gang Up + - Resistences and Weaknesses - New Macro: Set token vision - New Common Action: Illumination (for the darkness penalty effects) - New macro: Quick Damage Roll diff --git a/packs/common-actions/CURRENT b/packs/common-actions/CURRENT index 1a84852..23b73d9 100644 --- a/packs/common-actions/CURRENT +++ b/packs/common-actions/CURRENT @@ -1 +1 @@ -MANIFEST-000002 +MANIFEST-000014 diff --git a/packs/common-actions/LOG b/packs/common-actions/LOG index cc909c1..d59dd93 100644 --- a/packs/common-actions/LOG +++ b/packs/common-actions/LOG @@ -1,5 +1,3 @@ -2023/12/18-23:38:01.173251 7fb80df3c700 Delete type=3 #1 -2023/12/18-23:38:01.175935 7fb80d481700 Level-0 table #5: started -2023/12/18-23:38:01.183313 7fb80d481700 Level-0 table #5: 12215 bytes OK -2023/12/18-23:38:01.192571 7fb80d481700 Delete type=0 #3 -2023/12/18-23:38:01.192679 7fb80d481700 Manual compaction at level-0 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items.effects!RC1Nz6iph8wPPK1B.g9W5hJisq3MsCpZW' @ 0 : 0; will stop at (end) +2023/12/19-22:11:46.585866 7f40dd7bc700 Recovering log #12 +2023/12/19-22:11:46.611108 7f40dd7bc700 Delete type=0 #12 +2023/12/19-22:11:46.611132 7f40dd7bc700 Delete type=3 #10 diff --git a/packs/common-actions/LOG.old b/packs/common-actions/LOG.old new file mode 100644 index 0000000..8d8b6ad --- /dev/null +++ b/packs/common-actions/LOG.old @@ -0,0 +1,8 @@ +2023/12/19-14:25:58.734016 7fb0acf3b700 Recovering log #8 +2023/12/19-14:25:58.748444 7fb0acf3b700 Delete type=3 #6 +2023/12/19-14:25:58.748474 7fb0acf3b700 Delete type=0 #8 +2023/12/19-22:08:59.600432 7fb086400700 Level-0 table #13: started +2023/12/19-22:08:59.600452 7fb086400700 Level-0 table #13: 0 bytes OK +2023/12/19-22:08:59.612412 7fb086400700 Delete type=0 #11 +2023/12/19-22:08:59.648733 7fb086400700 Manual compaction at level-0 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items.effects!RC1Nz6iph8wPPK1B.g9W5hJisq3MsCpZW' @ 0 : 0; will stop at (end) +2023/12/19-22:08:59.648868 7fb086400700 Manual compaction at level-1 from '!folders!0nDRFmMBs5DBJU9M' @ 72057594037927935 : 1 .. '!items.effects!RC1Nz6iph8wPPK1B.g9W5hJisq3MsCpZW' @ 0 : 0; will stop at (end) diff --git a/packs/common-actions/MANIFEST-000002 b/packs/common-actions/MANIFEST-000002 deleted file mode 100644 index 0916a64..0000000 Binary files a/packs/common-actions/MANIFEST-000002 and /dev/null differ diff --git a/packs/common-actions/MANIFEST-000014 b/packs/common-actions/MANIFEST-000014 new file mode 100644 index 0000000..5d83e41 Binary files /dev/null and b/packs/common-actions/MANIFEST-000014 differ diff --git a/packs/gear/CURRENT b/packs/gear/CURRENT index 1a84852..23b73d9 100644 --- a/packs/gear/CURRENT +++ b/packs/gear/CURRENT @@ -1 +1 @@ -MANIFEST-000002 +MANIFEST-000014 diff --git a/packs/gear/LOG b/packs/gear/LOG index 00446c8..5eefaa0 100644 --- a/packs/gear/LOG +++ b/packs/gear/LOG @@ -1,5 +1,3 @@ -2023/12/18-23:38:02.394612 7fa8daffd700 Delete type=3 #1 -2023/12/18-23:38:02.397080 7fa8d9d82700 Level-0 table #5: started -2023/12/18-23:38:02.404288 7fa8d9d82700 Level-0 table #5: 6787 bytes OK -2023/12/18-23:38:02.413227 7fa8d9d82700 Delete type=0 #3 -2023/12/18-23:38:02.413348 7fa8d9d82700 Manual compaction at level-0 from '!items!JWyBQe4tnOYljFAF' @ 72057594037927935 : 1 .. '!items!tWWSfEMmLmws6Yb1' @ 0 : 0; will stop at (end) +2023/12/19-22:11:46.716627 7f5d39ffb700 Recovering log #12 +2023/12/19-22:11:46.739685 7f5d39ffb700 Delete type=0 #12 +2023/12/19-22:11:46.739711 7f5d39ffb700 Delete type=3 #10 diff --git a/packs/gear/LOG.old b/packs/gear/LOG.old new file mode 100644 index 0000000..40a24c7 --- /dev/null +++ b/packs/gear/LOG.old @@ -0,0 +1,8 @@ +2023/12/19-14:25:58.761898 7fb0acf3b700 Recovering log #8 +2023/12/19-14:25:58.781218 7fb0acf3b700 Delete type=3 #6 +2023/12/19-14:25:58.781255 7fb0acf3b700 Delete type=0 #8 +2023/12/19-22:08:59.648947 7fb086400700 Level-0 table #13: started +2023/12/19-22:08:59.648972 7fb086400700 Level-0 table #13: 0 bytes OK +2023/12/19-22:08:59.658595 7fb086400700 Delete type=0 #11 +2023/12/19-22:08:59.677223 7fb086400700 Manual compaction at level-0 from '!items!JWyBQe4tnOYljFAF' @ 72057594037927935 : 1 .. '!items!tWWSfEMmLmws6Yb1' @ 0 : 0; will stop at (end) +2023/12/19-22:08:59.677310 7fb086400700 Manual compaction at level-1 from '!items!JWyBQe4tnOYljFAF' @ 72057594037927935 : 1 .. '!items!tWWSfEMmLmws6Yb1' @ 0 : 0; will stop at (end) diff --git a/packs/gear/MANIFEST-000002 b/packs/gear/MANIFEST-000002 deleted file mode 100644 index aa2beac..0000000 Binary files a/packs/gear/MANIFEST-000002 and /dev/null differ diff --git a/packs/gear/MANIFEST-000014 b/packs/gear/MANIFEST-000014 new file mode 100644 index 0000000..817e197 Binary files /dev/null and b/packs/gear/MANIFEST-000014 differ diff --git a/packs/helper-actors/CURRENT b/packs/helper-actors/CURRENT index 1a84852..23b73d9 100644 --- a/packs/helper-actors/CURRENT +++ b/packs/helper-actors/CURRENT @@ -1 +1 @@ -MANIFEST-000002 +MANIFEST-000014 diff --git a/packs/helper-actors/LOG b/packs/helper-actors/LOG index afa8223..29a0553 100644 --- a/packs/helper-actors/LOG +++ b/packs/helper-actors/LOG @@ -1,5 +1,3 @@ -2023/12/18-23:38:03.189021 7f306ffff700 Delete type=3 #1 -2023/12/18-23:38:03.191864 7f306e7fc700 Level-0 table #5: started -2023/12/18-23:38:03.198720 7f306e7fc700 Level-0 table #5: 1751 bytes OK -2023/12/18-23:38:03.207506 7f306e7fc700 Delete type=0 #3 -2023/12/18-23:38:03.207610 7f306e7fc700 Manual compaction at level-0 from '!actors!U5v4gFHquo0Y1SAq' @ 72057594037927935 : 1 .. '!actors!U5v4gFHquo0Y1SAq' @ 0 : 0; will stop at (end) +2023/12/19-22:11:46.843641 7ff2615a2700 Recovering log #12 +2023/12/19-22:11:46.864924 7ff2615a2700 Delete type=0 #12 +2023/12/19-22:11:46.864950 7ff2615a2700 Delete type=3 #10 diff --git a/packs/helper-actors/LOG.old b/packs/helper-actors/LOG.old new file mode 100644 index 0000000..73332a3 --- /dev/null +++ b/packs/helper-actors/LOG.old @@ -0,0 +1,8 @@ +2023/12/19-14:25:58.750811 7fb087fff700 Recovering log #8 +2023/12/19-14:25:58.759586 7fb087fff700 Delete type=3 #6 +2023/12/19-14:25:58.759616 7fb087fff700 Delete type=0 #8 +2023/12/19-22:08:59.612497 7fb086400700 Level-0 table #13: started +2023/12/19-22:08:59.612518 7fb086400700 Level-0 table #13: 0 bytes OK +2023/12/19-22:08:59.622048 7fb086400700 Delete type=0 #11 +2023/12/19-22:08:59.648768 7fb086400700 Manual compaction at level-0 from '!actors!U5v4gFHquo0Y1SAq' @ 72057594037927935 : 1 .. '!actors!U5v4gFHquo0Y1SAq' @ 0 : 0; will stop at (end) +2023/12/19-22:08:59.648884 7fb086400700 Manual compaction at level-1 from '!actors!U5v4gFHquo0Y1SAq' @ 72057594037927935 : 1 .. '!actors!U5v4gFHquo0Y1SAq' @ 0 : 0; will stop at (end) diff --git a/packs/helper-actors/MANIFEST-000002 b/packs/helper-actors/MANIFEST-000002 deleted file mode 100644 index e01a079..0000000 Binary files a/packs/helper-actors/MANIFEST-000002 and /dev/null differ diff --git a/packs/helper-actors/MANIFEST-000014 b/packs/helper-actors/MANIFEST-000014 new file mode 100644 index 0000000..cf98f38 Binary files /dev/null and b/packs/helper-actors/MANIFEST-000014 differ diff --git a/packs/helper-macros/CURRENT b/packs/helper-macros/CURRENT index 1a84852..23b73d9 100644 --- a/packs/helper-macros/CURRENT +++ b/packs/helper-macros/CURRENT @@ -1 +1 @@ -MANIFEST-000002 +MANIFEST-000014 diff --git a/packs/helper-macros/LOG b/packs/helper-macros/LOG index 1098a98..948bac9 100644 --- a/packs/helper-macros/LOG +++ b/packs/helper-macros/LOG @@ -1,5 +1,3 @@ -2023/12/18-23:38:03.938107 7f566efbe700 Delete type=3 #1 -2023/12/18-23:38:03.940484 7f566d542700 Level-0 table #5: started -2023/12/18-23:38:03.948092 7f566d542700 Level-0 table #5: 12050 bytes OK -2023/12/18-23:38:03.956941 7f566d542700 Delete type=0 #3 -2023/12/18-23:38:03.957060 7f566d542700 Manual compaction at level-0 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end) +2023/12/19-22:11:46.967222 7fb6ee7bf700 Recovering log #12 +2023/12/19-22:11:46.993517 7fb6ee7bf700 Delete type=0 #12 +2023/12/19-22:11:46.993540 7fb6ee7bf700 Delete type=3 #10 diff --git a/packs/helper-macros/LOG.old b/packs/helper-macros/LOG.old new file mode 100644 index 0000000..eb01f08 --- /dev/null +++ b/packs/helper-macros/LOG.old @@ -0,0 +1,8 @@ +2023/12/19-14:25:58.719315 7fb087fff700 Recovering log #8 +2023/12/19-14:25:58.732527 7fb087fff700 Delete type=3 #6 +2023/12/19-14:25:58.732555 7fb087fff700 Delete type=0 #8 +2023/12/19-22:08:59.638378 7fb086400700 Level-0 table #13: started +2023/12/19-22:08:59.638400 7fb086400700 Level-0 table #13: 0 bytes OK +2023/12/19-22:08:59.648647 7fb086400700 Delete type=0 #11 +2023/12/19-22:08:59.648837 7fb086400700 Manual compaction at level-0 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end) +2023/12/19-22:08:59.677175 7fb086400700 Manual compaction at level-1 from '!folders!hIbrWxg1nDutCSwt' @ 72057594037927935 : 1 .. '!macros!wU2mAUnw3RW9qMT8' @ 0 : 0; will stop at (end) diff --git a/packs/helper-macros/MANIFEST-000002 b/packs/helper-macros/MANIFEST-000002 deleted file mode 100644 index 8562096..0000000 Binary files a/packs/helper-macros/MANIFEST-000002 and /dev/null differ diff --git a/packs/helper-macros/MANIFEST-000014 b/packs/helper-macros/MANIFEST-000014 new file mode 100644 index 0000000..ee8985e Binary files /dev/null and b/packs/helper-macros/MANIFEST-000014 differ diff --git a/packs/module-docs/000005.ldb b/packs/module-docs/000014.ldb similarity index 70% rename from packs/module-docs/000005.ldb rename to packs/module-docs/000014.ldb index 360c3cd..ae757ca 100644 Binary files a/packs/module-docs/000005.ldb and b/packs/module-docs/000014.ldb differ diff --git a/packs/module-docs/CURRENT b/packs/module-docs/CURRENT index 1a84852..42c62b6 100644 --- a/packs/module-docs/CURRENT +++ b/packs/module-docs/CURRENT @@ -1 +1 @@ -MANIFEST-000002 +MANIFEST-000015 diff --git a/packs/module-docs/LOG b/packs/module-docs/LOG index 6ac9446..614cd03 100644 --- a/packs/module-docs/LOG +++ b/packs/module-docs/LOG @@ -1,5 +1,3 @@ -2023/12/18-23:38:04.812110 7f4d227be700 Delete type=3 #1 -2023/12/18-23:38:04.814586 7f4d20fbb700 Level-0 table #5: started -2023/12/18-23:38:04.821794 7f4d20fbb700 Level-0 table #5: 10624 bytes OK -2023/12/18-23:38:04.830506 7f4d20fbb700 Delete type=0 #3 -2023/12/18-23:38:04.830630 7f4d20fbb700 Manual compaction at level-0 from '!journal!HbtPlHNFO1L6RVj0' @ 72057594037927935 : 1 .. '!journal.pages!YSuk1v59tLaL9XUK.BlDoYgdTxhyCBP3Y' @ 0 : 0; will stop at (end) +2023/12/19-22:11:47.107915 7f81967fc700 Recovering log #12 +2023/12/19-22:11:47.129799 7f81967fc700 Delete type=0 #12 +2023/12/19-22:11:47.129819 7f81967fc700 Delete type=3 #10 diff --git a/packs/module-docs/LOG.old b/packs/module-docs/LOG.old new file mode 100644 index 0000000..4fbe5e2 --- /dev/null +++ b/packs/module-docs/LOG.old @@ -0,0 +1,15 @@ +2023/12/19-14:25:58.704299 7fb0acf3b700 Recovering log #8 +2023/12/19-14:25:58.717166 7fb0acf3b700 Delete type=3 #6 +2023/12/19-14:25:58.717190 7fb0acf3b700 Delete type=0 #8 +2023/12/19-22:08:59.583949 7fb086400700 Level-0 table #13: started +2023/12/19-22:08:59.590634 7fb086400700 Level-0 table #13: 7975 bytes OK +2023/12/19-22:08:59.600142 7fb086400700 Delete type=0 #11 +2023/12/19-22:08:59.600341 7fb086400700 Manual compaction at level-0 from '!journal!HbtPlHNFO1L6RVj0' @ 72057594037927935 : 1 .. '!journal.pages!YSuk1v59tLaL9XUK.BxFgDb91dqbkO9h4' @ 0 : 0; will stop at (end) +2023/12/19-22:08:59.622125 7fb086400700 Manual compaction at level-1 from '!journal!HbtPlHNFO1L6RVj0' @ 72057594037927935 : 1 .. '!journal.pages!YSuk1v59tLaL9XUK.BxFgDb91dqbkO9h4' @ 0 : 0; will stop at '!journal.pages!YSuk1v59tLaL9XUK.BxFgDb91dqbkO9h4' @ 17 : 1 +2023/12/19-22:08:59.622154 7fb086400700 Compacting 1@1 + 1@2 files +2023/12/19-22:08:59.629116 7fb086400700 Generated table #14@1: 17 keys, 11373 bytes +2023/12/19-22:08:59.629154 7fb086400700 Compacted 1@1 + 1@2 files => 11373 bytes +2023/12/19-22:08:59.638172 7fb086400700 compacted to: files[ 0 0 1 0 0 0 0 ] +2023/12/19-22:08:59.638243 7fb086400700 Delete type=2 #5 +2023/12/19-22:08:59.638324 7fb086400700 Delete type=2 #13 +2023/12/19-22:08:59.648805 7fb086400700 Manual compaction at level-1 from '!journal.pages!YSuk1v59tLaL9XUK.BxFgDb91dqbkO9h4' @ 17 : 1 .. '!journal.pages!YSuk1v59tLaL9XUK.BxFgDb91dqbkO9h4' @ 0 : 0; will stop at (end) diff --git a/packs/module-docs/MANIFEST-000002 b/packs/module-docs/MANIFEST-000002 deleted file mode 100644 index 95cc457..0000000 Binary files a/packs/module-docs/MANIFEST-000002 and /dev/null differ diff --git a/packs/module-docs/MANIFEST-000015 b/packs/module-docs/MANIFEST-000015 new file mode 100644 index 0000000..c554a59 Binary files /dev/null and b/packs/module-docs/MANIFEST-000015 differ diff --git a/packs/module-docs/_source/Setting_Adjustments_YSuk1v59tLaL9XUK.json b/packs/module-docs/_source/Setting_Adjustments_YSuk1v59tLaL9XUK.json index 148aaa4..afa67b3 100644 --- a/packs/module-docs/_source/Setting_Adjustments_YSuk1v59tLaL9XUK.json +++ b/packs/module-docs/_source/Setting_Adjustments_YSuk1v59tLaL9XUK.json @@ -35,6 +35,41 @@ "lastModifiedBy": "sVoCvBU1knmXzoYe" }, "_key": "!journal.pages!YSuk1v59tLaL9XUK.BlDoYgdTxhyCBP3Y" + }, + { + "sort": 200000, + "name": "Roll Modifier Hooks", + "type": "text", + "_id": "BxFgDb91dqbkO9h4", + "title": { + "show": true, + "level": 1 + }, + "image": {}, + "text": { + "format": 1, + "content": "
SWADE Trait and Damage Rolls can now take into account common modifiers based on the target, if there is exactly one attacker and one target. Most will show up on all trait rolls if the target conditions are right. Gang up bonuses will only show up on Fighting rolls.
Any of the proposed modifiers may be ignored by checking the Ignore checkbox. Some modifiers are pre-ignored and must be unchecked to take effect.
The following target conditions are checked for before trait rolls:
Vulnerable
Deflection (as applied by the Deflection power effect from this module)
Arcane Protection (as applied by the Arcane Protection power effect from this module)
Arcane Resistance
Scale Modifiers
Gang Up, taking into account Block and Formation Fighter
The following target conditions are checked for before damage rolls:
Arcane Protection (as applied by the Arcane Protection power effect from this module)
Arcane Resistance
Special Abilities with 'weakness' in the swid (ignored by default, +4 damage)
Special Abilities with 'resistance' in the swid (ignored by default, -4 damage)
Gang Up bonus if the attacker has Pack Tactics