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

8 lines
536 B
JavaScript

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