foundryvtt-wh4-lang-fr-fr/scripts/2QB0LjueuJcIaHaC.js

12 lines
352 B
JavaScript
Raw Permalink Normal View History

2024-06-06 22:07:28 +02:00
if (isNaN(parseInt(this.item.system.specification.value)))
{
2024-10-08 20:52:09 +02:00
let value = this.item.specifier;
if (!value)
{
value = await ValueDialog.create({text : "Enter Armour value", title : this.effect.name});
}
2024-06-06 22:07:28 +02:00
if (value)
{
2024-10-08 20:52:09 +02:00
this.item.updateSource({"system.specification.value" : value, name : this.item.baseName});
2024-06-06 22:07:28 +02:00
}
}