foundryvtt-wh4-lang-fr-fr/scripts/FciJSTq7dZsZIPgl.js

10 lines
270 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
if (args.equipped)
{
let item = await fromUuid("Compendium.wfrp4e-core.items.SfUUdOGjdYpr3KSR")
let data = item.toObject();
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})
}
else
{
this.effect.deleteCreatedItems();
}