foundryvtt-wh4-lang-fr-fr/scripts/F4aGsdzJ9SYcX57F.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.HpFkVJ2lYPAWumUL")
let data = item.toObject();
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})
}
else
{
this.effect.deleteCreatedItems();
}