Combat tab

This commit is contained in:
2023-03-22 22:43:30 +01:00
parent e0adf04753
commit 4ca23257cb
6 changed files with 26 additions and 19 deletions

View File

@@ -76,6 +76,15 @@ export class Hero6Utility {
}) */
}
/*-------------------------------------------- */
static getDerivatedDiceValue(value) {
let dices = Math.floor(value/5) +"d6"
if ( value % 5 > 2) {
dices += "+1d3"
}
return dices
}
/*-------------------------------------------- */
static upperFirst(text) {
if (typeof text !== 'string') return text