diff --git a/main.mjs b/main.mjs new file mode 100644 index 0000000..027a56b --- /dev/null +++ b/main.mjs @@ -0,0 +1,63 @@ +Hooks.on("ready", () => { + const config = { + + magicLores: { + waaagh: "Da Big Waaagh!" + }, + + magicWind: { + waaagh: "Da Big Waaagh!" + }, + + loreEffectDescriptions: { + waaagh: "Waaagh! Gorka Morka!" + }, + + loreEffects: { + waaagh: { + name: "Da Big Waaagh!", + icon: "modules/wfrp4e-unofficial-grimoire/icons/spell_waaaaaagh!.jpg", + transfer: true, + flags: { + wfrp4e: { + lore: true, + applicationData: { + type: "target" + }, + scriptData: [ + { + trigger: "immediate", + label : "@effect.name", + script : ` + if (game.settings.get("wfrp4e","useGroupAdvantage")) { + let advantage = game.settings.get("wfrp4e", "groupAdvantageValues") + let playersAdvantage = advantage["players"]; + let enemiesAdvantage = advantage["enemies"]; + if (playersAdvantage > 0) { + playersAdvantage -= 1; + enemiesAdvantage += 1; + ChatMessage.create({ content: "Gorka Morka takes your advantages!" }); + await game.wfrp4e.utility.updateGroupAdvantage({"players" : playersAdvantage, "enemies" : enemiesAdvantage}); + } + } 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}); + } + `, + options : { + immediate : { + deleteEffect : true + } + } + } + ] + }, + } + } + } + } + foundry.utils.mergeObject(game.wfrp4e.config, config); + }); + + \ No newline at end of file diff --git a/module.json b/module.json index 608c0c7..c5b06a0 100644 --- a/module.json +++ b/module.json @@ -45,6 +45,9 @@ "flags": {}, "private": false } + ], + "esmodules": [ + "/main.mjs" ], "relationships": { "systems": [ diff --git a/packs/ug-careerstalentstraits/000011.log b/packs/ug-careerstalentstraits/000015.log similarity index 100% rename from packs/ug-careerstalentstraits/000011.log rename to packs/ug-careerstalentstraits/000015.log diff --git a/packs/ug-careerstalentstraits/CURRENT b/packs/ug-careerstalentstraits/CURRENT index 6ba31a3..23b73d9 100644 --- a/packs/ug-careerstalentstraits/CURRENT +++ b/packs/ug-careerstalentstraits/CURRENT @@ -1 +1 @@ -MANIFEST-000009 +MANIFEST-000014 diff --git a/packs/ug-careerstalentstraits/LOG b/packs/ug-careerstalentstraits/LOG index 15277a9..555ec22 100644 --- a/packs/ug-careerstalentstraits/LOG +++ b/packs/ug-careerstalentstraits/LOG @@ -1,5 +1,3 @@ -2024/06/04-14:07:21.128 8278 Recovering log #8 -2024/06/04-14:07:21.129 8278 Level-0 table #10: started -2024/06/04-14:07:21.134 8278 Level-0 table #10: 7867 bytes OK -2024/06/04-14:07:21.148 8278 Delete type=0 #8 -2024/06/04-14:07:21.148 8278 Delete type=3 #7 +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 diff --git a/packs/ug-careerstalentstraits/MANIFEST-000009 b/packs/ug-careerstalentstraits/MANIFEST-000009 deleted file mode 100644 index 1eb4dae..0000000 Binary files a/packs/ug-careerstalentstraits/MANIFEST-000009 and /dev/null differ diff --git a/packs/ug-careerstalentstraits/MANIFEST-000014 b/packs/ug-careerstalentstraits/MANIFEST-000014 new file mode 100644 index 0000000..cc0a862 Binary files /dev/null and b/packs/ug-careerstalentstraits/MANIFEST-000014 differ diff --git a/packs/ug-creatures/000011.log b/packs/ug-creatures/000015.log similarity index 100% rename from packs/ug-creatures/000011.log rename to packs/ug-creatures/000015.log diff --git a/packs/ug-creatures/CURRENT b/packs/ug-creatures/CURRENT index 6ba31a3..23b73d9 100644 --- a/packs/ug-creatures/CURRENT +++ b/packs/ug-creatures/CURRENT @@ -1 +1 @@ -MANIFEST-000009 +MANIFEST-000014 diff --git a/packs/ug-creatures/LOG b/packs/ug-creatures/LOG index c4325ad..c4829de 100644 --- a/packs/ug-creatures/LOG +++ b/packs/ug-creatures/LOG @@ -1,5 +1,3 @@ -2024/06/04-14:07:23.868 87d4 Recovering log #8 -2024/06/04-14:07:23.873 87d4 Level-0 table #10: started -2024/06/04-14:07:23.889 87d4 Level-0 table #10: 497243 bytes OK -2024/06/04-14:07:23.904 87d4 Delete type=0 #8 -2024/06/04-14:07:23.905 87d4 Delete type=3 #7 +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 diff --git a/packs/ug-creatures/MANIFEST-000009 b/packs/ug-creatures/MANIFEST-000009 deleted file mode 100644 index 283a362..0000000 Binary files a/packs/ug-creatures/MANIFEST-000009 and /dev/null differ diff --git a/packs/ug-creatures/MANIFEST-000014 b/packs/ug-creatures/MANIFEST-000014 new file mode 100644 index 0000000..0a67350 Binary files /dev/null and b/packs/ug-creatures/MANIFEST-000014 differ diff --git a/packs/ug-spells/000011.log b/packs/ug-spells/000015.log similarity index 100% rename from packs/ug-spells/000011.log rename to packs/ug-spells/000015.log diff --git a/packs/ug-spells/CURRENT b/packs/ug-spells/CURRENT index 6ba31a3..23b73d9 100644 --- a/packs/ug-spells/CURRENT +++ b/packs/ug-spells/CURRENT @@ -1 +1 @@ -MANIFEST-000009 +MANIFEST-000014 diff --git a/packs/ug-spells/LOG b/packs/ug-spells/LOG index ec53589..96a177d 100644 --- a/packs/ug-spells/LOG +++ b/packs/ug-spells/LOG @@ -1,5 +1,3 @@ -2024/06/04-14:07:30.678 7a84 Recovering log #8 -2024/06/04-14:07:30.679 7a84 Level-0 table #10: started -2024/06/04-14:07:30.697 7a84 Level-0 table #10: 130219 bytes OK -2024/06/04-14:07:30.710 7a84 Delete type=0 #8 -2024/06/04-14:07:30.710 7a84 Delete type=3 #7 +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 diff --git a/packs/ug-spells/MANIFEST-000009 b/packs/ug-spells/MANIFEST-000009 deleted file mode 100644 index c7d83a2..0000000 Binary files a/packs/ug-spells/MANIFEST-000009 and /dev/null differ diff --git a/packs/ug-spells/MANIFEST-000014 b/packs/ug-spells/MANIFEST-000014 new file mode 100644 index 0000000..bf26d0f Binary files /dev/null and b/packs/ug-spells/MANIFEST-000014 differ diff --git a/packs/ug-waaagh-spells/000005.ldb b/packs/ug-waaagh-spells/000005.ldb deleted file mode 100644 index 1e31fa7..0000000 Binary files a/packs/ug-waaagh-spells/000005.ldb and /dev/null differ diff --git a/packs/ug-waaagh-spells/000010.ldb b/packs/ug-waaagh-spells/000010.ldb deleted file mode 100644 index 57f1c6b..0000000 Binary files a/packs/ug-waaagh-spells/000010.ldb and /dev/null differ diff --git a/packs/ug-waaagh-spells/000011.log b/packs/ug-waaagh-spells/000018.log similarity index 100% rename from packs/ug-waaagh-spells/000011.log rename to packs/ug-waaagh-spells/000018.log diff --git a/packs/ug-waaagh-spells/000020.ldb b/packs/ug-waaagh-spells/000020.ldb new file mode 100644 index 0000000..c9456df Binary files /dev/null and b/packs/ug-waaagh-spells/000020.ldb differ diff --git a/packs/ug-waaagh-spells/CURRENT b/packs/ug-waaagh-spells/CURRENT index 6ba31a3..32108be 100644 --- a/packs/ug-waaagh-spells/CURRENT +++ b/packs/ug-waaagh-spells/CURRENT @@ -1 +1 @@ -MANIFEST-000009 +MANIFEST-000016 diff --git a/packs/ug-waaagh-spells/LOG b/packs/ug-waaagh-spells/LOG index 85cc68f..d0b7c0c 100644 --- a/packs/ug-waaagh-spells/LOG +++ b/packs/ug-waaagh-spells/LOG @@ -1,5 +1,15 @@ -2024/06/04-14:07:26.589 825c Recovering log #8 -2024/06/04-14:07:26.589 825c Level-0 table #10: started -2024/06/04-14:07:26.596 825c Level-0 table #10: 22691 bytes OK -2024/06/04-14:07:26.610 825c Delete type=0 #8 -2024/06/04-14:07:26.610 825c Delete type=3 #7 +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) diff --git a/packs/ug-waaagh-spells/MANIFEST-000009 b/packs/ug-waaagh-spells/MANIFEST-000009 deleted file mode 100644 index 2e1b7fd..0000000 Binary files a/packs/ug-waaagh-spells/MANIFEST-000009 and /dev/null differ diff --git a/packs/ug-waaagh-spells/MANIFEST-000016 b/packs/ug-waaagh-spells/MANIFEST-000016 new file mode 100644 index 0000000..10c3f6b Binary files /dev/null and b/packs/ug-waaagh-spells/MANIFEST-000016 differ diff --git a/packs/ug-waaagh-spells/_source/Brain_Bursta_6CGGy4wRiTHjLBd3.json b/packs/ug-waaagh-spells/_source/Brain_Bursta_6CGGy4wRiTHjLBd3.json index c243fd4..3b77d83 100644 --- a/packs/ug-waaagh-spells/_source/Brain_Bursta_6CGGy4wRiTHjLBd3.json +++ b/packs/ug-waaagh-spells/_source/Brain_Bursta_6CGGy4wRiTHjLBd3.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/Cut__Em_Down__Boyz__L5v1lK4744WgpmFl.json b/packs/ug-waaagh-spells/_source/Cut__Em_Down__Boyz__L5v1lK4744WgpmFl.json index 5e5ab37..25cf78e 100644 --- a/packs/ug-waaagh-spells/_source/Cut__Em_Down__Boyz__L5v1lK4744WgpmFl.json +++ b/packs/ug-waaagh-spells/_source/Cut__Em_Down__Boyz__L5v1lK4744WgpmFl.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/Da_Evil_Sun_sOpgFWkTT1Gr9Nhd.json b/packs/ug-waaagh-spells/_source/Da_Evil_Sun_sOpgFWkTT1Gr9Nhd.json index dc380b8..bbdae20 100644 --- a/packs/ug-waaagh-spells/_source/Da_Evil_Sun_sOpgFWkTT1Gr9Nhd.json +++ b/packs/ug-waaagh-spells/_source/Da_Evil_Sun_sOpgFWkTT1Gr9Nhd.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/Da_Krunch_v3ovb777xNpxHyIF.json b/packs/ug-waaagh-spells/_source/Da_Krunch_v3ovb777xNpxHyIF.json index 78e239c..daa469a 100644 --- a/packs/ug-waaagh-spells/_source/Da_Krunch_v3ovb777xNpxHyIF.json +++ b/packs/ug-waaagh-spells/_source/Da_Krunch_v3ovb777xNpxHyIF.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/Fists_o__Gork_FiCgv8zO4wYpHtZy.json b/packs/ug-waaagh-spells/_source/Fists_o__Gork_FiCgv8zO4wYpHtZy.json index 32b667c..f921ca8 100644 --- a/packs/ug-waaagh-spells/_source/Fists_o__Gork_FiCgv8zO4wYpHtZy.json +++ b/packs/ug-waaagh-spells/_source/Fists_o__Gork_FiCgv8zO4wYpHtZy.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/Gaze_o__Mork_62UZZRRz7iMnJcJZ.json b/packs/ug-waaagh-spells/_source/Gaze_o__Mork_62UZZRRz7iMnJcJZ.json index c07131e..5fc32e8 100644 --- a/packs/ug-waaagh-spells/_source/Gaze_o__Mork_62UZZRRz7iMnJcJZ.json +++ b/packs/ug-waaagh-spells/_source/Gaze_o__Mork_62UZZRRz7iMnJcJZ.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/Go_For_Da__Ead__Boyz__WLo8IFN7sHcrZr4D.json b/packs/ug-waaagh-spells/_source/Go_For_Da__Ead__Boyz__WLo8IFN7sHcrZr4D.json index 971ee0f..8cfb2d5 100644 --- a/packs/ug-waaagh-spells/_source/Go_For_Da__Ead__Boyz__WLo8IFN7sHcrZr4D.json +++ b/packs/ug-waaagh-spells/_source/Go_For_Da__Ead__Boyz__WLo8IFN7sHcrZr4D.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/Hand_o__Gork_WXUu7qCGpiJUZCja.json b/packs/ug-waaagh-spells/_source/Hand_o__Gork_WXUu7qCGpiJUZCja.json index 61576f2..63a6ed9 100644 --- a/packs/ug-waaagh-spells/_source/Hand_o__Gork_WXUu7qCGpiJUZCja.json +++ b/packs/ug-waaagh-spells/_source/Hand_o__Gork_WXUu7qCGpiJUZCja.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/Raise_Great_Idol_Tu8dXfyR0MM59VBC.json b/packs/ug-waaagh-spells/_source/Raise_Great_Idol_Tu8dXfyR0MM59VBC.json index 100ac71..3f8a7c4 100644 --- a/packs/ug-waaagh-spells/_source/Raise_Great_Idol_Tu8dXfyR0MM59VBC.json +++ b/packs/ug-waaagh-spells/_source/Raise_Great_Idol_Tu8dXfyR0MM59VBC.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/Waaaaaagh__Cn4CEjcUrrp9w7w2.json b/packs/ug-waaagh-spells/_source/Waaaaaagh__Cn4CEjcUrrp9w7w2.json index da76fb5..e484776 100644 --- a/packs/ug-waaagh-spells/_source/Waaaaaagh__Cn4CEjcUrrp9w7w2.json +++ b/packs/ug-waaagh-spells/_source/Waaaaaagh__Cn4CEjcUrrp9w7w2.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/Wallopin__Great_Krunch_ECIMWuDMdBB38YQU.json b/packs/ug-waaagh-spells/_source/Wallopin__Great_Krunch_ECIMWuDMdBB38YQU.json index 6a3767b..6d34f1d 100644 --- a/packs/ug-waaagh-spells/_source/Wallopin__Great_Krunch_ECIMWuDMdBB38YQU.json +++ b/packs/ug-waaagh-spells/_source/Wallopin__Great_Krunch_ECIMWuDMdBB38YQU.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/_Ard_as_Nails_YGaxk3bNJOiorGye.json b/packs/ug-waaagh-spells/_source/_Ard_as_Nails_YGaxk3bNJOiorGye.json index 405d66d..802fda6 100644 --- a/packs/ug-waaagh-spells/_source/_Ard_as_Nails_YGaxk3bNJOiorGye.json +++ b/packs/ug-waaagh-spells/_source/_Ard_as_Nails_YGaxk3bNJOiorGye.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/_Eadbutt_76G9oDwpdAZFxnoH.json b/packs/ug-waaagh-spells/_source/_Eadbutt_76G9oDwpdAZFxnoH.json index db592f0..118b082 100644 --- a/packs/ug-waaagh-spells/_source/_Eadbutt_76G9oDwpdAZFxnoH.json +++ b/packs/ug-waaagh-spells/_source/_Eadbutt_76G9oDwpdAZFxnoH.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": { diff --git a/packs/ug-waaagh-spells/_source/_Ere_We_Go__LCCxrz3JAdLpH0We.json b/packs/ug-waaagh-spells/_source/_Ere_We_Go__LCCxrz3JAdLpH0We.json index 0d93df1..ce3770c 100644 --- a/packs/ug-waaagh-spells/_source/_Ere_We_Go__LCCxrz3JAdLpH0We.json +++ b/packs/ug-waaagh-spells/_source/_Ere_We_Go__LCCxrz3JAdLpH0We.json @@ -17,7 +17,7 @@ "value": "" }, "lore": { - "value": "Da Big Waaagh!", + "value": "waaagh", "effectString": "" }, "range": {