8 lines
295 B
JavaScript
8 lines
295 B
JavaScript
if (isNaN(parseInt(this.item.system.specification.value)))
|
|
{
|
|
let value = await ValueDialog.create("Enter Spellcasting Lore", this.effect.name, "", Object.values(game.wfrp4e.config.magicLores));
|
|
if (value)
|
|
{
|
|
this.item.updateSource({"system.specification.value" : value});
|
|
}
|
|
} |