2024-05-16 17:57:51 +02:00
|
|
|
let filters = [
|
|
|
|
{
|
|
|
|
property : "type",
|
|
|
|
value : "skill"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
property : "name",
|
|
|
|
value : /Melee/gm,
|
|
|
|
regex: true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
2024-10-08 20:52:09 +02:00
|
|
|
let items = await ItemDialog.createFromFilters(filters, 2, "Choisissez 2 Skills to add +20")
|
2024-05-16 17:57:51 +02:00
|
|
|
items = items.map(i => i.toObject())
|
|
|
|
items.forEach(i => i.system.advances.value = 20)
|
|
|
|
|
|
|
|
this.actor.createEmbeddedDocuments("Item", items);
|