mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
feat: 优化会客室线索处理逻辑 (#13160)
* feat: 优化会客室线索处理逻辑 * chore: Auto update by pre-commit hooks [skip changelog] --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -30,11 +30,19 @@ bool asst::InfrastReceptionTask::_run()
|
||||
|
||||
close_end_of_clue_exchange();
|
||||
|
||||
// 防止送线索把可以填入的送了
|
||||
get_friend_clue();
|
||||
if (need_exit()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
use_clue();
|
||||
back_to_reception_main();
|
||||
|
||||
get_clue();
|
||||
if (need_exit()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
get_self_clue();
|
||||
if (need_exit()) {
|
||||
return false;
|
||||
}
|
||||
@@ -67,11 +75,15 @@ bool asst::InfrastReceptionTask::close_end_of_clue_exchange()
|
||||
return task_temp.run();
|
||||
}
|
||||
|
||||
bool asst::InfrastReceptionTask::get_clue()
|
||||
bool asst::InfrastReceptionTask::get_friend_clue()
|
||||
{
|
||||
ProcessTask task_temp(
|
||||
*this,
|
||||
{ "InfrastClueSelfNew", "InfrastClueFriendNew", "InfrastClueSelfMaybeFull", "ReceptionFlag" });
|
||||
ProcessTask task_temp(*this, { "InfrastClueFriendNew", "ReceptionFlag" });
|
||||
return task_temp.set_retry_times(ProcessTask::RetryTimesDefault).run();
|
||||
}
|
||||
|
||||
bool asst::InfrastReceptionTask::get_self_clue()
|
||||
{
|
||||
ProcessTask task_temp(*this, { "InfrastClueSelfNew", "InfrastClueSelfMaybeFull", "ReceptionFlag" });
|
||||
return task_temp.set_retry_times(ProcessTask::RetryTimesDefault).run();
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,8 @@ private:
|
||||
// 收取信息板的周限300信用
|
||||
bool receive_message_board();
|
||||
bool close_end_of_clue_exchange();
|
||||
bool get_clue();
|
||||
bool get_friend_clue();
|
||||
bool get_self_clue();
|
||||
bool use_clue();
|
||||
bool proc_clue_vacancy();
|
||||
bool unlock_clue_exchange();
|
||||
|
||||
Reference in New Issue
Block a user