From d8abc267181cd4ba7ccfef94b7e2849f10afeabf Mon Sep 17 00:00:00 2001 From: MistEO Date: Sat, 29 Jan 2022 21:45:21 +0800 Subject: [PATCH] =?UTF-8?q?fix.=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=82=89=E9=B8=BD=E5=8D=A1=E4=BD=8F=E5=90=8E=E4=B8=8D=E9=87=8D?= =?UTF-8?q?=E8=AF=95=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=B9=B2=E5=91=98=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/tasks.json | 3 ++- src/MeoAssistant/Assistant.cpp | 5 +++-- src/MeoAssistant/Version.h | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/resource/tasks.json b/resource/tasks.json index bed358bfcb..238fe61f14 100644 --- a/resource/tasks.json +++ b/resource/tasks.json @@ -3682,9 +3682,9 @@ "---近卫---", "幽灵鲨", "煌", + "帕拉斯", "银灰", "陈", - "帕拉斯", "棘刺", "---先锋---", "凛冬", @@ -3723,6 +3723,7 @@ "安洁莉娜", "铃兰", "麦哲伦", + "令", "---特种---", "水月", "狮蝎" diff --git a/src/MeoAssistant/Assistant.cpp b/src/MeoAssistant/Assistant.cpp index ef4530f1dc..e5f798ce68 100644 --- a/src/MeoAssistant/Assistant.cpp +++ b/src/MeoAssistant/Assistant.cpp @@ -338,8 +338,9 @@ bool asst::Assistant::append_roguelike(int mode) std::unique_lock lock(m_mutex); // 这个任务如果卡住会放弃当前的肉鸽并重新开始,所以多添加一点。先这样凑合用 - for (int i = 0; i != 10000; ++i) { - m_tasks_queue.emplace(roguelike_task_ptr); + for (int i = 0; i != 100; ++i) { + auto temp = std::make_shared(*roguelike_task_ptr); + m_tasks_queue.emplace(temp); } return true; diff --git a/src/MeoAssistant/Version.h b/src/MeoAssistant/Version.h index 4210b50064..8284417958 100644 --- a/src/MeoAssistant/Version.h +++ b/src/MeoAssistant/Version.h @@ -2,5 +2,5 @@ namespace asst { - constexpr static const char* Version = "v2.9.5"; + constexpr static const char* Version = "v2.9.6"; }