mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
[Fix] 1601 - Template Enrichment (#1609)
* Fixed so param.range is compared as lowerCase * .
This commit is contained in:
parent
483caa1062
commit
ab538df3aa
1 changed files with 1 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ export default function DhTemplateEnricher(match, _options) {
|
|||
const params = parseInlineParams(match[1]);
|
||||
const { type, angle = CONFIG.MeasuredTemplate.defaults.angle, inline = false } = params;
|
||||
const direction = Number(params.direction) || 0;
|
||||
params.range = params.range?.toLowerCase();
|
||||
const range =
|
||||
params.range && Number.isNaN(Number(params.range))
|
||||
? Object.values(CONFIG.DH.GENERAL.templateRanges).find(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue