Minor fixes
This commit is contained in:
15
.history/module/utils_20241208203937.mjs
Normal file
15
.history/module/utils_20241208203937.mjs
Normal file
@@ -0,0 +1,15 @@
|
||||
import { DICE_VALUES } from "./config/system.mjs"
|
||||
|
||||
export default class LethalFantasyUtils {
|
||||
// Return the maximum damage limited by the maximum damage of the character
|
||||
static maxDamage(damage, damageMax) {
|
||||
// Otherwise, return damage (as it is less than or equal to damageMax)
|
||||
return 0
|
||||
}
|
||||
|
||||
// Used when a ressource is lost to find the next lower dice
|
||||
static findLowerDice(dice) {
|
||||
let index = DICE_VALUES.indexOf(dice)
|
||||
return DICE_VALUES[index - 1]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user