foundryvtt-wh4-lang-fr-fr/scripts/xS2su09zcza9du09.js

8 lines
371 B
JavaScript
Raw Permalink Normal View History

if (["Mineure", "Modérée", "Majeure"].includes(this.item.system.specification.value))
2024-05-16 17:57:51 +02:00
{
return
}
let choice = await ItemDialog.create(ItemDialog.objectToArray({minor : "Mineure", moderate : "Modérée", major : "Majeure"}, this.item.img), 1, "Choisissez la sévérite de la corruption");
2024-05-16 17:57:51 +02:00
this.item.updateSource({"system.specification.value" : choice[0]?.name || ""})