Skip to content

Commit a4ef715

Browse files
committed
only check bottom line for languages that need it
1 parent 996abec commit a4ef715

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

SerialPrograms/Source/PokemonSV/Programs/Farming/PokemonSV_AuctionFarmer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
#include "PokemonSwSh/Commands/PokemonSwSh_Commands_DateSpam.h"
3333
#include "PokemonSV_AuctionFarmer.h"
3434

35-
#include <algorithm>
36-
37-
#include "Common/Cpp/PrettyPrint.h"
38-
3935

4036
namespace PokemonAutomation{
4137
namespace NintendoSwitch{
@@ -224,7 +220,11 @@ std::vector<std::pair<AuctionOffer, ImageFloatBox>> AuctionFarmer::check_offers(
224220
// read dialog bubble
225221
ImageFloatBox top_offer_box(0.05, 0.02, 0.90, 0.49);
226222
ImageFloatBox bottom_offer_box(0.05, 0.49, 0.90, 0.49);
227-
std::vector<ImageFloatBox> offer_boxes = {top_offer_box, bottom_offer_box};
223+
std::vector<ImageFloatBox> offer_boxes = {top_offer_box};
224+
if (LANGUAGE == Language::Spanish || LANGUAGE == Language::ChineseTraditional) {
225+
offer_boxes.emplace_back(bottom_offer_box);
226+
}
227+
228228
for (ImagePixelBox dialog_box : dialog_boxes){
229229
for (ImageFloatBox offer_box : offer_boxes) {
230230
// std::cout << "dialog_box: ["

0 commit comments

Comments
 (0)