WIP: fix: avoid pushing to quest progress in updateQuestStage #2847
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "quest-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #2846. The problem in that case was that ordis' message caused the logic in
updateQuestStageto increment the quest stage because of an off-by-one (it wasn't accounting for the client's 1-indexing), so the quest was basically finished at that point, which the client then realised upon resyncing the inventory.a539b07502to827e224c3b827e224c3bto37c2da0f8eThis logic definitely seems a lot more solid now. At least triggering a message doesn't advance the quest unexpectedly but I do see that now the 'm' fields in Progress are kinda off-by-once compared to live which doesn't make a whole lot of sense.
It's possible that the 'm' and 'i' fields for the currently active stage are tracked in some way that's not apparent to the client and then discharged to
Progressonce that stage has been completed.fix: avoid pushing to quest progress in updateQuestStageto WIP: fix: avoid pushing to quest progress in updateQuestStagePull request closed