mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
fix: 移除随机购物
This commit is contained in:
@@ -12813,7 +12813,7 @@
|
||||
},
|
||||
"Roguelike@TraderRandomShopping": {
|
||||
"Doc": "该任务注册了 RoguelikeShoppingTaskPlugin,若是点完了仍在当前界面,说明没啥要买的,直接离开商店(next 里的 PhantomStageTraderLeave)",
|
||||
"action": "ClickSelf",
|
||||
"action": "DoNothing",
|
||||
"templThreshold": 0.7,
|
||||
"cache": false,
|
||||
"roi": [
|
||||
@@ -16420,4 +16420,4 @@
|
||||
"Stop"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ bool asst::RoguelikeShoppingTaskPlugin::_run()
|
||||
}
|
||||
}
|
||||
|
||||
bool bought = false;
|
||||
//bool bought = false;
|
||||
auto& all_goods = RoguelikeShopping.get_goods(m_config->get_theme());
|
||||
std::vector<std::string> all_foldartal = m_config->get_theme() == RoguelikeTheme::Sami
|
||||
? Task.get<OcrTaskInfo>("Sami@Roguelike@FoldartalGainOcr")->text
|
||||
@@ -161,7 +161,7 @@ bool asst::RoguelikeShoppingTaskPlugin::_run()
|
||||
// 然后继续走 next 里确认 or 取消等等的逻辑
|
||||
Log.info("Ready to buy", goods.name);
|
||||
ctrler()->click(find_it->rect);
|
||||
bought = true;
|
||||
//bought = true;
|
||||
if (m_config->get_theme() == RoguelikeTheme::Sami) {
|
||||
|
||||
auto iter = std::find(all_foldartal.begin(), all_foldartal.end(), goods.name);
|
||||
@@ -177,11 +177,11 @@ bool asst::RoguelikeShoppingTaskPlugin::_run()
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
if (!bought) {
|
||||
// 如果什么都没买,即使有商品,说明也是不需要买的,这里强制离开商店,后面让 ProcessTask 继续跑
|
||||
return ProcessTask(*this, { "RoguelikeTraderShoppingOver" }).run();
|
||||
}
|
||||
|
||||
*/
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user