fix boost/lower trait macro

This commit is contained in:
Mike Bloy 2022-04-22 18:43:18 -05:00
parent 302785feb1
commit a6977f9312
2 changed files with 8 additions and 8 deletions

View File

@ -109,9 +109,9 @@ function getDottedPart(obj, key) {
} }
async function createEffect(tokens, trait, direction, buttons) { async function createEffect(tokens, trait, direction, buttons) {
const raise = buttons; const raise = (buttons == 'raise');
const effectName = `${raise == 'raise' ? "Major" : "Minor"} ${direction} ${trait.name}`; const effectName = `${raise ? "Major" : "Minor"} ${direction} ${trait.name}`;
const effectId = `${raise == 'raise' ? "Major" : "Minor"}${direction}${trait.name}`; const effectId = `${raise ? "Major" : "Minor"}${direction}${trait.name}`;
const effectIcon = (direction == 'Boost' ? UPICON : DOWNICON) const effectIcon = (direction == 'Boost' ? UPICON : DOWNICON)
for (const token of tokens) { for (const token of tokens) {
let tokenDoc = token.document; let tokenDoc = token.document;

File diff suppressed because one or more lines are too long