Update pokemon_instance.gd
This commit is contained in:
parent
3a9254336e
commit
1f69c1ae7a
|
|
@ -201,4 +201,4 @@ static func from_dict(data : Dictionary) -> PokemonInstance:
|
||||||
p.mount_data = load(mount_path) as MountProfile
|
p.mount_data = load(mount_path) as MountProfile
|
||||||
|
|
||||||
p.current_hp = clampi(int(data.get("hp", p.get_max_hp())), 0, p.get_max_hp())
|
p.current_hp = clampi(int(data.get("hp", p.get_max_hp())), 0, p.get_max_hp())
|
||||||
return p
|
return p
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue