-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix two zombie bugs #34472
base: master
Are you sure you want to change the base?
Fix two zombie bugs #34472
Conversation
Buffing it two times is definitely not "make it slightly stronger", I don't even think Vox being kinda immune to it is an issue, yet the second fix is nice |
if (HasComp<ZombieComponent>(uid) || HasComp<ZombieImmuneComponent>(uid)) | ||
return; | ||
|
||
EnsureComp<PendingZombieComponent>(uid, out PendingZombieComponent pendingComp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, adding a component in the initialization of another component is a little messy and afaik there are some integration tests that can fail due to this for certain prototypes.
And as far as I can see it should already be added where ever the IncurableZombieComponent is added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but that causes a race condition between the two. Its what caused the bug.
Well, partially, the original author also seemed to think the map init wouldn't get hit on new components added after the map was initialized, but that's not how that works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About the PR
I identified two bugs with zombies and fixed them.
Why / Balance
I squash bug.
This will make zombies virus scarier and faster.
It only matters if you survive a fight with a zombie.
Technical details
Media
Requirements
Breaking changes
Changelog
🆑