survivors: healing 1 health if picking up health

fixing pull range up only increasing absolute
This commit is contained in:
Sheldan
2025-09-14 15:00:18 +02:00
parent b3dbc9cc80
commit db2110c921
2 changed files with 4 additions and 2 deletions

View File

@@ -116,7 +116,9 @@ export class PullRangeUp extends BaseItem {
export class HealthUp extends BaseItem {
pickup(player: Player, world: World) {
player.changeBaseStat(1, PlayerStats.increaseHealth)
let healthAmount = 1;
player.changeBaseStat(healthAmount, PlayerStats.increaseHealth)
player.heal(healthAmount)
super.pickup(player, world)
}

View File

@@ -64,7 +64,7 @@ export class PlayerStats {
}
static factorPullRange(stats: PlayerStats, value: number) {
stats._pullRange += value
stats._pullRange *= value
}
static increaseHealth(stats: PlayerStats, value: number) {