Skip to content

Commit 437d61e

Browse files
committed
Space between number and unit.
1 parent 40f93b2 commit 437d61e

File tree

49 files changed

+146
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+146
-165
lines changed

SerialPrograms/Source/CommonFramework/Tools/FileDownloader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ std::string download_file(Logger& logger, const std::string& url){
4848
timer.singleShot(
4949
5000, [&downloaded_data, &url](){
5050
if (downloaded_data.isEmpty()){
51-
throw ConnectionException(nullptr, "Couldn't retrieved file from url : " + url + " after 5s");
51+
throw ConnectionException(nullptr, "Couldn't retrieved file from url : " + url + " after 5 seconds.");
5252
}
5353
});
5454
timer.stop();

SerialPrograms/Source/NintendoSwitch/NintendoSwitch_Settings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ConsoleSettings::ConsoleSettings()
2626
, SETTINGS_TO_HOME_DELAY0(
2727
"<b>Settings to Home Delay:</b><br>Delay from pressing home anywhere in the settings to return to the home menu.",
2828
LockMode::LOCK_WHILE_RUNNING,
29-
"960ms"
29+
"960 ms"
3030
)
3131
, START_GAME_REQUIRES_INTERNET(
3232
"<b>Start Game Requires Internet:</b><br>"
@@ -39,7 +39,7 @@ ConsoleSettings::ConsoleSettings()
3939
"<b>Start Game Internet Check Delay:</b><br>"
4040
"If starting the game requires checking the internet, wait this long for it.",
4141
LockMode::LOCK_WHILE_RUNNING,
42-
"3000ms"
42+
"3000 ms"
4343
)
4444
, TOLERATE_SYSTEM_UPDATE_MENU_FAST(
4545
"<b>Tolerate System Update Menu (fast):</b><br>"

SerialPrograms/Source/PokemonBDSP/PokemonBDSP_Settings.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,74 +25,74 @@ GameSettings::GameSettings()
2525
, OVERWORLD_TO_MENU_DELAY0(
2626
"<b>Overworld to Menu Delay:</b><br>Delay to bring up the menu when pressing X in the overworld.",
2727
LockMode::LOCK_WHILE_RUNNING,
28-
"2000ms"
28+
"2000 ms"
2929
)
3030
, MENU_TO_OVERWORLD_DELAY0(
3131
"<b>Menu to Overworld Delay:</b><br>Delay to go from menu back to overworld.",
3232
LockMode::LOCK_WHILE_RUNNING,
33-
"2000ms"
33+
"2000 ms"
3434
)
3535
, GAME_TO_HOME_DELAY0(
3636
"<b>Game to Home Delay:</b><br>Delay from pressing home to entering the the Switch home menu.",
3737
LockMode::LOCK_WHILE_RUNNING,
38-
"1000ms"
38+
"1000 ms"
3939
)
4040
, m_start_game_timings("<font size=4><b>Start Game Timings:</b></font>")
4141
, START_GAME_MASH0(
4242
"<b>1. Start Game Mash:</b><br>Mash A for this long to start the game.",
4343
LockMode::LOCK_WHILE_RUNNING,
44-
"2000ms"
44+
"2000 ms"
4545
)
4646
, START_GAME_WAIT0(
4747
"<b>2. Start Game Wait:</b><br>Wait this long for the game to load.",
4848
LockMode::LOCK_WHILE_RUNNING,
49-
"300s"
49+
"300 s"
5050
)
5151
, ENTER_GAME_MASH0(
5252
"<b>3. Enter Game Mash:</b><br>Mash A for this long to enter the game.",
5353
LockMode::LOCK_WHILE_RUNNING,
54-
"5000ms"
54+
"5000 ms"
5555
)
5656
, ENTER_GAME_WAIT0(
5757
"<b>4. Enter Game Wait:</b><br>Wait this long for the game to enter the overworld.",
5858
LockMode::LOCK_WHILE_RUNNING,
59-
"300s"
59+
"300 s"
6060
)
6161
, m_box_timings("<font size=4><b>Box Timings:</b></font> (for egg programs)")
6262
, BOX_SCROLL_DELAY0(
6363
"<b>Box Scroll Delay:</b><br>Delay to move the cursor.",
6464
LockMode::LOCK_WHILE_RUNNING,
65-
"240ms"
65+
"240 ms"
6666
)
6767
, BOX_CHANGE_DELAY0(
6868
"<b>Box Change Delay:</b><br>Delay to change boxes.",
6969
LockMode::LOCK_WHILE_RUNNING,
70-
"1600ms"
70+
"1600 ms"
7171
)
7272
, BOX_PICKUP_DROP_DELAY0(
7373
"<b>Box Pickup/Drop Delay:</b><br>Delay to pickup/drop " + STRING_POKEMON + ".",
7474
LockMode::LOCK_WHILE_RUNNING,
75-
"400ms"
75+
"400 ms"
7676
)
7777
, MENU_TO_POKEMON_DELAY0(
7878
"<b>Menu To " + STRING_POKEMON + " Delay:</b><br>Delay to enter " + STRING_POKEMON + " menu.",
7979
LockMode::LOCK_WHILE_RUNNING,
80-
"2400ms"
80+
"2400 ms"
8181
)
8282
, POKEMON_TO_BOX_DELAY1(
8383
"<b>" + STRING_POKEMON + " to Box Delay:</b><br>Delay to enter box system.",
8484
LockMode::LOCK_WHILE_RUNNING,
85-
"2560ms"
85+
"2560 ms"
8686
)
8787
, BOX_TO_POKEMON_DELAY0(
8888
"<b>Box to " + STRING_POKEMON + " Delay:</b><br>Delay to exit box system.",
8989
LockMode::LOCK_WHILE_RUNNING,
90-
"2000ms"
90+
"2000 ms"
9191
)
9292
, POKEMON_TO_MENU_DELAY0(
9393
"<b>" + STRING_POKEMON + " to Menu Delay:</b><br>Delay to return to menu.",
9494
LockMode::LOCK_WHILE_RUNNING,
95-
"2000ms"
95+
"2000 ms"
9696
)
9797
, m_advanced_options(
9898
"<font size=4><b>Advanced Options:</b> You should not need to touch anything below here.</font>"

SerialPrograms/Source/PokemonBDSP/Programs/Eggs/PokemonBDSP_EggAutonomous.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ EggAutonomous::EggAutonomous()
6060
, TRAVEL_TIME_PER_FETCH0(
6161
"<b>Travel Time per Fetch:</b><br>Fetch an egg after traveling for this long.",
6262
LockMode::LOCK_WHILE_RUNNING,
63-
"20s"
63+
"20 s"
6464
)
6565
, NUM_EGGS_IN_COLUMN(
6666
"<b>Num Eggs in Column:</b><br>How many eggs already deposited in the first column in Box 1.",
@@ -124,7 +124,7 @@ EggAutonomous::EggAutonomous()
124124
"<b>Scroll to Read Delay:</b><br>Wait this long after scrolling in the box to read the " + STRING_POKEMON + "'s stats. "
125125
"Increase this if your video has high latency.",
126126
LockMode::LOCK_WHILE_RUNNING,
127-
"1000ms"
127+
"1000 ms"
128128
)
129129
{
130130
PA_ADD_OPTION(GO_HOME_WHEN_DONE);

SerialPrograms/Source/PokemonBDSP/Programs/Eggs/PokemonBDSP_EggFetcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ EggFetcher::EggFetcher()
5454
, TRAVEL_TIME_PER_FETCH0(
5555
"<b>Travel Time per Fetch:</b><br>Fetch an egg after traveling for this long.",
5656
LockMode::LOCK_WHILE_RUNNING,
57-
"15s"
57+
"15 s"
5858
)
5959
, NOTIFICATION_STATUS_UPDATE("Status Update", true, false, std::chrono::seconds(3600))
6060
, NOTIFICATIONS({

SerialPrograms/Source/PokemonBDSP/Programs/Eggs/PokemonBDSP_EggHatcher.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ EggHatcher::EggHatcher()
7070
, SAFETY_TIME1(
7171
"<b>Safety Time:</b><br>Additional time added to the spinning.",
7272
LockMode::LOCK_WHILE_RUNNING,
73-
"10000ms"
73+
"10000 ms"
7474
)
7575
, HATCH_DELAY0(
7676
"<b>Hatch Delay:</b><br>Total animation time for hatching 5 eggs when there are no shinies.",
7777
LockMode::LOCK_WHILE_RUNNING,
78-
"105s"
78+
"105 s"
7979
)
8080
{
8181
PA_ADD_OPTION(GO_HOME_WHEN_DONE);

SerialPrograms/Source/PokemonBDSP/Programs/Farming/PokemonBDSP_AmitySquarePickUpFarmer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ AmitySquarePickUpFarmer::AmitySquarePickUpFarmer()
5151
, ONE_WAY_MOVING_TIME0(
5252
"<b>One Way walking Time:</b><br>Walk this amount of time in one direction before going back to finish one round of walking.",
5353
LockMode::LOCK_WHILE_RUNNING,
54-
"5000ms"
54+
"5000 ms"
5555
)
5656
, ROUNDS_PER_FETCH(
5757
"<b>Rounds per fetch:</b><br>How many rounds of walking before doing a berry fetch attempt.",
@@ -61,7 +61,7 @@ AmitySquarePickUpFarmer::AmitySquarePickUpFarmer()
6161
, WAIT_TIME_FOR_POKEMON0(
6262
"<b>Wait Time for Pokemon:</b><br>Wait this time for pokemon to catch up to you before you ask for a berry.",
6363
LockMode::LOCK_WHILE_RUNNING,
64-
"3000ms"
64+
"3000 ms"
6565
)
6666
, NOTIFICATION_STATUS_UPDATE("Status Update", true, false, std::chrono::seconds(3600))
6767
, NOTIFICATIONS({

SerialPrograms/Source/PokemonBDSP/Programs/Farming/PokemonBDSP_DoublesLeveling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ DoublesLeveling::DoublesLeveling()
6666
, EXIT_BATTLE_TIMEOUT0(
6767
"<b>Exit Battle Timeout:</b><br>After running, wait this long to return to overworld.",
6868
LockMode::LOCK_WHILE_RUNNING,
69-
"10s"
69+
"10 s"
7070
)
7171
{
7272
PA_ADD_OPTION(GO_HOME_WHEN_DONE);

SerialPrograms/Source/PokemonBDSP/Programs/Glitches/PokemonBDSP_ActivateMenuGlitch-1.1.2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ActivateMenuGlitch112::ActivateMenuGlitch112()
4040
"<b>Fly Menu A-to-X Delay:</b><br>The delay between the A and X presses to overlap the menu with the fly option.<br>"
4141
"(German players may need to increase this to 90.)",
4242
LockMode::LOCK_WHILE_RUNNING,
43-
160ms, "400ms"
43+
160ms, "400 ms"
4444
)
4545
{
4646
PA_ADD_OPTION(FLY_A_TO_X_DELAY0);

SerialPrograms/Source/PokemonBDSP/Programs/Glitches/PokemonBDSP_ActivateMenuGlitch-1.1.3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ActivateMenuGlitch113::ActivateMenuGlitch113()
3939
"<b>Fly Menu A-to-X Delay:</b><br>The delay between the A and X presses to overlap the menu with the fly option.<br>"
4040
"(German players may need to increase this to 90.)",
4141
LockMode::LOCK_WHILE_RUNNING,
42-
160ms, "400ms"
42+
160ms, "400 ms"
4343
)
4444
{
4545
PA_ADD_OPTION(FLY_A_TO_X_DELAY0);

SerialPrograms/Source/PokemonBDSP/Programs/PokemonBDSP_OverworldTrigger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ OverworldTrigger::OverworldTrigger()
3939
, MOVE_DURATION0(
4040
"<b>Move Duration:</b><br>Move in each direction for this long before turning around.",
4141
LockMode::LOCK_WHILE_RUNNING,
42-
"1000ms"
42+
"1000 ms"
4343
)
4444
, SWEET_SCENT_POKEMON_LOCATION(
4545
"<b>Sweet Scent Pokemon Location:</b><br>Which Pokemon in the party knows Sweet Scent.",

SerialPrograms/Source/PokemonBDSP/Programs/ShinyHunting/PokemonBDSP_ShinyHunt-Fishing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ShinyHuntFishing::ShinyHuntFishing()
6868
, EXIT_BATTLE_TIMEOUT0(
6969
"<b>Exit Battle Timeout:</b><br>After running, wait this long to return to overworld.",
7070
LockMode::LOCK_WHILE_RUNNING,
71-
"10s"
71+
"10 s"
7272
)
7373
{
7474
PA_ADD_OPTION(GO_HOME_WHEN_DONE);

SerialPrograms/Source/PokemonBDSP/Programs/ShinyHunting/PokemonBDSP_ShinyHunt-Overworld.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ ShinyHuntOverworld::ShinyHuntOverworld()
7272
, EXIT_BATTLE_TIMEOUT0(
7373
"<b>Exit Battle Timeout:</b><br>After running, wait this long to return to overworld.",
7474
LockMode::LOCK_WHILE_RUNNING,
75-
"10s"
75+
"10 s"
7676
)
7777
{
7878
PA_ADD_OPTION(GO_HOME_WHEN_DONE);

SerialPrograms/Source/PokemonBDSP/Programs/ShinyHunting/PokemonBDSP_ShinyHunt-Shaymin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ShinyHuntShaymin::ShinyHuntShaymin()
5454
, EXIT_BATTLE_TIMEOUT0(
5555
"<b>Exit Battle Timeout:</b><br>After running, wait this long to return to overworld.",
5656
LockMode::LOCK_WHILE_RUNNING,
57-
"10s"
57+
"10 s"
5858
)
5959
{
6060
PA_ADD_OPTION(GO_HOME_WHEN_DONE);

SerialPrograms/Source/PokemonHome/Programs/PokemonHome_GenerateNameOCR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ GenerateNameOCRData::GenerateNameOCRData()
4545
, DELAY0(
4646
"<b>Delay Between Each Iteration:</b>",
4747
LockMode::LOCK_WHILE_RUNNING,
48-
"240ms"
48+
"240 ms"
4949
)
5050
{
5151
PA_ADD_OPTION(LANGUAGE);

SerialPrograms/Source/PokemonLA/PokemonLA_Settings.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,42 +21,42 @@ GameSettings& GameSettings::instance(){
2121
GameSettings::GameSettings()
2222
: BatchOption(LockMode::LOCK_WHILE_RUNNING)
2323
, m_general("<font size=4><b>General Settings:</b></font>")
24-
, POST_WARP_DELAY(
24+
, POST_WARP_DELAY0(
2525
"<b>Post-Warp Delay:</b><br>After warping, wait this many seconds before continuing.",
2626
LockMode::LOCK_WHILE_RUNNING,
27-
1.0, 0, 100
27+
"1000 ms"
2828
)
2929
, m_menu_navigation("<font size=4><b>Menu Navigation Timings:</b></font>")
3030
, GAME_TO_HOME_DELAY0(
3131
"<b>Game to Home Delay:</b><br>Delay from pressing home to entering the the Switch home menu.",
3232
LockMode::LOCK_WHILE_RUNNING,
33-
"1000ms"
33+
"1000 ms"
3434
)
3535
, LOAD_REGION_TIMEOUT0(
3636
"<b>Load Region Timeout:</b><br>Wait at most this long to enter a region before giving up.",
3737
LockMode::LOCK_WHILE_RUNNING,
38-
"30s"
38+
"30 s"
3939
)
4040
, m_start_game_timings("<font size=4><b>Start Game Timings:</b></font>")
4141
, START_GAME_MASH0(
4242
"<b>1. Start Game Mash:</b><br>Mash A for this long to start the game.",
4343
LockMode::LOCK_WHILE_RUNNING,
44-
"2000ms"
44+
"2000 ms"
4545
)
4646
, START_GAME_WAIT1(
4747
"<b>2. Start Game Wait:</b><br>Wait this long for the game to load.",
4848
LockMode::LOCK_WHILE_RUNNING,
49-
"40s"
49+
"40 s"
5050
)
5151
, ENTER_GAME_MASH0(
5252
"<b>3. Enter Game Mash:</b><br>Mash A for this long to enter the game.",
5353
LockMode::LOCK_WHILE_RUNNING,
54-
"5000ms"
54+
"5000 ms"
5555
)
5656
, ENTER_GAME_WAIT0(
5757
"<b>4. Enter Game Wait:</b><br>Wait this long for the game to enter the overworld.",
5858
LockMode::LOCK_WHILE_RUNNING,
59-
"15s"
59+
"15 s"
6060
)
6161
, m_advanced_options(
6262
"<font size=4><b>Advanced Options:</b> You should not need to touch anything below here.</font>"
@@ -93,7 +93,7 @@ GameSettings::GameSettings()
9393
)
9494
{
9595
PA_ADD_STATIC(m_general);
96-
PA_ADD_OPTION(POST_WARP_DELAY);
96+
PA_ADD_OPTION(POST_WARP_DELAY0);
9797

9898
PA_ADD_STATIC(m_menu_navigation);
9999
PA_ADD_OPTION(GAME_TO_HOME_DELAY0);

SerialPrograms/Source/PokemonLA/PokemonLA_Settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class GameSettings : public BatchOption{
2323
static GameSettings& instance();
2424

2525
SectionDividerOption m_general;
26-
FloatingPointOption POST_WARP_DELAY;
26+
MillisecondsOption POST_WARP_DELAY0;
2727

2828
SectionDividerOption m_menu_navigation;
2929
MillisecondsOption GAME_TO_HOME_DELAY0;

SerialPrograms/Source/PokemonLA/Programs/Farming/PokemonLA_LeapGrinder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ LeapGrinder::LeapGrinder()
112112
, SHINY_DETECTED_ENROUTE(
113113
"Enroute Shiny Action",
114114
"This applies if a shiny is detected while enroute to destination.",
115-
"0ms"
115+
"0 ms"
116116
)
117117
, MATCH_DETECTED_OPTIONS(
118118
"Match Action",
119119
"What to do when the leaping Pokemon matches the *Stop On*.",
120-
"0ms"
120+
"0 ms"
121121
)
122122
, NOTIFICATION_STATUS("Status Update", true, false, std::chrono::seconds(3600))
123123
, NOTIFICATIONS({

SerialPrograms/Source/PokemonLA/Programs/Farming/PokemonLA_NuggetFarmerHighlands.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ std::unique_ptr<StatsTracker> NuggetFarmerHighlands_Descriptor::make_stats() con
7474

7575

7676
NuggetFarmerHighlands::NuggetFarmerHighlands()
77-
: SHINY_DETECTED("Shiny Detected Action", "", "2000ms")
77+
: SHINY_DETECTED("Shiny Detected Action", "", "2000 ms")
7878
, NOTIFICATION_STATUS("Status Update", true, false, std::chrono::seconds(3600))
7979
, NOTIFICATIONS({
8080
&NOTIFICATION_STATUS,

SerialPrograms/Source/PokemonLA/Programs/General/PokemonLA_RamanasIslandCombee.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ RamanasCombeeFinder:: RamanasCombeeFinder()
8484
, SHINY_DETECTED_ENROUTE(
8585
"Enroute Shiny Action",
8686
"This applies if a shiny is detected while traveling in the overworld.",
87-
"0ms"
87+
"0 ms"
8888
)
8989
, NOTIFICATION_STATUS("Status Update", true, false, std::chrono::seconds(3600))
9090
, NOTIFICATIONS({

SerialPrograms/Source/PokemonLA/Programs/PokemonLA_RegionNavigation.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void mash_A_to_change_region(
213213
}
214214

215215
stream.log("Loaded into map...");
216-
context.wait_for(std::chrono::milliseconds((uint64_t)(GameSettings::instance().POST_WARP_DELAY * 1000)));
216+
context.wait_for(GameSettings::instance().POST_WARP_DELAY0);
217217
}
218218

219219

@@ -353,7 +353,7 @@ void goto_camp_from_jubilife(
353353
);
354354
}
355355
stream.log("Arrived at sub-camp...");
356-
context.wait_for(std::chrono::milliseconds((uint64_t)(GameSettings::instance().POST_WARP_DELAY * 1000)));
356+
context.wait_for(GameSettings::instance().POST_WARP_DELAY0);
357357

358358
if (location.post_arrival_maneuver == nullptr){
359359
return;
@@ -449,7 +449,7 @@ void goto_camp_from_overworld(
449449
);
450450
}
451451
stream.log("Arrived at camp...");
452-
context.wait_for(std::chrono::milliseconds((uint64_t)(GameSettings::instance().POST_WARP_DELAY * 1000)));
452+
context.wait_for(GameSettings::instance().POST_WARP_DELAY0);
453453
}
454454

455455
void goto_any_camp_from_overworld(
@@ -544,7 +544,7 @@ void goto_any_camp_from_overworld(
544544
);
545545
}
546546
stream.log("Arrived at camp...");
547-
context.wait_for(std::chrono::milliseconds((uint64_t)(GameSettings::instance().POST_WARP_DELAY * 1000)));
547+
context.wait_for(GameSettings::instance().POST_WARP_DELAY0);
548548
context.wait_for_all_requests();
549549
}
550550

0 commit comments

Comments
 (0)