..
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
let filters = [
|
||||
{
|
||||
property : "type",
|
||||
value : "weapon"
|
||||
},
|
||||
{
|
||||
property : "system.weaponGroup.value",
|
||||
value : ["twohanded", "polearm"]
|
||||
}
|
||||
]
|
||||
|
||||
let items = await ItemDialog.createFromFilters(filters, 1, "Choisissez an appropriate Polearm or Two-Handed Weapon")
|
||||
items = items.map(i => i.toObject())
|
||||
|
||||
items.forEach(i => i.system.equipped.value = true);
|
||||
|
||||
this.actor.createEmbeddedDocuments("Item", items);
|
||||
Reference in New Issue
Block a user