Fix babele-register.js for subskills when core is not first compendium checked
This commit is contained in:
parent
77cc368a7e
commit
64be1078e1
@ -257,8 +257,12 @@ Hooks.once('init', () => {
|
|||||||
s1 = res[1].trim() + " ( )";
|
s1 = res[1].trim() + " ( )";
|
||||||
translItem = game.babele.translate(compData.metadata.id, { name: s1, type: "skill" }, true)
|
translItem = game.babele.translate(compData.metadata.id, { name: s1, type: "skill" }, true)
|
||||||
translw = translItem?.name || undefined
|
translw = translItem?.name || undefined
|
||||||
let res2 = re.exec(translw);
|
if(translw) {
|
||||||
transl = res2[1] + "(" + subword + ")";
|
let res2 = re.exec(translw);
|
||||||
|
transl = res2[1] + "(" + subword + ")";
|
||||||
|
} else {
|
||||||
|
transl = res[1] + " (" + subword + ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user