Adds support for shouldDynamax and shouldTerastal in trainer parties (#4431)

This commit is contained in:
Alex
2024-04-23 18:54:46 +02:00
committed by GitHub
parent 308475a163
commit aaaccbfe6c

View File

@@ -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)