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

8 lines
346 B
JavaScript
Raw Normal View History

if (["Minor", "Moderate", "Major"].includes(this.item.system.specification.value))
{
return
}
let choice = await ItemDialog.create(ItemDialog.objectToArray({minor : "Minor", moderate : "Moderate", major : "Major"}, this.item.img), 1, "Choose Corruption Severity");
this.item.updateSource({"system.specification.value" : choice[0]?.name || ""})