Skip to content

Npc_ExchangeRoutine: clear state if in daily routine - #1005

Open
thokkat wants to merge 1 commit into
Try:masterfrom
thokkat:exchange-routine
Open

thokkat wants to merge 1 commit into
Try:masterfrom
thokkat:exchange-routine

Conversation

@thokkat

@thokkat thokkat commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

In mod Npc_ExchangeRoutine is called in zs loop of daily routine and player state is immediately updated but not for non-routines states like ZS_Attack. Basically the same behavior we observed for routine end times. Git blame showed Npc_ExchangeRoutine used to be an immediate routine change but caused trouble with ZS_Talk.

I made the check for non-routine a function and added some extra checks to have more robustness. Old line is left as last decider. currentTarget==nullptr seems useful to track other states like ZS_ObservePlayer but actually don't know what's the difference between isTalk() and outputPipe->isFinished().

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.

1 participant