The counts and streaks properties are added to the condition objects available in spawning files, in order to add the requirement that a particular player have a given score in a given Counter stat.
A CountRequirement defines the minimum threshold for a specific counter type that must be met for the spawning condition to pass. It specifies which counter to check (type), the minimum required value (amount), and optionally which Pokémon species and form to filter by.
type (CounterType): The type of counter to check (e.g., catches, defeats, etc.)amount (Int): The minimum score required for this requirement to be satisfiedspecies (String): The species identifier to filter the counter byform (String?): Optional form name to further filter the counter (can be null)countsAn array of CountRequirement objects that specify minimum counter values that must be met. Each requirement checks the player's total count score for the specified counter type, species, and form combination. All requirements in this array must be satisfied for the spawning condition to pass.
streaksAn array of CountRequirement objects that specify minimum streak values that must be met. Each requirement checks the player's current streak score for the specified counter type, species, and form combination. All requirements in this array must be satisfied for the spawning condition to pass.
The spawning condition evaluates to true when:
counts requirements are satisfied (if any are specified)streaks requirements are satisfied (if any are specified)true