playing with new spell effect
This commit is contained in:
parent
ee519ff4b0
commit
4acd2fe281
63
main.mjs
Normal file
63
main.mjs
Normal file
@ -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);
|
||||
});
|
||||
|
||||
|
@ -45,6 +45,9 @@
|
||||
"flags": {},
|
||||
"private": false
|
||||
}
|
||||
],
|
||||
"esmodules": [
|
||||
"/main.mjs"
|
||||
],
|
||||
"relationships": {
|
||||
"systems": [
|
||||
|
@ -1 +1 @@
|
||||
MANIFEST-000009
|
||||
MANIFEST-000014
|
||||
|
@ -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
|
||||
|
Binary file not shown.
BIN
packs/ug-careerstalentstraits/MANIFEST-000014
Normal file
BIN
packs/ug-careerstalentstraits/MANIFEST-000014
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
MANIFEST-000009
|
||||
MANIFEST-000014
|
||||
|
@ -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
|
||||
|
Binary file not shown.
BIN
packs/ug-creatures/MANIFEST-000014
Normal file
BIN
packs/ug-creatures/MANIFEST-000014
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
MANIFEST-000009
|
||||
MANIFEST-000014
|
||||
|
@ -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
|
||||
|
Binary file not shown.
BIN
packs/ug-spells/MANIFEST-000014
Normal file
BIN
packs/ug-spells/MANIFEST-000014
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
packs/ug-waaagh-spells/000020.ldb
Normal file
BIN
packs/ug-waaagh-spells/000020.ldb
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
MANIFEST-000009
|
||||
MANIFEST-000016
|
||||
|
@ -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)
|
||||
|
Binary file not shown.
BIN
packs/ug-waaagh-spells/MANIFEST-000016
Normal file
BIN
packs/ug-waaagh-spells/MANIFEST-000016
Normal file
Binary file not shown.
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"value": ""
|
||||
},
|
||||
"lore": {
|
||||
"value": "Da Big Waaagh!",
|
||||
"value": "waaagh",
|
||||
"effectString": ""
|
||||
},
|
||||
"range": {
|
||||
|
Loading…
Reference in New Issue
Block a user