Hotfix: restored deleted coordinate

Restored deleted coordinate
This commit is contained in:
Azrub 2025-08-06 05:41:08 +02:00
parent ccead0d29b
commit 54233f6ac1
2 changed files with 8 additions and 8 deletions

View file

@ -205,14 +205,14 @@ void AutomationLogic::ApplyGolemSettings() {
} }
char startBuffer[400]; char startBuffer[400];
sprintf_s(startBuffer, "Starting golem settings sequence (24 steps) - Modifiers: %s, Hitbox: %s", modifiers.c_str(), hitbox); sprintf_s(startBuffer, "Starting golem settings sequence (25 steps) - Modifiers: %s, Hitbox: %s", modifiers.c_str(), hitbox);
g_api->Log(ELogLevel_INFO, "GolemHelper", startBuffer); g_api->Log(ELogLevel_INFO, "GolemHelper", startBuffer);
try { try {
g_api->GameBinds.InvokeAsync(EGameBinds_MiscInteract, 50); g_api->GameBinds.InvokeAsync(EGameBinds_MiscInteract, 50);
Sleep(g_state.initialDelay); Sleep(g_state.initialDelay);
for (int i = 0; i < 24; i++) { for (int i = 0; i < 25; i++) {
if (g_coords.golemStepX[i] == 0 && g_coords.golemStepY[i] == 0) { if (g_coords.golemStepX[i] == 0 && g_coords.golemStepY[i] == 0) {
continue; continue;
} }
@ -238,7 +238,7 @@ void AutomationLogic::ApplyGolemSettings() {
} }
} }
int delay = (i == 23) ? 50 : g_state.stepDelay; int delay = (i == 24) ? 50 : g_state.stepDelay;
if (i == 14) { if (i == 14) {
CoordinateUtils::ClickAtScaled(currentX, currentY, delay); CoordinateUtils::ClickAtScaled(currentX, currentY, delay);
@ -277,5 +277,5 @@ void AutomationLogic::ApplyGolemSettings() {
g_state.showUI = true; g_state.showUI = true;
} }
g_api->Log(ELogLevel_INFO, "GolemHelper", "Golem settings sequence completed (24 steps)!"); g_api->Log(ELogLevel_INFO, "GolemHelper", "Golem settings sequence completed (25 steps)!");
} }

View file

@ -90,16 +90,16 @@ struct GolemHelperState {
}; };
struct MenuCoordinates { struct MenuCoordinates {
int golemStepX[24] = { int golemStepX[25] = {
830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, 830,
830, 830, 830, 830 830, 830, 830, 830, 830
}; };
int golemStepY[24] = { int golemStepY[25] = {
260, 260, 306, 257, 257, 306, 257, 306, 352, 400, 260, 260, 306, 257, 257, 306, 257, 306, 352, 400,
454, 508, 352, 257, 306, 454, 400, 306, 352, 400, 454, 508, 352, 257, 306, 454, 400, 306, 352, 400,
454, 454, 454, 548 454, 400, 454, 454, 548
}; };
int boonStepX[20] = { int boonStepX[20] = {