style: format

[skip changelog]
This commit is contained in:
zzyyyl
2023-11-02 12:09:07 +08:00
parent a3413c32ab
commit ffe0255970
6 changed files with 7 additions and 7 deletions

View File

@@ -201,8 +201,7 @@
2
],
"direction": "down"
}
,
},
{
"groups": [
"支援陷阱",

View File

@@ -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);

View File

@@ -12,7 +12,6 @@ namespace asst
private:
virtual bool _run() override;
// 获取 当前理智/最大理智
// 返回 是否获取成功
bool get_sanity_before_stage();

View File

@@ -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"

View File

@@ -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_" },

View File

@@ -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;
};