Home
/
risinglegends.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
chore(release): 0.2.5
[risinglegends.git]
/
src
/
shared
/
items
/
health_potion.ts
1
import { ItemEffect } from "./base";
2
import { maxHp, Player } from "../player";
3
4
export const HealthPotionSmall: ItemEffect<number> = {
5
name: 'heal_small',
6
effect: (player: Player): number => {
7
const gain = 30;
8
const newHp = player.hp + gain;
9
10
return Math.ceil(newHp);
11
}
12
}