Neuanfang mit französischem Modul

This commit is contained in:
2025-05-05 23:25:00 +02:00
parent cf24ef97df
commit 3f74b8dfdd
3135 changed files with 38383 additions and 93206 deletions
-22
View File
@@ -1,22 +0,0 @@
let test = await this.actor.setupCharacteristic("int", {skipTargets: true, appendTitle : ` - ${this.effect.name}`})
await test.roll();
let opposedResult = test.opposedMessages[0]?.getOppose()?.resultMessage?.getOpposedTest()?.result
if (opposedResult?.winner == "attacker")
{
if (test.failed && (test.result.roll % 11 == 0 || test.result.roll == 100))
{
this.actor.addCondition("unconscious")
await this.actor.update({"system.status.corruption.value" : parseInt(this.actor.status.corruption.value) + 1})
this.script.scriptMessage("Gained a Corruption point", {whisper : ChatMessage.getWhisperRecipients("GM")})
}
else
{
await this.actor.addCondition("stunned", 1 + opposedResult.differenceSL);
}
}
else
{
return false;
}