fix: 月度小队/深入调查未启用自动切换会以当前游戏模式开始探索 (#12032)

fix: MS/DE now switch to correct tabs even without autoiterate ticked
This commit is contained in:
BxFS
2025-02-25 22:23:19 +08:00
committed by GitHub
parent 29e597b1f8
commit 3dd00e6207
4 changed files with 12 additions and 2 deletions

View File

@@ -45,6 +45,10 @@ bool asst::RoguelikeIterateDeepExplorationPlugin::_run()
ProcessTask(*this, { m_config->get_theme() + "@Roguelike@DeepExploration" }).run();
}
if (!m_iterateDE) {
return true;
}
bool ret;
for (int i = 0; i < deepExplorationCount[m_config->get_theme()]; i++) {
ret = ProcessTask(*this, { m_config->get_theme() + "@Roguelike@DeepExplorationRewardMiss" }).run();

View File

@@ -22,5 +22,6 @@ private:
{ "Sami", 13 },
{ "Sarkaz", 0 } };
bool m_completed;
bool m_iterateDE;
};
}

View File

@@ -9,8 +9,8 @@ bool asst::RoguelikeIterateMonthlySquadPlugin::load_params([[maybe_unused]] cons
{
m_checkComms = params.find<bool>("monthly_squad_check_comms").value_or(false);
auto iterateMS = params.find<bool>("monthly_squad_auto_iterate");
return m_config->get_mode() == RoguelikeMode::Squad && iterateMS.value_or(false);
m_iterateMS = params.find<bool>("monthly_squad_auto_iterate").value_or(false);
return m_config->get_mode() == RoguelikeMode::Squad;
}
bool asst::RoguelikeIterateMonthlySquadPlugin::verify(AsstMsg msg, const json::value& details) const
@@ -47,6 +47,10 @@ bool asst::RoguelikeIterateMonthlySquadPlugin::_run()
ProcessTask(*this, { m_config->get_theme() + "@Roguelike@MonthlySquad" }).run();
}
if (!m_iterateMS) {
return true;
}
for (int i = 0; i < monthlySquadCount[m_config->get_theme()]; i++) {
if (m_checkComms) {
ProcessTask(*this, { m_config->get_theme() + "@Roguelike@MonthlySquadComms" }).run();

View File

@@ -23,6 +23,7 @@ private:
{ "Sarkaz", 1 } };
bool m_checkComms;
bool m_completed;
bool m_iterateMS;
virtual bool try_task(const char*) const;
};