Prepare content module
This commit is contained in:
@ -78,6 +78,7 @@ Hooks.once('init', async function () {
|
||||
Babele.get().setSystemTranslationsDir("compendiums");
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
@ -126,6 +127,35 @@ Hooks.once('ready', async function () {
|
||||
});
|
||||
}
|
||||
|
||||
const damageFR = {
|
||||
"0": "0",
|
||||
"1": "1",
|
||||
"2": "2",
|
||||
"3": "3",
|
||||
"d3": "d3",
|
||||
"d6M": "d6M (Malus)",
|
||||
"d6": "d6",
|
||||
"d6B": "d6B (Bonus)",
|
||||
"d6BB": "d6B + dé bonus",
|
||||
}
|
||||
const damageEN = {
|
||||
"0": "0",
|
||||
"1": "1",
|
||||
"2": "2",
|
||||
"3": "3",
|
||||
"d3": "d3",
|
||||
"d6M": "d6L (Penalty)",
|
||||
"d6": "d6",
|
||||
"d6B": "d6H (Bonus)",
|
||||
"d6BB": "d6H + Bonus die",
|
||||
}
|
||||
|
||||
if (game.i18n.lang === "fr") {
|
||||
game.bol.config.damageValues = damageFR;
|
||||
} else {
|
||||
game.bol.config.damageValues = damageEN;
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user