Add all systems effects scripts + translations

This commit is contained in:
2024-05-17 01:07:37 +02:00
parent 0b286ac994
commit 7b97578bd7
191 changed files with 379 additions and 381 deletions

View File

@ -3,8 +3,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>
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 le <strong>${this.item.name}</strong>. <br>
Si le personnage porte le masque pendant plus d'une heure ou bénéficie de ses effets, il s'espose à une @Corruption[moderate]{Corruption Modérée}.
`,
{whisper: ChatMessage.getWhisperRecipients("GM")})
}
@ -13,8 +13,8 @@ if (args.equipped)
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.`,
await this.item.update({name : this.item.name += " (Utilisé)"})
this.script.scriptMessage(`<strong>${this.item.name}</strong> porté par ${this.actor.name} a été enlevé et a perdu ses capacités. Cependant, les effets perdurent pendant [[1d10+4]] jours, après quoi ils doivent être retirés manuellement.`,
{whisper: ChatMessage.getWhisperRecipients("GM")}
)