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

4 lines
137 B
JavaScript

if (args.item.type == "spell" && args.item.system.lore.value != "petty")
{
args.item.cn.value = Math.max(4, args.item.cn.value * 2)
}