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

10 lines
270 B
JavaScript

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();
}