6 lines
252 B
JavaScript
6 lines
252 B
JavaScript
if (isNaN(parseInt(this.item.system.specification.value))) {
|
|
let value = await ValueDialog.create({title : "Armoured Value", text : "Enter the Armoured value"});
|
|
if (value) {
|
|
this.item.updateSource({"system.specification.value" : value});
|
|
}
|
|
} |