14 lines
504 B
JavaScript
14 lines
504 B
JavaScript
if (this.item.system.specification.value == "Taille")
|
|
{
|
|
let size = this.item.specifier;
|
|
if (!size)
|
|
{
|
|
let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.actorTailles, this.item.img), 1, "Choisir Taille");
|
|
if (choice[0])
|
|
{
|
|
size = choice[0]?.name;
|
|
}
|
|
}
|
|
this.item.updateSource({"system.specification.value" : size, name : this.item.baseName})
|
|
this.effect.updateSource({name : this.effect.name + ` (${size})`})
|
|
} |