Add all systems effects scripts + translations
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
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"))
|
||||
if (!this.actor.has("Mort-vivant") && !this.actor.has("Démoniaque"))
|
||||
{
|
||||
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 => {
|
||||
this.actor.setupSkill(game.i18n.localize("NAME.Cool"), { appendTitle: " - " + this.effect.name, fields: { difficulty: "average" }, context: { failure: `Pert de ${strLoss} en Force et ${tghLoss} en Endurance` } }).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 })
|
||||
@ -12,5 +12,5 @@ if (!this.actor.has("Undead") && !this.actor.has("Daemonic"))
|
||||
|
||||
}
|
||||
else {
|
||||
this.script.scriptNotification(`<strong>${this.actor.name}</strong> is immune to ${this.effect.name}`)
|
||||
this.script.scriptNotification(`<strong>${this.actor.name}</strong> est immunisé à ${this.effect.name}`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user