10 lines
371 B
JavaScript
10 lines
371 B
JavaScript
let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.locations), 1, "Choisir une localisation");
|
|
|
|
let location = choice[0].id;
|
|
|
|
let itemTargeted = this.actor.items.get(this.effect.getFlag("wfrp4e", "itemTargets")[0])
|
|
|
|
if (itemTargeted)
|
|
{
|
|
itemTargeted.update({[`system.APdamage.${location}`] : itemTargeted.system.APdamage[location] + 1})
|
|
} |