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
@@ -32,5 +32,15 @@ int main() {
|
||||
// Start/finish and negative map-relative coordinates retain their exact positions.
|
||||
auto negative=FindPath({-23,-47},{-1023,-47},0,free);
|
||||
assert(negative.size()==1 && negative.back().x==-1023 && negative.back().y==-47);
|
||||
std::puts("autohunt navigation: direct, detour, sealed, thin wall, corners, budget, unloaded and coordinates passed");
|
||||
// A large target standing in unwalkable cells (a hydra on the water) is reached at its edge.
|
||||
auto lake=[](Point p) { return Distance(p,{1000,0})>300; };
|
||||
assert(FindPath({0,0},{1000,0},100,lake).empty());
|
||||
auto shore=FindPath({0,0},{1000,0},450,lake,3500,350);
|
||||
assert(!shore.empty());
|
||||
prev={0,0};
|
||||
for (auto p:shore) { assert(lake(p) && Segment(prev,p,lake)); prev=p; }
|
||||
assert(Distance(prev,{1000,0})<=450);
|
||||
auto around=FindPath({0,0},{1000,0},450,[&](Point p) { return lake(p) && wall(p); },3500,350);
|
||||
assert(around.size()>1 && Distance(around.back(),{1000,0})<=450);
|
||||
std::puts("autohunt navigation: direct, detour, sealed, thin wall, corners, budget, unloaded, coordinates and large targets passed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user