10 lines
271 B
JavaScript
10 lines
271 B
JavaScript
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 |