fix boost/lower trait macro
This commit is contained in:
parent
302785feb1
commit
a6977f9312
@ -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
Loading…
x
Reference in New Issue
Block a user