skripte in Ursprungsordner

This commit is contained in:
alzer
2025-05-10 00:11:46 +02:00
parent e5e43dda8a
commit 8015566cce
2979 changed files with 327 additions and 326 deletions
+9
View File
@@ -0,0 +1,9 @@
let broken = this.actor.hasCondition("broken");
let item = await fromUuid("Compendium.wfrp4e-core.items.Item.IAWyzDfC286a9MPz");
if (broken && !broken.getFlag("wfrp4e", "blasted-mind") && !this.actor.has(item.name))
{
await broken.delete();
this.actor.createEmbeddedDocuments("Item", [item], {fromEffect: this.effect.id})
this.script.scriptNotification(`Removed ${broken.name}, added ${item.name} (${Math.ceil(CONFIG.Dice.randomUniform() * 10)} Rounds)`)
}