forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts + translations
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
// After consumption, the user gains the Magic Resistance 3 Creature Trait,
|
||||
// reducing the SL of any spell affecting it by 3.
|
||||
// This effect lasts for one hour.
|
||||
const hasMagicResistance = this.actor.has("Magic Resistance")
|
||||
const hasMagicResistance = this.actor.has("Résistance à la Magie")
|
||||
|
||||
if (hasMagicResistance === undefined) {
|
||||
fromUuid("Compendium.wfrp4e-core.items.yrkI7ATjqLPDTFmZ").then(trait => {
|
||||
@ -9,12 +9,12 @@ if (hasMagicResistance === undefined) {
|
||||
traitItem.system.specification.value = 2
|
||||
this.actor.createEmbeddedDocuments("Item", [traitItem], {fromEffect: this.effect.id})
|
||||
})
|
||||
this.script.scriptMessage(`<p><strong>${this.actor.prototypeToken.name}</strong> has gained the Magic Resistance Trait. This effect lasts for one hour.</p>`, {whisper: ChatMessage.getWhisperRecipients("GM"), blind: true })
|
||||
this.script.scriptMessage(`<p><strong>${this.actor.prototypeToken.name}</strong> bénéficie du Trait Résistance à la Magie. Cet effet dure 1 heure.</p>`, {whisper: ChatMessage.getWhisperRecipients("GM"), blind: true })
|
||||
}
|
||||
|
||||
if (hasMagicResistance) {
|
||||
// Multiple doses may be consumed at once, with each one adding an additional 1 to the Magic Resistance rating and increasing the duration by one hour.
|
||||
let msg = `<p><strong>${this.actor.prototypeToken.name}</strong> has enhanced their Magic Resistance by 1 to Rating ${parseInt(hasMagicResistance.system.specification.value)}. This effect lasts for one hour.</p>`
|
||||
let msg = `<p><strong>${this.actor.prototypeToken.name}</strong> a amélioré sa Résistance à la Magie de 1 pour atteindre ${parseInt(hasMagicResistance.system.specification.value)}. Cette effte dure 1 heure.</p>`
|
||||
|
||||
// Resist toxic effect
|
||||
this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {
|
||||
@ -24,8 +24,8 @@ if (hasMagicResistance) {
|
||||
|
||||
// If they fail ...
|
||||
if (!test.succeeded) {
|
||||
msg += `<p>However, they begin to ooze the thick, poisonous slime that coats every Dreadmaw. They have gained 1 Poisoned Condition now and should continue to receive an additional @Condition[Poisoned] Condition at the end of each of the round.</p>
|
||||
<p>If they are still alive at the end of 10 rounds, the effect ends and all Poisoned Conditions gained from ${this.effect.name} are removed.</p>`
|
||||
msg += `<p>Cependant, il commence à suinter la bave épaisse et venimeuse qui recouvre chaque Dreadmaw. Il reçoit 1 état Empoisonné et doit continuer à recevoir 1 état @Condition[Empoisonné] andà la fin de chaque round.</p>
|
||||
<p>Si le personnage est toujours vivant à la fin de 10 rounds, les effets cessent et tout les états Empoisonnés dues à ${this.effect.name} sont supprimés.</p>`
|
||||
this.actor.addCondition("poisoned", 1)
|
||||
}
|
||||
this.script.scriptMessage(msg, {whisper: ChatMessage.getWhisperRecipients("GM"), blind: true })
|
||||
|
Reference in New Issue
Block a user