Skip to content
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

Zombie keep their previous upgrade_time when they revive #36168

Merged
merged 1 commit into from
Dec 17, 2019

Conversation

Fris0uman
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Reviving does not speed up evolution"

Purpose of change

Fixes #12439
Reviving does not speed up zombie evolution

Describe the solution

Pass upgrade_time to make_corpse()
In make_corpse()if the monster has the REVIVE flag store upgrade_time as a var
In init_from_item get upggrade_time from the corpse item

Describe alternatives you've considered

Testing

Debug Kill zombies
Use debug function of VS to check that the var is properly set
Wait fro them to revive
Use debug to check that upgrade_time is properly set back to what it was on death

Additional context

@I-am-Erk I-am-Erk added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly. Spawn Creatures, items, vehicles, locations appearing on map labels Dec 16, 2019
@kevingranade kevingranade merged commit 4b6ed85 into CleverRaven:master Dec 17, 2019
@Fris0uman Fris0uman deleted the upZ branch December 17, 2019 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly. Spawn Creatures, items, vehicles, locations appearing on map
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rezed zeds can upgrade instantly
3 participants