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,16 @@
let strLoss = Math.ceil(CONFIG.Dice.randomUniform() * 10)
let tghLoss = Math.ceil(CONFIG.Dice.randomUniform() * 10)
if (!this.actor.has("Undead") && !this.actor.has("Daemonic"))
{
this.actor.setupSkill(game.i18n.localize("NAME.Cool"), { appendTitle: " - " + this.effect.name, fields: { difficulty: "average" }, context: { failure: `Lost ${strLoss} Strength and ${tghLoss} Toughness` } }).then(async test => {
await test.roll();
if (test.failed) {
this.actor.update({ "system.characteristics.s.initial": this.actor.system.characteristics.s.initial - strLoss, "system.characteristics.t.initial": this.actor.system.characteristics.t.initial - tghLoss })
}
})
}
else {
this.script.scriptNotification(`<strong>${this.actor.name}</strong> is immune to ${this.effect.name}`)
}