Needs babele, fix translation, fix margine

This commit is contained in:
2023-08-16 21:17:34 +02:00
parent 5dca748bf3
commit b9e2a77e88
25 changed files with 59 additions and 64 deletions

View File

@ -492,7 +492,7 @@ export class EcrymeUtility {
rollData.margin = rollData.total - rollData.difficulty
if (rollData.total > rollData.difficulty) {
rollData.isSuccess = true
let maxMargin = rollData.skill.value + (rollData.spec) ? 2 : 0
let maxMargin = rollData.skill.value + ((rollData.spec) ? 2 : 0)
rollData.margin = Math.min(rollData.margin, maxMargin)
}
}

View File

@ -68,7 +68,7 @@ Hooks.once("init", async function () {
EcrymeUtility.init()
console.log("Babele INIT!")
Babele.get().setSystemTranslationsDir("translated");
Babele.get().setSystemTranslationsDir("translated")
});