diff --git a/main.mjs b/main.mjs index 027a56b..3866c11 100644 --- a/main.mjs +++ b/main.mjs @@ -1,4 +1,4 @@ -Hooks.on("ready", () => { +Hooks.on("init", () => { const config = { magicLores: { @@ -42,7 +42,7 @@ Hooks.on("ready", () => { } else { ChatMessage.create({ content: "Gorka Morka takes your advantages!" }); this.actor.update({ "system.status.advantage.value": Math.max(this.actor.status.advantage.value -1, 0) }, {skipGroupAdvantage: true}); - this.effect.sourceTest.actor.update({ "system.status.advantage.value": this.parent.system.status.advantage.value }, {skipGroupAdvantage: true}); + this.effect.sourceTest.actor.update({ "system.status.advantage.value": this.effect.sourceTest.actor.status.advantage.value + 1}, {skipGroupAdvantage: true}); } `, options : { diff --git a/packs/ug-careerstalentstraits/000015.log b/packs/ug-careerstalentstraits/000017.log similarity index 100% rename from packs/ug-careerstalentstraits/000015.log rename to packs/ug-careerstalentstraits/000017.log diff --git a/packs/ug-careerstalentstraits/CURRENT b/packs/ug-careerstalentstraits/CURRENT index 23b73d9..32108be 100644 --- a/packs/ug-careerstalentstraits/CURRENT +++ b/packs/ug-careerstalentstraits/CURRENT @@ -1 +1 @@ -MANIFEST-000014 +MANIFEST-000016 diff --git a/packs/ug-careerstalentstraits/LOG b/packs/ug-careerstalentstraits/LOG index 555ec22..257f611 100644 --- a/packs/ug-careerstalentstraits/LOG +++ b/packs/ug-careerstalentstraits/LOG @@ -1,3 +1,3 @@ -2024/06/04-14:56:57.099 3d1c Recovering log #13 -2024/06/04-14:56:57.116 3d1c Delete type=0 #13 -2024/06/04-14:56:57.116 3d1c Delete type=3 #12 +2024/06/04-15:41:52.709 7048 Recovering log #15 +2024/06/04-15:41:52.728 7048 Delete type=0 #15 +2024/06/04-15:41:52.728 7048 Delete type=3 #14 diff --git a/packs/ug-careerstalentstraits/MANIFEST-000014 b/packs/ug-careerstalentstraits/MANIFEST-000016 similarity index 88% rename from packs/ug-careerstalentstraits/MANIFEST-000014 rename to packs/ug-careerstalentstraits/MANIFEST-000016 index cc0a862..0348f27 100644 Binary files a/packs/ug-careerstalentstraits/MANIFEST-000014 and b/packs/ug-careerstalentstraits/MANIFEST-000016 differ diff --git a/packs/ug-creatures/000015.log b/packs/ug-creatures/000017.log similarity index 100% rename from packs/ug-creatures/000015.log rename to packs/ug-creatures/000017.log diff --git a/packs/ug-creatures/CURRENT b/packs/ug-creatures/CURRENT index 23b73d9..32108be 100644 --- a/packs/ug-creatures/CURRENT +++ b/packs/ug-creatures/CURRENT @@ -1 +1 @@ -MANIFEST-000014 +MANIFEST-000016 diff --git a/packs/ug-creatures/LOG b/packs/ug-creatures/LOG index c4829de..ceda0bc 100644 --- a/packs/ug-creatures/LOG +++ b/packs/ug-creatures/LOG @@ -1,3 +1,3 @@ -2024/06/04-14:56:57.133 4fa0 Recovering log #13 -2024/06/04-14:56:57.148 4fa0 Delete type=0 #13 -2024/06/04-14:56:57.149 4fa0 Delete type=3 #12 +2024/06/04-15:41:52.744 4d7c Recovering log #15 +2024/06/04-15:41:52.762 4d7c Delete type=0 #15 +2024/06/04-15:41:52.763 4d7c Delete type=3 #14 diff --git a/packs/ug-creatures/MANIFEST-000014 b/packs/ug-creatures/MANIFEST-000016 similarity index 68% rename from packs/ug-creatures/MANIFEST-000014 rename to packs/ug-creatures/MANIFEST-000016 index 0a67350..eb1b891 100644 Binary files a/packs/ug-creatures/MANIFEST-000014 and b/packs/ug-creatures/MANIFEST-000016 differ diff --git a/packs/ug-spells/000015.log b/packs/ug-spells/000017.log similarity index 100% rename from packs/ug-spells/000015.log rename to packs/ug-spells/000017.log diff --git a/packs/ug-spells/CURRENT b/packs/ug-spells/CURRENT index 23b73d9..32108be 100644 --- a/packs/ug-spells/CURRENT +++ b/packs/ug-spells/CURRENT @@ -1 +1 @@ -MANIFEST-000014 +MANIFEST-000016 diff --git a/packs/ug-spells/LOG b/packs/ug-spells/LOG index 96a177d..af3bbcb 100644 --- a/packs/ug-spells/LOG +++ b/packs/ug-spells/LOG @@ -1,3 +1,3 @@ -2024/06/04-14:56:57.007 3d1c Recovering log #13 -2024/06/04-14:56:57.021 3d1c Delete type=0 #13 -2024/06/04-14:56:57.021 3d1c Delete type=3 #12 +2024/06/04-15:41:52.632 7048 Recovering log #15 +2024/06/04-15:41:52.653 7048 Delete type=0 #15 +2024/06/04-15:41:52.654 7048 Delete type=3 #14 diff --git a/packs/ug-spells/MANIFEST-000014 b/packs/ug-spells/MANIFEST-000016 similarity index 86% rename from packs/ug-spells/MANIFEST-000014 rename to packs/ug-spells/MANIFEST-000016 index bf26d0f..57b981e 100644 Binary files a/packs/ug-spells/MANIFEST-000014 and b/packs/ug-spells/MANIFEST-000016 differ diff --git a/packs/ug-waaagh-spells/000018.log b/packs/ug-waaagh-spells/000022.log similarity index 100% rename from packs/ug-waaagh-spells/000018.log rename to packs/ug-waaagh-spells/000022.log diff --git a/packs/ug-waaagh-spells/CURRENT b/packs/ug-waaagh-spells/CURRENT index 32108be..e60e154 100644 --- a/packs/ug-waaagh-spells/CURRENT +++ b/packs/ug-waaagh-spells/CURRENT @@ -1 +1 @@ -MANIFEST-000016 +MANIFEST-000021 diff --git a/packs/ug-waaagh-spells/LOG b/packs/ug-waaagh-spells/LOG index d0b7c0c..bb2f737 100644 --- a/packs/ug-waaagh-spells/LOG +++ b/packs/ug-waaagh-spells/LOG @@ -1,15 +1,3 @@ -2024/06/04-15:38:18.105 1c30 Recovering log #15 -2024/06/04-15:38:18.119 1c30 Delete type=0 #15 -2024/06/04-15:38:18.119 1c30 Delete type=3 #14 -2024/06/04-15:38:18.128 9ca0 Level-0 table #19: started -2024/06/04-15:38:18.134 9ca0 Level-0 table #19: 19922 bytes OK -2024/06/04-15:38:18.140 9ca0 Delete type=0 #17 -2024/06/04-15:38:18.141 9ca0 Manual compaction at level-0 from '!items!1jwCu9svFISETHTj' @ 72057594037927935 : 1 .. '!items!yc9nQVXrtd1uWykG' @ 0 : 0; will stop at '!items!yc9nQVXrtd1uWykG' @ 33 : 1 -2024/06/04-15:38:18.141 9ca0 Compacting 3@0 + 0@1 files -2024/06/04-15:38:18.148 9ca0 Generated table #20@0: 33 keys, 19922 bytes -2024/06/04-15:38:18.148 9ca0 Compacted 3@0 + 0@1 files => 19922 bytes -2024/06/04-15:38:18.153 9ca0 compacted to: files[ 0 1 0 0 0 0 0 ] -2024/06/04-15:38:18.153 9ca0 Delete type=2 #5 -2024/06/04-15:38:18.153 9ca0 Delete type=2 #10 -2024/06/04-15:38:18.154 9ca0 Delete type=2 #19 -2024/06/04-15:38:18.154 9ca0 Manual compaction at level-0 from '!items!yc9nQVXrtd1uWykG' @ 33 : 1 .. '!items!yc9nQVXrtd1uWykG' @ 0 : 0; will stop at (end) +2024/06/04-15:41:52.674 4d7c Recovering log #18 +2024/06/04-15:41:52.698 4d7c Delete type=0 #18 +2024/06/04-15:41:52.699 4d7c Delete type=3 #16 diff --git a/packs/ug-waaagh-spells/MANIFEST-000016 b/packs/ug-waaagh-spells/MANIFEST-000016 deleted file mode 100644 index 10c3f6b..0000000 Binary files a/packs/ug-waaagh-spells/MANIFEST-000016 and /dev/null differ diff --git a/packs/ug-waaagh-spells/MANIFEST-000021 b/packs/ug-waaagh-spells/MANIFEST-000021 new file mode 100644 index 0000000..8de7ea2 Binary files /dev/null and b/packs/ug-waaagh-spells/MANIFEST-000021 differ