perf: 略微上调干员部署滑动

参照#7246
This commit is contained in:
status102
2024-03-09 08:59:43 +08:00
parent 057d9df57a
commit ef20d89ac9
2 changed files with 3 additions and 3 deletions

View File

@@ -8985,7 +8985,7 @@
"BattleSwipeOper": {
"algorithm": "JustReturn",
"preDelay": 400,
"postDelay": 100,
"postDelay": 150,
"Doc": "pre 是将干员滑动到场上的 duration 系数post 是设置干员朝向滑动的 duration",
"specialParams": [
400,

View File

@@ -66,7 +66,7 @@ bool asst::RoguelikeInvestTaskPlugin::_run()
else if (is_investment_error(image)) {
Log.info(__FUNCTION__, "投资系统错误, 退出投资");
sleep(500);// 此处UI有一个从左往右的移动等待后重新截图防止UI错位
sleep(500); // 此处UI有一个从左往右的移动等待后重新截图防止UI错位
if (auto ocr = ocr_current_count(ctrler()->get_image(), "Roguelike@StageTraderInvestError-Count"); ocr) {
// 可继续投资 / 到达投资上限999
count += *ocr - deposit.value_or(0);
@@ -114,7 +114,7 @@ std::optional<int> asst::RoguelikeInvestTaskPlugin::ocr_current_count(const auto
{
const auto& number_replace = Task.get<OcrTaskInfo>("NumberOcrReplace")->replace_map;
auto task_replace = Task.get<OcrTaskInfo>(task_name)->replace_map;
auto merge_map = std::vector(number_replace);
auto merge_map = std::vector(number_replace);
ranges::copy(task_replace, std::back_inserter(merge_map));
RegionOCRer ocr(img);