|
6 | 6 | * |
7 | 7 | */ |
8 | 8 |
|
9 | | -#include "Common/Cpp/PrettyPrint.h" |
10 | 9 | #include "CommonFramework/Exceptions/ProgramFinishedException.h" |
11 | 10 | #include "CommonFramework/Exceptions/OperationFailedException.h" |
12 | 11 | #include "CommonFramework/Notifications/ProgramNotifications.h" |
@@ -105,12 +104,6 @@ DailyHighlightRNG::DailyHighlightRNG() |
105 | 104 | , m_advanced_options( |
106 | 105 | "<font size=4><b>Advanced Options:</b> You should not need to touch anything below here.</font>" |
107 | 106 | ) |
108 | | - , MOVE_TIME("Move time:", LockMode::LOCK_WHILE_RUNNING, "1280 ms") |
109 | | - , MOVE_TIME2("Move time right:", LockMode::LOCK_WHILE_RUNNING, "1280 ms") |
110 | | - , LEFT_X("Left X:", LockMode::LOCK_WHILE_RUNNING, 207) |
111 | | - , LEFT_Y("Left Y:", LockMode::LOCK_WHILE_RUNNING, 1) |
112 | | - , RIGHT_X("Right X:", LockMode::LOCK_WHILE_RUNNING, 127) |
113 | | - , RIGHT_Y("Right Y:", LockMode::LOCK_WHILE_RUNNING, 127) |
114 | 107 | , MAX_UNKNOWN_ADVANCES( |
115 | 108 | "<b>Max Unknown advances:</b><br>How many advances to check when updating the rng state.", |
116 | 109 | LockMode::LOCK_WHILE_RUNNING, |
@@ -205,7 +198,8 @@ void DailyHighlightRNG::buy_highlight(SingleSwitchProgramEnvironment& env, ProCo |
205 | 198 | ); |
206 | 199 |
|
207 | 200 | if (ret < 0) { |
208 | | - env. |
| 201 | + DailyHighlightRNG_Descriptor::Stats& stats = env.current_stats<DailyHighlightRNG_Descriptor::Stats>(); |
| 202 | + stats.errors++; |
209 | 203 | OperationFailedException::fire( |
210 | 204 | ErrorReport::SEND_ERROR_REPORT, |
211 | 205 | "Could not detect dialog.", |
@@ -249,7 +243,7 @@ uint8_t DailyHighlightRNG::calibrate_num_npc_from_party(SingleSwitchProgramEnvir |
249 | 243 | const uint8_t MAX_NPCS = 6; // Usually either 1 or 2, sometimes 3 or 4, maybe 5 or 6 -> high numbers suggest bad npc state |
250 | 244 | std::vector<Xoroshiro128PlusState> rng_states; |
251 | 245 |
|
252 | | - for (size_t npcs = 0; npcs <= MAX_NPCS; npcs++) { |
| 246 | + for (uint8_t npcs = 0; npcs <= MAX_NPCS; npcs++) { |
253 | 247 | Xoroshiro128PlusState temp_state = predict_state_after_menu_close(rng.get_state(), npcs); |
254 | 248 | Xoroshiro128Plus temp_rng(temp_state); |
255 | 249 |
|
|
0 commit comments