2024-10-08 20:52:09 +02:00
|
|
|
if ([game.i18n.localize("CORRUPTION.Minor"), game.i18n.localize("CORRUPTION.Moderate"), game.i18n.localize("CORRUPTION.Major")].includes(this.item.system.specification.value))
|
2024-05-16 17:57:51 +02:00
|
|
|
{
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2024-10-08 20:52:09 +02:00
|
|
|
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");
|
2024-05-16 17:57:51 +02:00
|
|
|
|
|
|
|
this.item.updateSource({"system.specification.value" : choice[0]?.name || ""})
|