Repository navigation
Conversation
|
Hi, @thokkat ! Generally, yes makes sense. I'm bit worried, that this patch exposes even more usage Would it still achieve the purpose, if we keep |
6cb9b7b to
28a7aad
Compare
|
Removed explicit state check. Added a comment that states like ZS_Sleep are critical. State end function would now still be called but shouldn't have great effect. |
... do you mean "ZS_Sleep does not inherits daily routine status"? |
28a7aad to
f22ce09
Compare
|
I took the wording from |
In mod
Npc_ExchangeRoutineis called in zs loop of daily routine and player state is immediately updated but not for non-routines states likeZS_Attack. Basically the same behavior we observed for routine end times. Git blame showedNpc_ExchangeRoutineused to be an immediate routine change but caused trouble withZS_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==nullptrseems useful to track other states likeZS_ObservePlayerbut actually don't know what's the difference betweenisTalk()andoutputPipe->isFinished().