Add all systems effects scripts + translations

This commit is contained in:
2024-05-17 12:46:44 +02:00
parent 039df5c10a
commit a308181834
1421 changed files with 9940 additions and 547 deletions

View File

@ -0,0 +1,19 @@
let i_gain = (await new Roll("2d10").roll()).total
let fel_gain = 0
if (args.actor.characteristics.fel.value <= 0)
{
fel_gain += (await new Roll("2d10").roll()).total
}
let msg = `<b>${this.actor.prototypeToken.name}</b> gains ${i_gain} Intelligence`
if (fel_gain)
msg += ` and ${fel_gain} Fellowship`
let newInt = i_gain + args.actor.characteristics.int.modifier
let newFel = fel_gain + args.actor.characteristics.fel.modifier
args.actor.update({"system.characteristics.int.modifier" : newInt, "system.characteristics.fel.modifier" : newFel})
this.script.scriptMessage(msg)