support Nahida long e

This commit is contained in:
huiyadanli
2024-01-07 15:56:06 +08:00
parent 819587d2bd
commit 92a084cde8
7 changed files with 40 additions and 37 deletions

View File

@@ -86,7 +86,11 @@ public class AutoDomainTask
// 5. 快速领取奖励并判断是否有下一轮
Logger.LogInformation("自动秘境:{Text}", "5. 领取奖励");
GettingTreasure();
if (!GettingTreasure())
{
Logger.LogInformation("体力已经耗尽,结束自动秘境");
break;
}
}
}
catch (NormalEndException)
@@ -533,7 +537,7 @@ public class AutoDomainTask
/// <summary>
/// 领取奖励
/// </summary>
private void GettingTreasure()
private bool GettingTreasure()
{
// 等待窗口弹出
Sleep(1000, _taskParam.Cts);
@@ -565,7 +569,7 @@ public class AutoDomainTask
if (!exitRectArea.IsEmpty())
{
exitRectArea.ClickCenter();
break;
return false;
}
}
else
@@ -578,6 +582,7 @@ public class AutoDomainTask
Sleep(300, _taskParam.Cts);
}
return true;
}
/// <summary>