mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-08 21:58:11 +02:00
Compare commits
2 commits
483caa1062
...
668dbdf8f4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
668dbdf8f4 | ||
|
|
ab538df3aa |
2 changed files with 3 additions and 1 deletions
|
|
@ -41,7 +41,8 @@ export default class DhCharacter extends BaseDataActor {
|
||||||
min: 0,
|
min: 0,
|
||||||
integer: true,
|
integer: true,
|
||||||
label: 'DAGGERHEART.GENERAL.hope'
|
label: 'DAGGERHEART.GENERAL.hope'
|
||||||
})
|
}),
|
||||||
|
isReversed: new fields.BooleanField({ initial: false })
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
traits: new fields.SchemaField({
|
traits: new fields.SchemaField({
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ export default function DhTemplateEnricher(match, _options) {
|
||||||
const params = parseInlineParams(match[1]);
|
const params = parseInlineParams(match[1]);
|
||||||
const { type, angle = CONFIG.MeasuredTemplate.defaults.angle, inline = false } = params;
|
const { type, angle = CONFIG.MeasuredTemplate.defaults.angle, inline = false } = params;
|
||||||
const direction = Number(params.direction) || 0;
|
const direction = Number(params.direction) || 0;
|
||||||
|
params.range = params.range?.toLowerCase();
|
||||||
const range =
|
const range =
|
||||||
params.range && Number.isNaN(Number(params.range))
|
params.range && Number.isNaN(Number(params.range))
|
||||||
? Object.values(CONFIG.DH.GENERAL.templateRanges).find(
|
? Object.values(CONFIG.DH.GENERAL.templateRanges).find(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue