Files
foundryvtt-wh4-lang-fr-fr/scripts/PmELrzD3RmF9qKkO.js

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})`})
}