Add all systems effects scripts + translations

This commit is contained in:
2024-05-17 09:19:48 +02:00
parent 7b97578bd7
commit 039df5c10a
119 changed files with 255 additions and 232 deletions

View File

@ -4,11 +4,11 @@ if (test.failed && (test.result.roll % 11 == 0 || test.result.roll == 100))
let points = await new Roll("1d10").roll();
game.dice3d?.showForRoll(points)
this.actor.update({"system.status.corruption.value" : this.actor.system.status.corruption.value + points.total})
this.script.scriptMessage(`Gains ${points.total} Corruption`)
this.script.scriptMessage(`Reçoit ${points.total} Point de Corruption`)
}
else
{
let points = this.effect.sourceTest.result.overcast.usage.other.current;
this.actor.update({"system.status.corruption.value" : this.actor.system.status.corruption.value - points})
this.script.scriptMessage(`Loses ${points} Corruption`)
this.script.scriptMessage(`Perd ${points} Point de Corruption`)
}