mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 18:01:26 +08:00
style: format
[skip changelog]
This commit is contained in:
@@ -201,8 +201,7 @@
|
||||
2
|
||||
],
|
||||
"direction": "down"
|
||||
}
|
||||
,
|
||||
},
|
||||
{
|
||||
"groups": [
|
||||
"支援陷阱",
|
||||
|
||||
@@ -57,7 +57,8 @@ bool asst::MedicineCounterPlugin::_run()
|
||||
}
|
||||
else if (m_using_count >= m_max_count && m_use_expiring) {
|
||||
bool changed = false;
|
||||
for (const auto& [use, inventory, rect, is_expiring] : initial_count->medicines | asst::ranges::views::reverse) {
|
||||
for (const auto& [use, inventory, rect, is_expiring] :
|
||||
initial_count->medicines | asst::ranges::views::reverse) {
|
||||
if (use > 0 && is_expiring != ExpiringStatus::Expiring) {
|
||||
ctrler()->click(rect);
|
||||
sleep(Config.get_options().task_delay);
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace asst
|
||||
private:
|
||||
virtual bool _run() override;
|
||||
|
||||
|
||||
// 获取 当前理智/最大理智
|
||||
// 返回 是否获取成功
|
||||
bool get_sanity_before_stage();
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
#include "Config/TaskData.h"
|
||||
#include "Task/Fight/DrGrandetTaskPlugin.h"
|
||||
#include "Task/Fight/MedicineCounterPlugin.h"
|
||||
#include "Task/Fight/SanityBeforeStagePlugin.h"
|
||||
#include "Task/Fight/SideStoryReopenTask.h"
|
||||
#include "Task/Fight/StageDropsTaskPlugin.h"
|
||||
#include "Task/Fight/StageNavigationTask.h"
|
||||
#include "Task/Fight/MedicineCounterPlugin.h"
|
||||
#include "Task/ProcessTask.h"
|
||||
#include "Utils/Logger.hpp"
|
||||
#include "Utils/Ranges.hpp"
|
||||
|
||||
@@ -45,7 +45,7 @@ asst::CreditFightTask::CreditFightTask(const AsstCallback& callback, Assistant*
|
||||
|
||||
void asst::CreditFightTask::set_select_formation(int index)
|
||||
{
|
||||
json::value copilot_params = json::object{
|
||||
json::value copilot_params = json::object {
|
||||
{ "filename", utils::path_to_utf8_string(ResDir.get() / "copilot" / "OF-1_credit_fight.json") },
|
||||
{ "formation", true },
|
||||
{ "support_unit_name", "_RANDOM_" },
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
#include "Task/Interface/CopilotTask.h"
|
||||
#include "Utils/WorkingDir.hpp"
|
||||
|
||||
#include <utility>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
namespace asst
|
||||
{
|
||||
@@ -19,6 +19,7 @@ namespace asst
|
||||
virtual ~CreditFightTask() override = default;
|
||||
|
||||
void set_select_formation(int index);
|
||||
|
||||
private:
|
||||
std::shared_ptr<asst::CopilotTask> m_copilot_task_ptr = nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user