Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
6bd08e2
BDSP AutoStory: count a tap as a step only if the view scrolled
dayfine Nov 2, 2026
08571d3
Merge bdsp/autostory-v4 into bdsp/view-shift
dayfine Nov 2, 2026
1473997
Merge bdsp/autostory-v4 (coord events from bdsp/maps-v4) into bdsp/vi…
dayfine Nov 2, 2026
7291808
Merge bdsp/autostory-v4 into bdsp/view-shift
dayfine Nov 2, 2026
6ff1bf6
Merge bdsp/autostory-v4 (040693c62: verify mode from #122) into bdsp/…
dayfine Nov 3, 2026
bf10b8a
Merge origin/bdsp/autostory-v4 into bdsp/view-shift
dayfine Nov 8, 2026
9c458be
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into bdsp/vie…
dayfine Nov 8, 2026
886ca86
Merge origin/bdsp/autostory-v4 into bdsp/view-shift
dayfine Nov 8, 2026
d200e24
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into bdsp/vie…
dayfine Nov 9, 2026
d73147d
BDSP walk: the late-tap check counts a scrolled view, as look() does
dayfine Nov 9, 2026
c149df4
Merge branch 'bdsp/autostory-v4' into bdsp/view-shift
dayfine Nov 10, 2026
e3acae8
Merge branch 'bdsp/autostory-v4' into bdsp/view-shift
dayfine Nov 10, 2026
39acdb1
Merge origin/bdsp/autostory-v4 into bdsp/view-shift
dayfine Nov 11, 2026
9ffa462
Merge origin/bdsp/autostory-v4 into bdsp/view-shift
dayfine Nov 11, 2026
bcad53d
Merge origin/bdsp/autostory-v4 into bdsp/view-shift
dayfine Nov 12, 2026
9978946
Merge origin/bdsp/autostory-v4 into bdsp/view-shift
dayfine Nov 12, 2026
168d728
BDSP MenuDetector: narrow the white columns clear of the cursor glow
dayfine Nov 12, 2026
5fedcce
BDSP AutoStory: stop for Starter RNG at the Verity Lakefront
dayfine Nov 12, 2026
03bc3d4
BDSP: port Starter RNG from #1366 (theastrogoth)
dayfine Nov 12, 2026
874c461
BDSP Starter RNG: make the attempt loop callable
dayfine Nov 12, 2026
1e1a9bd
Merge branch 'bdsp/starter-rng-callable' into bdsp/autostory-starter-rng
dayfine Nov 12, 2026
2102439
BDSP AutoStory: run Starter RNG in 00.02
dayfine Nov 12, 2026
651fbca
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into bdsp/sta…
dayfine Nov 12, 2026
db63d7e
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into bdsp/aut…
dayfine Nov 12, 2026
b6ec3bc
Merge branches 'bdsp/autostory-starter-rng-handoff' and 'bdsp/starter…
dayfine Nov 12, 2026
76f0726
BDSP AutoStory: red test: the Starter RNG handoff save checks the Ver…
dayfine Nov 13, 2026
1e40b62
BDSP AutoStory: the Starter RNG handoff save checks the card; one han…
dayfine Nov 13, 2026
5824ff6
BDSP AutoStory: document plan_story_run for Code Health
dayfine Nov 13, 2026
d141c1a
BDSP AutoStory: plan_story_run comment names its parameter
dayfine Nov 13, 2026
bf6e870
BDSP Starter RNG: red test: the default filter row is a shiny of any …
dayfine Nov 13, 2026
b0bb884
BDSP Starter RNG: set_default_shiny_row seeds the filter table; the s…
dayfine Nov 13, 2026
393c83d
Merge remote-tracking branch 'origin/bdsp/starter-rng-callable' into …
dayfine Nov 13, 2026
fa59f9c
Merge origin/bdsp/autostory-starter-rng-handoff into bdsp/autostory-s…
dayfine Nov 13, 2026
fe6aa23
BDSP AutoStory: Starter RNG default row, player model option, fatal o…
dayfine Nov 13, 2026
bd1b9da
BDSP AutoStory Starter RNG: lint fixes (private options, split tests …
dayfine Nov 13, 2026
29a2278
BDSP AutoStory Starter RNG: const filters accessor
dayfine Nov 13, 2026
89b2d42
BDSP AutoStory Starter RNG: drop const filters accessor
dayfine Nov 13, 2026
7a46b79
AutoStory: shared RNG handoff contract; BDSP Starter RNG adopts it
dayfine Nov 13, 2026
bb44bba
Merge autostory/rng-handoff into bdsp/autostory-starter-rng
dayfine Nov 13, 2026
9d96ad0
Merge bdsp/autostory-starter-rng (#439) into bdsp/starter-rng-callable
dayfine Nov 13, 2026
5358225
Merge bdsp/menu-detector-cursor-glow (#430) into bdsp/detectors-v4
dayfine Nov 13, 2026
ddccf0f
Merge bdsp/view-shift (#168) into bdsp/autostory-v4
dayfine Nov 13, 2026
b7edc14
Merge commit '0877430cf' into bdsp/rng-handoff-work
dayfine Nov 13, 2026
c2c6ae9
BDSP AutoStory: the Starter RNG handoff takes the shared RngHandoffMo…
dayfine Nov 13, 2026
3ce25ee
Merge origin/bdsp/detectors-v4 into bdsp/actions-v4
dayfine Nov 13, 2026
db02ddb
Merge origin/bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 13, 2026
62142f2
Merge origin/bdsp/autostory-v4 into bdsp/starter-rng-callable
dayfine Nov 13, 2026
c3e840b
Merge origin/bdsp/starter-rng-callable into bdsp/starter-rng-adopt
dayfine Nov 15, 2026
4b52729
Merge remote-tracking branch 'origin/bdsp/story-engine' into bdsp/sta…
dayfine Nov 15, 2026
1226973
CI: pin CommandLineTests with the BDSP MenuDetector French menu image
dayfine Nov 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cpp-ci-serial-programs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ jobs:
uses: actions/checkout@v7
if: inputs.run-tests
with:
# The fork's fixtures: upstream's plus the SystemKeyboardDetector and HomeTileReader screenshots.
# The fork's fixtures: upstream's plus the SystemKeyboardDetector, HomeTileReader and BDSP MenuDetector screenshots.
repository: 'dayfine/CommandLineTests'
ref: 'eae4697738d5fe18975e77c05a4e01216bed68e7'
ref: '248d24fc7d1803c5187aae680d37ad1c5c0f13e7'
path: 'CommandLineTests'

# The unit tests assume the downloadable resources they need are already downloaded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ constexpr double STRIPE_BOTTOM = 0.598;
// Each column sits in the gap right of an icon, clear of the "NEW" tag on
// its top right corner. The tag on TOWN MAP extends into a column at 0.160.
constexpr double STRIPE_LEFT = 0.166;
// The selected icon glows about 0.008 past its left edge, into the gap left
// of it. A column of 0.015 reached the glow from 0.177 (cursor on the first
// icon of a row); 0.010 ends just short of it.
constexpr double STRIPE_WIDTH = 0.010;

ImageFloatBox menu_stripe(size_t index, bool skip_new_banner){
double top = skip_new_banner ? STRIPE_TOP_BELOW_BANNER : STRIPE_TOP;
return ImageFloatBox(STRIPE_LEFT + 0.166 * (double)index, top, 0.015, STRIPE_BOTTOM - top);
return ImageFloatBox(STRIPE_LEFT + 0.166 * (double)index, top, STRIPE_WIDTH, STRIPE_BOTTOM - top);
}

} // namespace
Expand Down Expand Up @@ -149,52 +153,58 @@ class Test_MenuDetector : public ImageUnitTest{
MenuExpectation m_expectation;
};

// Every image runs with both column modes.
constexpr std::array<MenuCase, 22> MENU_CASES{{
{.input = {.image = "PokemonBDSP/MenuDetector/FrenchCursorOnMap_True.png", .columns = Columns::FromTop},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/FrenchCursorOnMap_True.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/NewGameBagOptions_True.png", .columns = Columns::FromTop},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/NewGameBagOptions_True.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/JubilifeTownMapNew_True.png", .columns = Columns::FromTop},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/JubilifeTownMapNew_True.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaMenuThreeNew_True.png", .columns = Columns::FromTop},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaMenuThreeNew_True.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/Home_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/Home_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/OverworldSandgemMart_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/OverworldSandgemMart_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/OverworldOreburghMine_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/OverworldOreburghMine_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/IntroDialog_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/IntroDialog_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/IntroBarry_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/IntroBarry_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaOldManDialog_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaOldManDialog_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaCloudShadows_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaCloudShadows_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
}};

} // namespace

void add_tests_MenuDetector(UnitTestDatabase& database){
static constexpr std::array<MenuCase, 20> CASES{{
{.input = {.image = "PokemonBDSP/MenuDetector/NewGameBagOptions_True.png", .columns = Columns::FromTop},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/NewGameBagOptions_True.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/JubilifeTownMapNew_True.png", .columns = Columns::FromTop},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/JubilifeTownMapNew_True.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaMenuThreeNew_True.png", .columns = Columns::FromTop},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaMenuThreeNew_True.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = true}},
{.input = {.image = "PokemonBDSP/MenuDetector/Home_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/Home_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/OverworldSandgemMart_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/OverworldSandgemMart_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/OverworldOreburghMine_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/OverworldOreburghMine_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/IntroDialog_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/IntroDialog_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/IntroBarry_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/IntroBarry_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaOldManDialog_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaOldManDialog_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaCloudShadows_False.png", .columns = Columns::FromTop},
.expectation = {.detected = false}},
{.input = {.image = "PokemonBDSP/MenuDetector/FloaromaCloudShadows_False.png", .columns = Columns::BelowNewTags},
.expectation = {.detected = false}},
}};
for (const MenuCase& test : CASES){
for (const MenuCase& test : MENU_CASES){
database.add<Test_MenuDetector>(test);
}
}
Expand Down
220 changes: 220 additions & 0 deletions SerialPrograms/Source/PokemonBDSP/Options/PokemonBDSP_RngFilter.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
/* BDSP RNG Filter
*
* From: https://github.com/PokemonAutomation/
*
*/

#include "CommonFramework/Logging/Logger.h"
#include "PokemonBDSP_RngFilter.h"

namespace PokemonAutomation{
namespace NintendoSwitch{
namespace PokemonBDSP{

using namespace Pokemon;


const uint8_t BDSP_HEIGHT_MIN = 0;
const uint8_t BDSP_HEIGHT_MAX = 255;


BdspRngFilterRow::BdspRngFilterRow(EditableTableOption& parent_table)

Check warning on line 21 in SerialPrograms/Source/PokemonBDSP/Options/PokemonBDSP_RngFilter.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::NintendoSwitch::PokemonBDSP::BdspRngFilterRow::BdspRngFilterRow( EditableTableOption & parent_table): function_lines=35 (advisory above 25, limit 50)
: EditableTableRow(parent_table)
, misc(static_cast<const BdspRngFilterTable&>(parent_table).feature_flags)
, height(
LockMode::UNLOCK_WHILE_RUNNING,
BDSP_HEIGHT_MIN, BDSP_HEIGHT_MAX, BDSP_HEIGHT_MIN, BDSP_HEIGHT_MIN,
BDSP_HEIGHT_MIN, BDSP_HEIGHT_MAX, BDSP_HEIGHT_MAX, BDSP_HEIGHT_MAX
)
, iv_hp(LockMode::UNLOCK_WHILE_RUNNING, 0, 31, 0, 0, 0, 31, 31, 31)
, iv_atk(LockMode::UNLOCK_WHILE_RUNNING, 0, 31, 0, 0, 0, 31, 31, 31)
, iv_def(LockMode::UNLOCK_WHILE_RUNNING, 0, 31, 0, 0, 0, 31, 31, 31)
, iv_spatk(LockMode::UNLOCK_WHILE_RUNNING, 0, 31, 0, 0, 0, 31, 31, 31)
, iv_spdef(LockMode::UNLOCK_WHILE_RUNNING, 0, 31, 0, 0, 0, 31, 31, 31)
, iv_speed(LockMode::UNLOCK_WHILE_RUNNING, 0, 31, 0, 0, 0, 31, 31, 31)
{
if (misc.feature_flags.action){
PA_ADD_OPTION(misc.action);
}
if (misc.feature_flags.shiny){
PA_ADD_OPTION(misc.shiny);
}
if (misc.feature_flags.gender){
PA_ADD_OPTION(misc.gender);
}
if (misc.feature_flags.nature){
PA_ADD_OPTION(misc.nature);
}
PA_ADD_OPTION(height);
PA_ADD_OPTION(iv_hp);
PA_ADD_OPTION(iv_atk);
PA_ADD_OPTION(iv_def);
PA_ADD_OPTION(iv_spatk);
PA_ADD_OPTION(iv_spdef);
PA_ADD_OPTION(iv_speed);
}
std::unique_ptr<EditableTableRow> BdspRngFilterRow::clone() const{
std::unique_ptr<BdspRngFilterRow> ret(new BdspRngFilterRow(parent()));

Check failure on line 57 in SerialPrograms/Source/PokemonBDSP/Options/PokemonBDSP_RngFilter.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health

style: no new/delete outside allocators; use std::make_unique / std::make_shared (TotW #126)
ret->misc.set(misc);
ret->height.set(height);
ret->iv_hp.set(iv_hp);
ret->iv_atk.set(iv_atk);
ret->iv_def.set(iv_def);
ret->iv_spatk.set(iv_spatk);
ret->iv_spdef.set(iv_spdef);
ret->iv_speed.set(iv_speed);
return ret;
}
bool BdspRngFilterRow::match_iv(
const IntegerRangeCell<uint8_t>& desired, const IvRange& actual
){
uint8_t lo, hi;
desired.current_values(lo, hi);
if (lo == 0 && hi == 31){
return true;
}
if (actual.high < (int8_t)lo){
return false;
}
if ((int8_t)hi < actual.low){
return false;
}
return true;
}
bool BdspRngFilterRow::matches(

Check warning on line 84 in SerialPrograms/Source/PokemonBDSP/Options/PokemonBDSP_RngFilter.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::NintendoSwitch::PokemonBDSP::BdspRngFilterRow::matches( bool shiny , StatsHuntGenderFilter gender , NatureCheckerValue nature , uint8_t height , const IvRanges & ivs) const: function_lines=38 (advisory above 25, limit 50)
bool shiny,
StatsHuntGenderFilter gender,
NatureCheckerValue nature,
uint8_t height,
const IvRanges& ivs
) const{
if (!misc.matches(shiny, gender, nature)){
return false;
}

uint8_t height_lo, height_hi;
this->height.current_values(height_lo, height_hi);
if (height < height_lo || height_hi < height){
return false;
}

if (!match_iv(iv_hp, ivs.hp)){
return false;
}
if (!match_iv(iv_atk, ivs.attack)){
return false;
}
if (!match_iv(iv_def, ivs.defense)){
return false;
}
if (!match_iv(iv_spatk, ivs.spatk)){
return false;
}
if (!match_iv(iv_spdef, ivs.spdef)){
return false;
}
if (!match_iv(iv_speed, ivs.speed)){
return false;
}

return true;
}


BdspRngFilterTable::BdspRngFilterTable(
const std::string& label,
const StatsHuntMiscFeatureFlags& p_feature_flags
)
: EditableTableOption_t<BdspRngFilterRow>(label, LockMode::UNLOCK_WHILE_RUNNING)
, feature_flags(p_feature_flags)
{}
std::vector<std::string> BdspRngFilterTable::make_header() const{

Check warning on line 131 in SerialPrograms/Source/PokemonBDSP/Options/PokemonBDSP_RngFilter.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::NintendoSwitch::PokemonBDSP::BdspRngFilterTable::make_header() const: function_lines=26 (advisory above 25, limit 50)
std::vector<std::string> ret;
if (feature_flags.action){
ret.emplace_back("Action");
}
if (feature_flags.shiny){
ret.emplace_back("Shininess");
}
if (feature_flags.gender){
ret.emplace_back("Gender");
}
if (feature_flags.nature){
ret.emplace_back("Nature");
}

ret.emplace_back("Height");

ret.emplace_back("HP");
ret.emplace_back("Atk");
ret.emplace_back("Def");
ret.emplace_back("SpAtk");
ret.emplace_back("SpDef");
ret.emplace_back("Spd");

return ret;
}
BdspRngFilterSnapshot BdspRngFilterTable::make_snapshot() const{
return BdspRngFilterSnapshot(copy_snapshot());
}
void set_default_shiny_row(BdspRngFilterTable& table){
std::vector<std::unique_ptr<EditableTableRow>> defaults;
auto row = std::make_unique<BdspRngFilterRow>(table);
row->misc.shiny.set(StatsHuntShinyFilter::Shiny);
defaults.emplace_back(std::move(row));
table.set_default(std::move(defaults));
table.restore_defaults();
}
StatsHuntAction BdspRngFilterTable::get_action(
bool shiny,
StatsHuntGenderFilter gender,
NatureCheckerValue nature,
uint8_t height,
const IvRanges& ivs
) const{
return make_snapshot().get_action(shiny, gender, nature, height, ivs);
}


BdspRngFilterSnapshot::BdspRngFilterSnapshot(std::vector<std::unique_ptr<BdspRngFilterRow>> rows)
: m_rows(std::move(rows))
{}
StatsHuntAction BdspRngFilterSnapshot::get_action(

Check warning on line 182 in SerialPrograms/Source/PokemonBDSP/Options/PokemonBDSP_RngFilter.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::NintendoSwitch::PokemonBDSP::BdspRngFilterSnapshot::get_action( bool shiny , StatsHuntGenderFilter gender , NatureCheckerValue nature , uint8_t height , const IvRanges & ivs) const: function_lines=34 (advisory above 25, limit 50)
bool shiny,
StatsHuntGenderFilter gender,
NatureCheckerValue nature,
uint8_t height,
const IvRanges& ivs
) const{
StatsHuntAction action = StatsHuntAction::Discard;
for (size_t c = 0; c < m_rows.size(); c++){
const BdspRngFilterRow& filter = *m_rows[c];

if (!filter.matches(shiny, gender, nature, height, ivs)){
continue;
}

StatsHuntAction filter_action = filter.misc.action;

// No action matched so far. Take the current action and continue.
if (action == StatsHuntAction::Discard){
action = filter_action;
continue;
}

// Conflicting actions.
if (action != filter_action){
global_logger_tagged().log(
"Multiple filters matched with conflicting actions. Stopping program...",
COLOR_RED
);
return StatsHuntAction::StopProgram;
}
}
return action;
}


}

Check failure on line 218 in SerialPrograms/Source/PokemonBDSP/Options/PokemonBDSP_RngFilter.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health

namespace-close: close this namespace with // namespace PokemonBDSP
}

Check failure on line 219 in SerialPrograms/Source/PokemonBDSP/Options/PokemonBDSP_RngFilter.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health

namespace-close: close this namespace with // namespace NintendoSwitch
}

Check failure on line 220 in SerialPrograms/Source/PokemonBDSP/Options/PokemonBDSP_RngFilter.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health

namespace-close: close this namespace with // namespace PokemonAutomation
Loading
Loading