diff --git a/SerialPrograms/Source/ComputerPrograms/ComputerPrograms_UnitTestRunner.cpp b/SerialPrograms/Source/ComputerPrograms/ComputerPrograms_UnitTestRunner.cpp index b5905f9836..c6c3e6b052 100644 --- a/SerialPrograms/Source/ComputerPrograms/ComputerPrograms_UnitTestRunner.cpp +++ b/SerialPrograms/Source/ComputerPrograms/ComputerPrograms_UnitTestRunner.cpp @@ -16,6 +16,7 @@ #include "Common/Qt/QtThreadPool_Tests.h" #include "Kernels/Kernels_Tests.h" #include "Pokemon/AutoStory/Pokemon_AutoStorySelect_Tests.h" +#include "Pokemon/AutoStory/Pokemon_AutoStoryStats_Tests.h" #include "CommonFramework/AudioPipeline/AudioInfo_Tests.h" #include "CommonFramework/AudioPipeline/Tools/ChannelMixer.h" #include "CommonFramework/AudioPipeline/SinkPipeline_Tests.h" @@ -76,6 +77,7 @@ UnitTestDatabase make_UNIT_TESTS_ALL(){ OCR::add_tests(ret); Kernels::add_tests(ret); Pokemon::add_tests_AutoStorySelect(ret); + Pokemon::add_tests_AutoStoryStats(ret); NintendoSwitch::add_tests_CheckOnlineDetector(ret); NintendoSwitch::add_tests_FailedToConnectDetector(ret); NintendoSwitch::add_tests_UpdatePopupDetector(ret); diff --git a/SerialPrograms/Source/Pokemon/AutoStory/Pokemon_AutoStoryStats.h b/SerialPrograms/Source/Pokemon/AutoStory/Pokemon_AutoStoryStats.h new file mode 100644 index 0000000000..f0c1392fe3 --- /dev/null +++ b/SerialPrograms/Source/Pokemon/AutoStory/Pokemon_AutoStoryStats.h @@ -0,0 +1,46 @@ +/* AutoStory Stats + * + * From: https://github.com/PokemonAutomation/ + * + */ + +#ifndef PokemonAutomation_Pokemon_AutoStoryStats_H +#define PokemonAutomation_Pokemon_AutoStoryStats_H + +#include +#include +#include "CommonFramework/ProgramStats/StatsTracking.h" + +namespace PokemonAutomation{ +namespace Pokemon{ + + +// Stats shared by the AutoStory programs of every game. +struct AutoStoryStats : public StatsTracker{ + AutoStoryStats() + : m_runs(m_stats["Runs"]) + , m_segments_started(m_stats["Segments Started"]) + , m_checkpoints_started(m_stats["Checkpoints Started"]) + , m_resets(m_stats["Resets"]) + { + m_display_order.emplace_back("Runs"); + m_display_order.emplace_back("Segments Started"); + m_display_order.emplace_back("Checkpoints Started"); + m_display_order.emplace_back("Resets"); + + // Labels used before the rename: saved totals carry over. + m_aliases["Segment"] = "Segments Started"; + m_aliases["Checkpoint"] = "Checkpoints Started"; + m_aliases["Reset"] = "Resets"; + } + std::atomic& m_runs; + std::atomic& m_segments_started; + std::atomic& m_checkpoints_started; + std::atomic& m_resets; +}; + + + +} // namespace Pokemon +} // namespace PokemonAutomation +#endif diff --git a/SerialPrograms/Source/Pokemon/AutoStory/Pokemon_AutoStoryStats_Tests.cpp b/SerialPrograms/Source/Pokemon/AutoStory/Pokemon_AutoStoryStats_Tests.cpp new file mode 100644 index 0000000000..c6f7037c1d --- /dev/null +++ b/SerialPrograms/Source/Pokemon/AutoStory/Pokemon_AutoStoryStats_Tests.cpp @@ -0,0 +1,86 @@ +/* AutoStory Stats Tests + * + * From: https://github.com/PokemonAutomation/ + * + */ + +#include +#include +#include +#include +#include "Pokemon_AutoStoryStats.h" +#include "Pokemon_AutoStoryStats_Tests.h" + +namespace PokemonAutomation{ +namespace Pokemon{ + +namespace{ + +// A stats file line, as loaded from disk. +struct AutoStoryStatsInput{ + std::string saved_line; +}; + +// The stats line written back after loading it. +struct AutoStoryStatsExpectation{ + std::string line; +}; + +struct AutoStoryStatsScenario{ + std::string name; + AutoStoryStatsInput input; + AutoStoryStatsExpectation expectation; +}; + +class Test_AutoStoryStatsLoad : public UnitTest{ +public: + Test_AutoStoryStatsLoad(AutoStoryStatsScenario scenario) + : UnitTest(std::format("Pokemon::AutoStoryStats - {}", scenario.name)) + , m_scenario(std::move(scenario)) + {} + + virtual UnitTestResult run(Logger&, CancellableScope&) const override{ + AutoStoryStats stats; + stats.parse_and_append_line(m_scenario.input.saved_line); + const std::string got = stats.to_str(StatsTracker::SAVE_TO_STATS_FILE); + if (got != m_scenario.expectation.line){ + return std::format("Expected \"{}\", got \"{}\"", m_scenario.expectation.line, got); + } + return true; + } + +private: + const AutoStoryStatsScenario m_scenario; +}; + +} // namespace + + + +void add_tests_AutoStoryStats(UnitTestDatabase& database){ + const std::vector load_cases{ + { + .name = "old labels fill the new ones", + .input = {.saved_line = "Checkpoint: 12 - Segment: 3 - Reset: 1"}, + .expectation = {.line = "Runs: 0 - Segments Started: 3 - Checkpoints Started: 12 - Resets: 1"}, + }, + { + .name = "new labels load as they are", + .input = {.saved_line = "Runs: 4 - Segments Started: 3 - Checkpoints Started: 1,234 - Resets: 2"}, + .expectation = {.line = "Runs: 4 - Segments Started: 3 - Checkpoints Started: 1,234 - Resets: 2"}, + }, + { + .name = "old and new labels add up", + .input = {.saved_line = "Checkpoint: 10 - Checkpoints Started: 5 - Runs: 1"}, + .expectation = {.line = "Runs: 1 - Segments Started: 0 - Checkpoints Started: 15 - Resets: 0"}, + }, + }; + for (const AutoStoryStatsScenario& scenario : load_cases){ + database.add(scenario); + } +} + + + +} // namespace Pokemon +} // namespace PokemonAutomation diff --git a/SerialPrograms/Source/Pokemon/AutoStory/Pokemon_AutoStoryStats_Tests.h b/SerialPrograms/Source/Pokemon/AutoStory/Pokemon_AutoStoryStats_Tests.h new file mode 100644 index 0000000000..34340a259a --- /dev/null +++ b/SerialPrograms/Source/Pokemon/AutoStory/Pokemon_AutoStoryStats_Tests.h @@ -0,0 +1,23 @@ +/* AutoStory Stats Tests + * + * From: https://github.com/PokemonAutomation/ + * + */ + +#ifndef PokemonAutomation_Pokemon_AutoStoryStats_Tests_H +#define PokemonAutomation_Pokemon_AutoStoryStats_Tests_H + +#include "Common/Cpp/TestRunners/UnitTestDatabase.h" + +namespace PokemonAutomation{ +namespace Pokemon{ + + +// Registers the tests that load saved AutoStory stats lines. +void add_tests_AutoStoryStats(UnitTestDatabase& database); + + + +} // namespace Pokemon +} // namespace PokemonAutomation +#endif diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory.cpp index 130271139b..28bae61881 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory.cpp @@ -1208,7 +1208,6 @@ void AutoStory::program(SingleSwitchProgramEnvironment& env, ProControllerContex StartProgramChecks::check_performance_class_wired_or_wireless(context); assert_16_9_720p_min(env.logger(), env.console); - // test code if (TEST_FLYPOINT_LOCATIONS || TEST_MOVE_CURSOR_OFFSET_FROM_FLYPOINT || ENABLE_TEST_CHECKPOINTS || ENABLE_MISC_TEST || TEST_PBF_LEFT_JOYSTICK || TEST_PBF_JOYSTICK2 || TEST_CHANGE_DIRECTION || TEST_CURRENT_DIRECTION){ test_code(env, context); @@ -1226,6 +1225,9 @@ void AutoStory::program(SingleSwitchProgramEnvironment& env, ProControllerContex } } + env.current_stats().m_runs++; + env.update_stats(); + // Connect the controller. require_player(env.console, context, BUTTON_L); @@ -1278,11 +1280,9 @@ void AutoStory::program(SingleSwitchProgramEnvironment& env, ProControllerContex env.console.log("Ensure the minimap is unlocked."); confirm_minimap_unlocked(env, context); } - } run_autostory(env, context); - send_program_finished_notification(env, NOTIFICATION_PROGRAM_FINISH); GO_HOME_WHEN_DONE.run_end_of_program(context); } diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.cpp index c2d61152df..4caeb3fa07 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.cpp @@ -1179,7 +1179,7 @@ void get_on_or_off_ride(const ProgramInfo& info, VideoStream& stream, ProControl void checkpoint_save(SingleSwitchProgramEnvironment& env, ProControllerContext& context, EventNotificationOption& notif_status_update, AutoStoryStats& stats){ save_game_from_overworld(env.program_info(), env.console, context); - stats.m_checkpoint++; + stats.m_checkpoints_started++; env.update_stats(); send_program_status_notification(env, notif_status_update, "Saved at checkpoint."); } @@ -1481,7 +1481,7 @@ void checkpoint_reattempt_loop( context.wait_for_all_requests(); env.console.log("Resetting from checkpoint."); reset_game(env.program_info(), env.console, context); - stats.m_reset++; + stats.m_resets++; env.update_stats(); } } @@ -1502,7 +1502,7 @@ void checkpoint_reattempt_loop_tutorial( try{ if(i==0){ save_game_tutorial(env.program_info(), env.console, context); - stats.m_checkpoint++; + stats.m_checkpoints_started++; env.update_stats(); send_program_status_notification(env, notif_status_update, "Saved at checkpoint."); } @@ -1540,7 +1540,7 @@ void checkpoint_reattempt_loop_tutorial( context.wait_for_all_requests(); env.console.log("Resetting from checkpoint."); reset_game(env.program_info(), env.console, context); - stats.m_reset++; + stats.m_resets++; env.update_stats(); } } diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.h b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.h index 3aa6be74be..507f968a09 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.h +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.h @@ -10,10 +10,10 @@ #include #include "CommonFramework/Language.h" #include "CommonFramework/ImageTools/ImageBoxes.h" -#include "CommonFramework/ProgramStats/StatsTracking.h" #include "ML/Inference/ML_YOLOv5Detector.h" #include "ML/Inference/ML_YOLONavigation.h" #include "NintendoSwitch/NintendoSwitch_SingleSwitchProgram.h" +#include "Pokemon/AutoStory/Pokemon_AutoStoryStats.h" #include "VideoGames/PokemonSV/Programs/PokemonSV_WorldNavigation.h" namespace PokemonAutomation{ @@ -24,20 +24,8 @@ using namespace ML; static constexpr bool ENABLE_TEST = false; -struct AutoStoryStats : public StatsTracker{ - AutoStoryStats() - : m_checkpoint(m_stats["Checkpoint"]) - , m_segment(m_stats["Segment"]) - , m_reset(m_stats["Reset"]) - { - m_display_order.emplace_back("Checkpoint"); - m_display_order.emplace_back("Segment"); - m_display_order.emplace_back("Reset"); - } - std::atomic& m_checkpoint; - std::atomic& m_segment; - std::atomic& m_reset; -}; +// Shared with the AutoStory programs of the other games. +using Pokemon::AutoStoryStats; diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_01.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_01.cpp index e08134efae..bbd8786bdf 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_01.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_01.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_01::run_segment( AutoStoryStats& stats ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_02.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_02.cpp index fffe2a61b2..48b70b2c46 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_02.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_02.cpp @@ -44,7 +44,7 @@ void AutoStory_Segment_02::run_segment( AutoStoryOptions options, AutoStoryStats& stats ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_03.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_03.cpp index cf78e0439f..9a988f7917 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_03.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_03.cpp @@ -42,7 +42,7 @@ std::string AutoStory_Segment_03::end_text() const{ void AutoStory_Segment_03::run_segment(SingleSwitchProgramEnvironment& env, ProControllerContext& context, AutoStoryOptions options, AutoStoryStats& stats) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_04.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_04.cpp index 0b1cbba684..890c1b318b 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_04.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_04.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_04::run_segment( AutoStoryStats& stats ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_05.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_05.cpp index 7b0d3de553..08ec8d1b9d 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_05.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_05.cpp @@ -47,7 +47,7 @@ void AutoStory_Segment_05::run_segment( AutoStoryStats& stats ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_06.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_06.cpp index 1c9aeff3ee..1c78025891 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_06.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_06.cpp @@ -46,7 +46,7 @@ void AutoStory_Segment_06::run_segment( AutoStoryStats& stats ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_07.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_07.cpp index b887ba7264..557e2d592c 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_07.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_07.cpp @@ -47,7 +47,7 @@ void AutoStory_Segment_07::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_08.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_08.cpp index cd4d46dda5..ddac284a02 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_08.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_08.cpp @@ -46,7 +46,7 @@ void AutoStory_Segment_08::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_09.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_09.cpp index 4041c0fcd1..7cba058742 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_09.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_09.cpp @@ -42,7 +42,7 @@ void AutoStory_Segment_09::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_10.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_10.cpp index 9502a89576..27e37618b8 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_10.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_10.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_10::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_11.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_11.cpp index a45110d124..5c1e7dfe00 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_11.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_11.cpp @@ -57,7 +57,7 @@ void AutoStory_Segment_11::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_12.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_12.cpp index 70920730bc..199f7edde7 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_12.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_12.cpp @@ -52,7 +52,7 @@ void AutoStory_Segment_12::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_13.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_13.cpp index 17c8df9bdb..f91a152322 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_13.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_13.cpp @@ -46,7 +46,7 @@ void AutoStory_Segment_13::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_14.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_14.cpp index 23d12c84d2..e81c14c549 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_14.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_14.cpp @@ -47,7 +47,7 @@ void AutoStory_Segment_14::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_15.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_15.cpp index 7d538e17d8..6538f69d54 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_15.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_15.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_15::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_16.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_16.cpp index 8bec9098fe..c6aa30bfee 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_16.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_16.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_16::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_17.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_17.cpp index 83c53c4e0c..103a28a6f3 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_17.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_17.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_17::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_18.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_18.cpp index 997665eaa8..d71b7edc2a 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_18.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_18.cpp @@ -49,7 +49,7 @@ void AutoStory_Segment_18::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_19.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_19.cpp index 408d949a38..88f32e5d6c 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_19.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_19.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_19::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_20.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_20.cpp index 0fe5bcea82..65acaebc73 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_20.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_20.cpp @@ -50,7 +50,7 @@ void AutoStory_Segment_20::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_21.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_21.cpp index b739a897fd..05b8481048 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_21.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_21.cpp @@ -47,7 +47,7 @@ void AutoStory_Segment_21::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_22.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_22.cpp index d974b440b9..4890f87283 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_22.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_22.cpp @@ -49,7 +49,7 @@ void AutoStory_Segment_22::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_23.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_23.cpp index 887d63d554..a3c9a64903 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_23.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_23.cpp @@ -42,7 +42,7 @@ void AutoStory_Segment_23::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_24.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_24.cpp index 100d42ef39..24565fed65 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_24.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_24.cpp @@ -47,7 +47,7 @@ void AutoStory_Segment_24::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_25.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_25.cpp index bd496e9334..4dd1c7f5db 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_25.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_25.cpp @@ -50,7 +50,7 @@ void AutoStory_Segment_25::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_26.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_26.cpp index 34b83ce72d..b20ea5d03b 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_26.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_26.cpp @@ -50,7 +50,7 @@ void AutoStory_Segment_26::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_27.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_27.cpp index da6a535aa9..a43ebdbf59 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_27.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_27.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_27::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_28.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_28.cpp index c5141fe910..9ee6ac092b 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_28.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_28.cpp @@ -49,7 +49,7 @@ void AutoStory_Segment_28::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_29.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_29.cpp index 2b5e80da31..d0184701bc 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_29.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_29.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_29::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_30.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_30.cpp index 607656259a..3977188661 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_30.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_30.cpp @@ -49,7 +49,7 @@ void AutoStory_Segment_30::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_31.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_31.cpp index 6dc3706a44..201d37a321 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_31.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_31.cpp @@ -50,7 +50,7 @@ void AutoStory_Segment_31::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_32.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_32.cpp index a8f27b5786..3e5f77f194 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_32.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_32.cpp @@ -49,7 +49,7 @@ void AutoStory_Segment_32::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_33.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_33.cpp index 40d91c2d80..ead7b15ea5 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_33.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_33.cpp @@ -55,7 +55,7 @@ void AutoStory_Segment_33::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_34.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_34.cpp index aa49de6bb6..e5462fa7d8 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_34.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_34.cpp @@ -47,7 +47,7 @@ void AutoStory_Segment_34::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_35.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_35.cpp index 16e6bba254..5da63f94ce 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_35.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_35.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_35::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_36.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_36.cpp index 92e3b12476..ffe780e334 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_36.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_36.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_36::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_37.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_37.cpp index fa23e10b24..bc996c6e20 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_37.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_37.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_37::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_38.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_38.cpp index e761695963..c2a1e6733d 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_38.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_38.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_38::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_39.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_39.cpp index 21518003fc..b299991589 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_39.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_39.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_39::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_40.cpp b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_40.cpp index 0682ba3248..69bd1cd385 100644 --- a/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_40.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_40.cpp @@ -48,7 +48,7 @@ void AutoStory_Segment_40::run_segment( ) const{ - stats.m_segment++; + stats.m_segments_started++; env.update_stats(); context.wait_for_all_requests(); env.console.log("Start Segment " + name(), COLOR_ORANGE); diff --git a/SerialPrograms/cmake/SourceFiles.cmake b/SerialPrograms/cmake/SourceFiles.cmake index 1603b71bc5..b2df0b557f 100644 --- a/SerialPrograms/cmake/SourceFiles.cmake +++ b/SerialPrograms/cmake/SourceFiles.cmake @@ -1483,6 +1483,9 @@ file(GLOB LIBRARY_SOURCES Source/Pokemon/AutoStory/Pokemon_AutoStorySelect.h Source/Pokemon/AutoStory/Pokemon_AutoStorySelect_Tests.cpp Source/Pokemon/AutoStory/Pokemon_AutoStorySelect_Tests.h + Source/Pokemon/AutoStory/Pokemon_AutoStoryStats.h + Source/Pokemon/AutoStory/Pokemon_AutoStoryStats_Tests.cpp + Source/Pokemon/AutoStory/Pokemon_AutoStoryStats_Tests.h Source/Pokemon/Pokemon_AdvRng.cpp Source/Pokemon/Pokemon_AdvRng.h Source/Pokemon/Pokemon_BdspRng.cpp