mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
perf: 略微上调干员部署滑动
参照#7246
This commit is contained in:
@@ -8985,7 +8985,7 @@
|
||||
"BattleSwipeOper": {
|
||||
"algorithm": "JustReturn",
|
||||
"preDelay": 400,
|
||||
"postDelay": 100,
|
||||
"postDelay": 150,
|
||||
"Doc": "pre 是将干员滑动到场上的 duration 系数;post 是设置干员朝向滑动的 duration",
|
||||
"specialParams": [
|
||||
400,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user