Commit 69eed58
authored
Sort quest missions and map hunt updates (OpenKore#4204)
Improve quest mission ordering and robustly handle server hunt updates. Commands.pm: sort mission entries by mission_index (fallback to 9999) then by numeric mobID so missions display in intended order. Network/Receive.pm: ignore mission updates for unknown quests early, and add a fallback mapping for servers that send updates keyed only by hunt_id — derive a mission_index from hunt_id and match against existing missions (allowing off-by-one), with safety checks to avoid applying updates to non-existent missions. These changes prevent incorrect ordering and missed/incorrect mission updates from varied server implementations.1 parent f76730c commit 69eed58
2 files changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7091 | 7091 | | |
7092 | 7092 | | |
7093 | 7093 | | |
7094 | | - | |
| 7094 | + | |
| 7095 | + | |
| 7096 | + | |
7095 | 7097 | | |
7096 | 7098 | | |
7097 | 7099 | | |
| |||
8786 | 8788 | | |
8787 | 8789 | | |
8788 | 8790 | | |
8789 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4891 | 4891 | | |
4892 | 4892 | | |
4893 | 4893 | | |
| 4894 | + | |
| 4895 | + | |
4894 | 4896 | | |
4895 | 4897 | | |
4896 | 4898 | | |
| |||
4924 | 4926 | | |
4925 | 4927 | | |
4926 | 4928 | | |
| 4929 | + | |
| 4930 | + | |
| 4931 | + | |
| 4932 | + | |
| 4933 | + | |
| 4934 | + | |
| 4935 | + | |
| 4936 | + | |
| 4937 | + | |
| 4938 | + | |
| 4939 | + | |
| 4940 | + | |
| 4941 | + | |
| 4942 | + | |
| 4943 | + | |
4927 | 4944 | | |
4928 | 4945 | | |
4929 | 4946 | | |
| |||
12604 | 12621 | | |
12605 | 12622 | | |
12606 | 12623 | | |
12607 | | - | |
| |||
0 commit comments