forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts + translations
This commit is contained in:
@ -2,10 +2,8 @@
|
||||
|
||||
if (args.equipped) {
|
||||
this.actor.createEmbeddedDocuments("ActiveEffect", [this.item.effects.contents[1]?.convertToApplied()])
|
||||
this.script.scriptMessage(`${this.actor.name} dons the <strong>${this.item.name}</strong>. <br>
|
||||
They gain +50 to Swim Tests and can breathe underwater.<br>
|
||||
If they wear the mask for more than an hour or benefit from any of its effects, they are exposed to @Corruption[moderate]{Moderate Corruption}.
|
||||
`,
|
||||
this.script.scriptMessage(`${this.actor.name} porte <strong>${this.item.name}</strong>. <br>
|
||||
Il bénéficie de +50 aux Tests de Natation et peut respirer sous l'eau.<br>Si il porte le masque pendant plus d'une heure ou bénéficie de l'un de ses effets, il est exposé à une @Corruption[moderate]{Corruption Modérée}.`,
|
||||
{whisper: ChatMessage.getWhisperRecipients("GM")})
|
||||
}
|
||||
|
||||
@ -14,7 +12,7 @@ else if (!args.equipped)
|
||||
{
|
||||
await this.item.effects.contents[0].delete();
|
||||
await this.item.update({name : this.item.name += " (Used)"})
|
||||
this.script.scriptMessage(`<strong>${this.item.name}</strong> on ${this.actor.name} has been taken off and loses its properties. However, the effects last for [[1d10+4]] days, after which they should be manually removed.`,
|
||||
this.script.scriptMessage(`<strong>${this.item.name}</strong> porté par ${this.actor.name} a été enlevé et a perdu ses propriétés. Cependant, ses effets perdurent pendant [[1d10+4]] jours, après quoi il faudra les supprimer manuellement.`,
|
||||
{whisper: ChatMessage.getWhisperRecipients("GM")}
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user