Home
/
risinglegends.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a76af
)
feat: increase hp gain rate
author
xangelo
<me@xangelo.ca>
Thu, 17 Aug 2023 19:28:06 +0000
(15:28 -0400)
committer
xangelo
<me@xangelo.ca>
Thu, 17 Aug 2023 19:28:06 +0000
(15:28 -0400)
src/shared/player.ts
patch
|
blob
|
history
diff --git
a/src/shared/player.ts
b/src/shared/player.ts
index 7762a41549fb1077840e40a95c725aaa4b6579e1..e3af5f7e8050380b1009c4338cd8794a5767d3d9 100644
(file)
--- 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 {