From aaaccbfe6ce893b0e85acf371546bb67e7be05a1 Mon Sep 17 00:00:00 2001 From: Alex <93446519+AlexOn1ine@users.noreply.github.com> Date: Tue, 23 Apr 2024 18:54:46 +0200 Subject: [PATCH] Adds support for shouldDynamax and shouldTerastal in trainer parties (#4431) --- tools/trainerproc/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/trainerproc/main.c b/tools/trainerproc/main.c index 51a2df8968..de8b7786c4 100644 --- a/tools/trainerproc/main.c +++ b/tools/trainerproc/main.c @@ -1822,12 +1822,18 @@ static void fprint_trainers(const char *output_path, FILE *f, struct Parsed *par fprintf(f, ",\n"); } + if (pokemon->dynamax_level_line || pokemon->gigantamax_factor_line) + { + fprintf(f, " .shouldDynamax = TRUE,\n"); + } + if (pokemon->tera_type_line) { fprintf(f, "#line %d\n", pokemon->tera_type_line); fprintf(f, " .teraType = "); fprint_constant(f, "TYPE", pokemon->tera_type); fprintf(f, ",\n"); + fprintf(f, " .shouldTerastal = TRUE,\n"); } if (pokemon->moves_n > 0)