From dbb7072913e1caf0ce1ea35b6a9907fd4b4e2fbd Mon Sep 17 00:00:00 2001 From: Marek Kembrowski Date: Tue, 4 Jun 2024 15:58:16 +0200 Subject: [PATCH] fixing waaagh effect --- main.mjs | 4 ++-- .../{000015.log => 000017.log} | 0 packs/ug-careerstalentstraits/CURRENT | 2 +- packs/ug-careerstalentstraits/LOG | 6 +++--- .../{MANIFEST-000014 => MANIFEST-000016} | Bin 188 -> 188 bytes packs/ug-creatures/{000015.log => 000017.log} | 0 packs/ug-creatures/CURRENT | 2 +- packs/ug-creatures/LOG | 6 +++--- .../{MANIFEST-000014 => MANIFEST-000016} | Bin 241 -> 241 bytes packs/ug-spells/{000015.log => 000017.log} | 0 packs/ug-spells/CURRENT | 2 +- packs/ug-spells/LOG | 6 +++--- .../{MANIFEST-000014 => MANIFEST-000016} | Bin 191 -> 191 bytes .../{000018.log => 000022.log} | 0 packs/ug-waaagh-spells/CURRENT | 2 +- packs/ug-waaagh-spells/LOG | 18 +++--------------- packs/ug-waaagh-spells/MANIFEST-000016 | Bin 403 -> 0 bytes packs/ug-waaagh-spells/MANIFEST-000021 | Bin 0 -> 154 bytes 18 files changed, 18 insertions(+), 30 deletions(-) rename packs/ug-careerstalentstraits/{000015.log => 000017.log} (100%) rename packs/ug-careerstalentstraits/{MANIFEST-000014 => MANIFEST-000016} (88%) rename packs/ug-creatures/{000015.log => 000017.log} (100%) rename packs/ug-creatures/{MANIFEST-000014 => MANIFEST-000016} (68%) rename packs/ug-spells/{000015.log => 000017.log} (100%) rename packs/ug-spells/{MANIFEST-000014 => MANIFEST-000016} (86%) rename packs/ug-waaagh-spells/{000018.log => 000022.log} (100%) delete mode 100644 packs/ug-waaagh-spells/MANIFEST-000016 create mode 100644 packs/ug-waaagh-spells/MANIFEST-000021 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 cc0a8625fe9d21f244b6226dbb4df93d691b5eb7..0348f27ba63398acb44031b1e9bd618d7dc00b79 100644 GIT binary patch delta 22 dcmdnPxQB7VT7Jg%5;G14MkYZ{24*1^DF8pnKLxI*ZS1wKlMkYZ{24*3a8$1A9F9p*8 delta 23 ecmey!_>pnKLji8CdpVp8j7 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 10c3f6bc78791ac86e08f134a5968cd8d94f1499..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 403 zcmXqgcz@Lj21Z7yoYb<^oRlOzr^=Gl^338?=ltA)#G=HK{33P+uEiS}bCAo9MVisve! ehKjNzvohfH8q`s246JMnTx<-&?2IB*upa=!QfDjx diff --git a/packs/ug-waaagh-spells/MANIFEST-000021 b/packs/ug-waaagh-spells/MANIFEST-000021 new file mode 100644 index 0000000000000000000000000000000000000000..8de7ea2869ba58d8a9012ac98f7bf358ceb04482 GIT binary patch literal 154 zcmX>aU@)hJfss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zlfDVUNN&IHMdx?GTAaO zFf5{|B*m~ayfWLJQIP=**cnAG&1QtDGR!J>F10K!bMp*#4ev1e&XNoOQsF8u literal 0 HcmV?d00001