Release Healer Man 0.1.40
This commit is contained in:
1 parent
ed0d2fea3d
commit
197a64117c
215 files changed
+5131
-181
No files matched your search
@@ -0,0 +1,13 @@
|
||||
/** Separate from the source dungeon's Normal/Heroic creature variant. */
|
||||
export function validBossDifficulty(value: unknown): value is number {
|
||||
return typeof value === "number" && Number.isInteger(value) && value >= 1 && value <= 10;
|
||||
}
|
||||
|
||||
export function bossDifficultyMultipliers(level: number) {
|
||||
const difficulty = validBossDifficulty(level) ? level : 1;
|
||||
return { health: 1 + (difficulty - 1) * 0.25, damage: 1 + (difficulty - 1) * 0.15 };
|
||||
}
|
||||
|
||||
export function bossDifficultyLabel(level?: number): string {
|
||||
return level ? `Difficulty ${level}${level === 1 ? " · Easy" : ""}` : "Legacy";
|
||||
}
|
||||
Reference in new issue
Block a user