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

Don't use a time limit for non-daily routine states #648

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

thokkat
Copy link
Contributor

@thokkat thokkat commented Jun 27, 2024

If a new state is started the end time is not set to infinite but the current daily routine end time is kept instead. So if a npc is fighting but a new daily routine begins the npc would quit the fight and go home. There's already code that excludes zs_talk from early ending.

This has been changed in 7af7f0c to avoid daily routines breaking. In my testing everything worked correctly with the pr change, likely code change over time made daily routines more robust.

@Try
Copy link
Owner

Try commented Jul 1, 2024

Thanks for PR, @thokkat !

If a new state is started the end time is not set to infinite but the current daily routine end time is kept instead.

Can you please add this as a comment to code? In case if we would run into another state-tracking issue, we better keep knowledge of why gtime::endOfTime() is important.

@thokkat
Copy link
Contributor Author

thokkat commented Jul 3, 2024

Added comment.

@Try Try merged commit 356bc93 into Try:master Jul 3, 2024
1 check passed
@Try
Copy link
Owner

Try commented Jul 3, 2024

Merged, thanks!

@thokkat thokkat deleted the state-time branch July 3, 2024 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants