This commit is contained in:
2025-05-02 12:24:44 +02:00
commit 39e925cc1b
3238 changed files with 110472 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
let item = await fromUuid("Compendium.wfrp4e-core.items.7mCcI3q7hgWcmbBU")
let data = item.toObject();
data.system.location.key= this.item.system.location.key
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id})
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "hard"}});
await test.roll();
if (test.failed)
{
this.actor.addCondition("stunned")
}