[core] Set m_TimeType at server startup, call TOTD change on startup #7083
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I affirm:
What does this pull request do?
m_TimeType is not set on startup which could cause issues with mob scripts that check TOTD.
Call TOTD change on startup so mobs that should spawn at certain times do (such as undead)
Note: time_server is normally what calls that, but it's delayed by 2.4 seconds so as far as I know this wouldn't result in TOTD change being called twice with the same time type.
Steps to test these changes
start server @ night
!zone konschtat highlands
!gotoname Wolf_Zombie 1
See zombie there