Update scripts
This commit is contained in:
@ -1,8 +1,12 @@
|
||||
if (isNaN(parseInt(this.item.system.specification.value)))
|
||||
{
|
||||
let value = await ValueDialog.create("Entrer la valeur d'Armure", this.effect.name);
|
||||
let value = this.item.specifier;
|
||||
if (!value)
|
||||
{
|
||||
value = await ValueDialog.create({text : "Enter Armour value", title : this.effect.name});
|
||||
}
|
||||
if (value)
|
||||
{
|
||||
this.item.updateSource({"system.specification.value" : value});
|
||||
this.item.updateSource({"system.specification.value" : value, name : this.item.baseName});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user