From: xangelo Date: Thu, 17 Aug 2023 19:28:06 +0000 (-0400) Subject: feat: increase hp gain rate X-Git-Tag: v0.2.10~4 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=1f9aaf68ca890c7706c7d9693d0b97d9251171cf;p=risinglegends.git feat: increase hp gain rate --- diff --git a/src/shared/player.ts b/src/shared/player.ts index 7762a41..e3af5f7 100644 --- a/src/shared/player.ts +++ b/src/shared/player.ts @@ -26,7 +26,7 @@ export type PlayerWithSkills = Player & { } export function maxHp(constitution: number, playerLevel: number): number { - return Math.ceil((constitution + playerLevel) * 1.3); + return Math.ceil((constitution + (playerLevel * 1.3)) * 1.7); } export function expToLevel(level: number): number {