Jump to content

Fully socketed Crab King has wrong health after reloading

  • Fixed

After looking into its prefab file, it seems like OnLoadPostPass restores the correct amount of health, but right after that OnEntitySleep overrides it back to 200000.

Here's how I tracked the max health changes:

AddComponentPostInit("health", function(self, inst)
	if inst:HasTag("crabking") then
		addsetter(self, "maxhealth", print) --prints self, maxhealth, oldmaxhealth
[01:31:06]: table: 53E4AAE0    200000    100    
[01:31:06]: table: 53E4AAE0    200000    200000    
[01:31:13]: table: 53E4AAE0    20000    200000
[01:31:13]: table: 53E4AAE0    200000    20000


Steps to Reproduce

1) Begin a fight with the Crab King, fully socketed

2) Save and reload

3) TheNet:Announce(c_find("crabking").components.health.maxhealth)


User Feedback

A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...