Skip to content

Commit

Permalink
Logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mysticial committed Oct 6, 2023
1 parent 402bb0b commit a6ad5b6
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,17 @@ void TeraRollFilter::read_card(
? "?"
: std::to_string(data.stars);
std::string tera_type = data.tera_type.empty()
? "unknown tera type"
? "? tera"
: data.tera_type;
std::string pokemon = data.species.empty()
? "unknown " + Pokemon::STRING_POKEMON
? "? " + Pokemon::STRING_POKEMON
: data.species;

console.overlay().add_log(
stars + "* " + tera_type + " " + pokemon,
COLOR_GREEN
);
std::string log = "Detected a " + stars + "* " + tera_type + " " + pokemon;
console.overlay().add_log(log, COLOR_GREEN);
console.log(log);
}
bool TeraRollFilter::check_herba(const std::string& pokemon_slug) const{
Expand Down

0 comments on commit a6ad5b6

Please sign in to comment.