Fix hearts healing twice.

This commit is contained in:
IQuant 2024-06-20 11:06:02 +03:00
parent eb5a53e405
commit a02c52304d
4 changed files with 4 additions and 4 deletions

View file

@ -1922,7 +1922,7 @@ checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
[[package]]
name = "noita-proxy"
version = "0.12.3"
version = "0.12.5"
dependencies = [
"bincode",
"bitcode",

View file

@ -4,7 +4,7 @@ members = ["tangled"]
[package]
name = "noita-proxy"
description = "Noita Entangled Worlds companion app."
version = "0.12.3"
version = "0.12.5"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -17,7 +17,7 @@ function item_pickup( entity_item, entity_who_picked, name )
healing = math.min(max_hp - hp, max_hp / player_count)
ComponentSetValue( damagemodel, "hp", hp+healing)
-- ComponentSetValue( damagemodel, "hp", hp+healing)
end
end

View file

@ -28,7 +28,7 @@ function item_pickup( entity_item, entity_who_picked, name )
-- if( hp > max_hp ) then hp = max_hp end
ComponentSetValue( damagemodel, "max_hp_cap", max_hp_cap)
ComponentSetValue( damagemodel, "max_hp", max_hp)
ComponentSetValue( damagemodel, "hp", hp+healing)
-- ComponentSetValue( damagemodel, "hp", hp+healing)
end
end