fix: 修复自动战斗提前结束的问题,优化下保全测试作业

This commit is contained in:
MistEO
2023-01-13 01:33:40 +08:00
parent 2764d5f104
commit 3d7e6f0eeb
3 changed files with 29 additions and 39 deletions

View File

@@ -26,17 +26,12 @@
"name": "水月",
"skill": 2,
"skill_usage": 1
},
{
"name": "桃金娘",
"skill": 2,
"skill_usage": 1
}
],
"tool_men": {
"Pioneer": 3,
"Warrior": 6,
"Medic": 2
"先锋": 3,
"近卫": 6,
"医疗": 2
},
"drop_buffs": [
"定向部署支援系统"
@@ -89,14 +84,6 @@
"actions": [
{
"type": "二倍速"
},
{
"name": "桃金娘",
"location": [
5,
4
],
"direction": "下"
}
],
"retry_times": 3
@@ -104,6 +91,27 @@
{
"stage_name": "见者有份",
"strategies": [
{
"core": "泥岩",
"tool_men": {
"先锋": 3
},
"location": [
4,
2
],
"direction": "Left"
},
{
"tool_men": {
"医疗": 100
},
"location": [
3,
3
],
"direction": "Right"
},
{
"core": "水月",
"tool_men": {
@@ -115,17 +123,6 @@
],
"direction": "Left"
},
{
"core": "泥岩",
"tool_men": {
"先锋": 3
},
"location": [
4,
4
],
"direction": "Left"
},
{
"tool_men": {
"辅助": 100
@@ -138,11 +135,11 @@
},
{
"tool_men": {
"医疗": 100
"近卫": 100
},
"location": [
3,
3
4,
4
],
"direction": "Left"
}
@@ -151,14 +148,6 @@
"actions": [
{
"type": "二倍速"
},
{
"name": "桃金娘",
"location": [
5,
4
],
"direction": "下"
}
],
"retry_times": 3

View File

@@ -311,6 +311,7 @@ bool asst::BattleHelper::deploy_oper(const std::string& name, const Point& loc,
m_inst_helper.sleep(use_oper_task_ptr->post_delay);
m_inst_helper.ctrler()->swipe(target_point, end_point, swipe_oper_task_ptr->post_delay);
m_inst_helper.sleep(use_oper_task_ptr->pre_delay);
}
if (deploy_with_pause) {

View File

@@ -351,7 +351,7 @@ bool asst::BattleProcessTask::enter_bullet_time_for_next_action(size_t next_inde
void asst::BattleProcessTask::sleep_and_do_not_urgent(unsigned millisecond)
{
LogTraceScope(__FUNCTION__ + std::to_string(millisecond));
LogTraceScope(__FUNCTION__ + std::string(" ms: ") + std::to_string(millisecond));
using namespace std::chrono_literals;
const auto start = std::chrono::steady_clock::now();