mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Fix hearts healing twice.
This commit is contained in:
parent
eb5a53e405
commit
a02c52304d
4 changed files with 4 additions and 4 deletions
2
noita-proxy/Cargo.lock
generated
2
noita-proxy/Cargo.lock
generated
|
@ -1922,7 +1922,7 @@ checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
|
|||
|
||||
[[package]]
|
||||
name = "noita-proxy"
|
||||
version = "0.12.3"
|
||||
version = "0.12.5"
|
||||
dependencies = [
|
||||
"bincode",
|
||||
"bitcode",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue