Skip to content

Commit e06f345

Browse files
committed
Merge
2 parents b71da49 + fb123df commit e06f345

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

SerialPrograms/Source/PokemonLZA/Programs/PokemonLZA_RestaurantFarmer.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,14 @@ RestaurantFarmer::RestaurantFarmer()
7171
100,
7272
0
7373
)
74-
, MOVE_AI(
74+
, GO_HOME_WHEN_DONE(false)
75+
, NOTIFICATION_STATUS_UPDATE("Status Update", true, false, std::chrono::seconds(3600)),
76+
NOTIFICATIONS({
77+
&NOTIFICATION_STATUS_UPDATE,
78+
&NOTIFICATION_PROGRAM_FINISH,
79+
&NOTIFICATION_ERROR_FATAL,
80+
}),
81+
MOVE_AI(
7582
"<b>Move Selection AI:</b><br>"
7683
"If enabled, it will be smarter with move selection.<br>"
7784
"However, this adds a split-second delay which may cause the opponent attacks to land first.",
@@ -84,14 +91,7 @@ RestaurantFarmer::RestaurantFarmer()
8491
"However, this adds a 320ms delay which may cause the opponent attacks to land first.",
8592
LockMode::UNLOCK_WHILE_RUNNING,
8693
false
87-
)
88-
, GO_HOME_WHEN_DONE(false),
89-
NOTIFICATION_STATUS_UPDATE("Status Update", true, false, std::chrono::seconds(3600)),
90-
NOTIFICATIONS({
91-
&NOTIFICATION_STATUS_UPDATE,
92-
&NOTIFICATION_PROGRAM_FINISH,
93-
&NOTIFICATION_ERROR_FATAL,
94-
}) {
94+
) {
9595
PA_ADD_OPTION(STOP_AFTER_CURRENT);
9696
PA_ADD_OPTION(MOVE_AI);
9797
PA_ADD_OPTION(USE_PLUS_MOVES);

SerialPrograms/Source/PokemonLZA/Programs/PokemonLZA_RestaurantFarmer.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ class RestaurantFarmer : public SingleSwitchProgramInstance, public ButtonListen
6161
std::atomic<bool> m_stop_after_current;
6262
StopButton STOP_AFTER_CURRENT;
6363
SimpleIntegerOption<uint32_t> NUM_ROUNDS;
64+
GoHomeWhenDoneOption GO_HOME_WHEN_DONE;
65+
EventNotificationOption NOTIFICATION_STATUS_UPDATE;
66+
EventNotificationsOption NOTIFICATIONS;
67+
6468
BooleanCheckBoxOption MOVE_AI;
6569
BooleanCheckBoxOption USE_PLUS_MOVES;
6670
GoHomeWhenDoneOption GO_HOME_WHEN_DONE;

0 commit comments

Comments
 (0)