forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts + translations
This commit is contained in:
8
reference_scripts/A0OK0qAMmnf8iNJf.js
Normal file
8
reference_scripts/A0OK0qAMmnf8iNJf.js
Normal file
@ -0,0 +1,8 @@
|
||||
if (args.test.result.SL < 0)
|
||||
{
|
||||
this.script.scriptMessage(`Gained ${Math.abs(args.test.result.SL)} Corruption points`, {whisper : ChatMessage.getWhisperRecipients("GM")})
|
||||
if (args.test.failed && this.actor.type == "character")
|
||||
{
|
||||
this.actor.update({"system.status.corruption.value" : parseInt(this.actor.status.corruption.value) + Math.abs(args.test.result.SL)})
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user