manuelVo / foundryvtt-drag-ruler

A Foundry VTT module that shows a ruler when dragging tokens so you can see how far you've dragged them
MIT License
40 stars 55 forks source link

Misplaced } in parameters for the buildCostFunction in api.js #238

Closed PepijnMC closed 2 years ago

PepijnMC commented 2 years ago

Line 153 in api.js has this const costs = area.map(space => canvas.terrain.cost({x: space.x, y: space.y, costOptions})); Should be this instead, misplaced the }. const costs = area.map(space => canvas.terrain.cost({x: space.x, y: space.y}, costOptions));