foundryvtt-wh4-lang-fr-fr/reference_scripts/ILqHxk7deotgI3KD.js

10 lines
271 B
JavaScript
Raw Normal View History

if (args.item.type != "weapon")
return
let reach = args.item.reach.value
let reachNum = game.wfrp4e.config.reachNum[reach]
reachNum = Math.min(reachNum + 2, 7)
let key = game.wfrp4e.utility.findKey(reachNum, game.wfrp4e.config.reachNum)
args.item.reach.value = key