Level 120: autohunt large targets, boss hit range, QUEST_INFO size
- QUEST_INFO: take the full packet size from the flags (server built it short) - Bosses get the huge-race 500 centre hit test, like AVA2 IsBoss() - Autohunt: defending reach as body size for large targets, walk straight at a body in reach when the planner finds no path, escalating skip for a target it keeps stalling on, new anchor after a teleport, immune skip only on an explicit 0-damage packet - ava2-dungeons README: hydra range notes, snow key stack note Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a1e7da68a4
commit
569afb1378
@@ -1915,7 +1915,18 @@ bool CPythonNetworkStream::RecvQuestInfoPacket()
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!Peek(QuestInfo.size))
|
||||
// The server writes the header before it adds the optional fields to size, so the size field
|
||||
// cannot be trusted: wait for the whole packet as the flags describe it.
|
||||
int iFullSize = sizeof(TPacketGCQuestInfo);
|
||||
if (QuestInfo.flag & QUEST_SEND_IS_BEGIN) iFullSize += sizeof(BYTE);
|
||||
if (QuestInfo.flag & QUEST_SEND_TITLE) iFullSize += 30 + 1;
|
||||
if (QuestInfo.flag & QUEST_SEND_CLOCK_NAME) iFullSize += 16 + 1;
|
||||
if (QuestInfo.flag & QUEST_SEND_CLOCK_VALUE) iFullSize += sizeof(int);
|
||||
if (QuestInfo.flag & QUEST_SEND_COUNTER_NAME) iFullSize += 16 + 1;
|
||||
if (QuestInfo.flag & QUEST_SEND_COUNTER_VALUE) iFullSize += sizeof(int);
|
||||
if (QuestInfo.flag & QUEST_SEND_ICON_FILE) iFullSize += 24 + 1;
|
||||
|
||||
if (!Peek(std::max<int>(QuestInfo.size, iFullSize)))
|
||||
{
|
||||
Tracen("Recv Quest Info Packet Error #2");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user