forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts + translations
This commit is contained in:
@ -5,10 +5,10 @@ if (this.item.system.quantity.value)
|
||||
let effectData = this.item.effects.contents[0].convertToApplied();
|
||||
let minutes = Math.ceil(CONFIG.Dice.randomUniform() * 10) * 10;
|
||||
effectData.duration.seconds = 60 * minutes
|
||||
this.script.scriptMessage(`<strong>Duration</strong>: ${minutes} minutes`, {whisper : ChatMessage.getWhisperRecipients("GM")})
|
||||
this.script.scriptMessage(`<strong>Durée</strong>: ${minutes} minutes`, {whisper : ChatMessage.getWhisperRecipients("GM")})
|
||||
actor.applyEffect({effectData : [effectData]})
|
||||
}
|
||||
else
|
||||
{
|
||||
this.script.scriptNotification("None left!", "error")
|
||||
this.script.scriptNotification("Aucun disponible!", "error")
|
||||
}
|
Reference in New Issue
Block a user