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

10 lines
271 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
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