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

6 lines
248 B
JavaScript

if (isNaN(parseInt(this.item.system.specification.value))) {
let value = await ValueDialog.create({title : "Sturdy Value", text : "Enter the Sturdy value"});
if (value) {
this.item.updateSource({"system.specification.value" : value});
}
}