-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fixed "Evolution doesn't happen with initial day set at 30 #33450" #33487
Conversation
…#33450". `upgrade_time` is counted in days, can't add turns to it.
The build |
Error can be seen at https://travis-ci.org/CleverRaven/Cataclysm-DDA/jobs/575868273
Edit: but that's really not the fault of this PR. |
Well, yes. But I have not changed anything about monster_type_id. |
It's not the fault of this PR, so you have no need to do anything here. If you want, you can fix this in a separate PR, but otherwise, you can just ignore that error. |
Looks like the |
Changing Also it could lead to change the save format, increase Looks complex enough to create another PR for it. |
A separate PR is certainly reasonable. |
…#33450". (CleverRaven#33487) `upgrade_time` is counted in days, can't add turns to it.
Summary
SUMMARY: Bugfixes "Evolution doesn't happen with initial day set at 30 #33450"
Purpose of change
Fixes #33450
Describe the solution
Fixed logical error:
upgrade_time
is in days, not in turns.When
initial_day
is set, it affectsstart_of_cataclysm
. Then ``start_of_cataclysmis added to
upgrade_time` in turns, which is a bug number for 30 days. So the evolution was really postponed.Also removed
time_point
totime_point
cast. Or is it required somehow?Tested for
initial_day
=30,spawn delay
=999. Observed a Kevlar hulk and other evolved monsters immediately.Describe alternatives you've considered
None
Additional context
I think this PR needs extensive testing.