Mobile step 6: client-side auto hunt with AUTO button
Engine-free AutoHunt state machine (search/engage/loot/return/paused) driven from the game loop through the existing manual paths: move target, target packet, normal attack, quickslot skills, item pick-up and belt potions. player.SetAutoHunt/GetAutoHuntState/SetAutoHuntOption with autohunt.cfg; AUTO button on the combat wheel (tap toggles, long press opens settings). Tests: ava2.auto_hunt, extended ava2.touch_game; 54/54. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ed2c185135
commit
64d25e3571
@@ -76,6 +76,7 @@ if(AVA2_EMBED_PYTHON)
|
||||
src/scripting/python_chr.cpp
|
||||
src/scripting/python_app.cpp
|
||||
src/game/player_settings.cpp
|
||||
src/game/auto_hunt.cpp
|
||||
src/scripting/python_wndmgr.cpp
|
||||
src/scripting/python_gameplay_modules.cpp
|
||||
src/scripting/python_ime.cpp
|
||||
@@ -229,6 +230,9 @@ if(BUILD_TESTING AND NOT ANDROID)
|
||||
add_test(NAME ava2.pack_assets COMMAND "${Python3_EXECUTABLE}" "${CMAKE_SOURCE_DIR}/tests/pack_assets_test.py")
|
||||
|
||||
endif()
|
||||
add_executable(auto_hunt_test tests/auto_hunt_test.cpp src/game/auto_hunt.cpp)
|
||||
target_include_directories(auto_hunt_test PRIVATE src/game)
|
||||
add_test(NAME ava2.auto_hunt COMMAND auto_hunt_test)
|
||||
add_executable(server_clock_test tests/server_clock_test.cpp)
|
||||
target_include_directories(server_clock_test PRIVATE src src/network)
|
||||
add_test(NAME ava2.server_clock COMMAND server_clock_test)
|
||||
|
||||
Reference in New Issue
Block a user