Skip to content

Commit ca81b12

Browse files
pifopiGin890
authored andcommitted
Rename battle to round
1 parent 3be7d1b commit ca81b12

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

SerialPrograms/Source/PokemonLZA/Programs/PokemonLZA_RestaurantFarmer.cpp

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ RestaurantFarmer::~RestaurantFarmer(){
6868
RestaurantFarmer::RestaurantFarmer()
6969
: m_stop_after_current(false)
7070
, NUM_ROUNDS(
71-
"<b>Number of Battles to Run:</b><br>"
72-
"Zero will run until 'Stop after Current Battle' is pressed or the program is manually stopped.</b>",
71+
"<b>Number of Rounds to Run:</b><br>"
72+
"Zero will run until 'Stop after Current Round' is pressed or the program is manually stopped.</b>",
7373
LockMode::UNLOCK_WHILE_RUNNING,
7474
100,
7575
0
@@ -112,22 +112,22 @@ RestaurantFarmer::RestaurantFarmer()
112112

113113
RestaurantFarmer::StopButton::StopButton()
114114
: ButtonOption(
115-
"<b>Stop after current battle:",
116-
"Stop after current battle",
115+
"<b>Stop after current round:",
116+
"Stop after current round",
117117
0, 16
118118
)
119119
{}
120120
void RestaurantFarmer::StopButton::set_idle(){
121121
this->set_enabled(false);
122-
this->set_text("Stop after Current Battle");
122+
this->set_text("Stop after Current Round");
123123
}
124124
void RestaurantFarmer::StopButton::set_ready(){
125125
this->set_enabled(true);
126-
this->set_text("Stop after Current Battle");
126+
this->set_text("Stop after Current Round");
127127
}
128128
void RestaurantFarmer::StopButton::set_pressed(){
129129
this->set_enabled(false);
130-
this->set_text("Program will stop after current battle...");
130+
this->set_text("Program will stop after current round...");
131131
}
132132

133133

@@ -178,7 +178,7 @@ bool RestaurantFarmer::run_lobby(SingleSwitchProgramEnvironment& env, ProControl
178178
case 1:
179179
env.log("Detected selection arrow.");
180180
// This is when the restaurant receptionist is asking whether you want
181-
// to start the battle
181+
// to start the round
182182
pbf_mash_button(context, BUTTON_A, 5000ms);
183183
return false;
184184

@@ -208,7 +208,7 @@ bool RestaurantFarmer::run_lobby(SingleSwitchProgramEnvironment& env, ProControl
208208
}
209209
}
210210
}
211-
void RestaurantFarmer::run_battle(SingleSwitchProgramEnvironment& env, ProControllerContext& context){
211+
void RestaurantFarmer::run_round(SingleSwitchProgramEnvironment& env, ProControllerContext& context){
212212
RestaurantFarmer_Descriptor::Stats& stats = env.current_stats<RestaurantFarmer_Descriptor::Stats>();
213213

214214
WallClock start = current_time();
@@ -246,9 +246,7 @@ void RestaurantFarmer::run_battle(SingleSwitchProgramEnvironment& env, ProContro
246246
env.log("Detected selection arrow. (unexpected)", COLOR_RED);
247247
dump_image(env.console.logger(), env.program_info(), env.console.video(), "UnexpectedSelectionArrow");
248248
stats.errors++;
249-
// stats.battles++;
250249
env.update_stats();
251-
// return;
252250
continue;
253251

254252
case 2:
@@ -268,7 +266,7 @@ void RestaurantFarmer::run_battle(SingleSwitchProgramEnvironment& env, ProContro
268266
env.update_stats();
269267
OperationFailedException::fire(
270268
ErrorReport::SEND_ERROR_REPORT,
271-
"Battle took longer than 30 minutes.",
269+
"Round took longer than 30 minutes.",
272270
env.console
273271
);
274272
}
@@ -392,7 +390,7 @@ void RestaurantFarmer::program(SingleSwitchProgramEnvironment& env, ProControlle
392390
if (run_lobby(env, context)){
393391
break;
394392
}
395-
run_battle(env, context);
393+
run_round(env, context);
396394
}
397395

398396
send_program_finished_notification(env, NOTIFICATION_PROGRAM_FINISH);

SerialPrograms/Source/PokemonLZA/Programs/PokemonLZA_RestaurantFarmer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ class RestaurantFarmer : public SingleSwitchProgramInstance, public ButtonListen
4242

4343
// Handle all the logic of talking to the restaurant receptionist.
4444
// Return true when the user clicks the button STOP_AFTER_CURRENT and the player character stops talking to
45-
// the receptionist. Return false when it enters battle.
45+
// the receptionist. Return false when it enters round.
4646
bool run_lobby(SingleSwitchProgramEnvironment& env, ProControllerContext& context);
47-
// Handle all battle logic. Return when it detects the blue dialog box meaning the player character is at
47+
// Handle all round logic. Return when it detects the blue dialog box meaning the player character is at
4848
// the receptionist receiving reward items.
49-
void run_battle(SingleSwitchProgramEnvironment& env, ProControllerContext& context);
49+
void run_round(SingleSwitchProgramEnvironment& env, ProControllerContext& context);
5050

5151
private:
5252
class StopButton : public ButtonOption{

0 commit comments

Comments
 (0)