Count Spawning Condition

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.

Count Requirement

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.

Properties

Properties

counts

An 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.

streaks

An 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.

Behavior

The spawning condition evaluates to true when:

  1. All counts requirements are satisfied (if any are specified)
  2. All streaks requirements are satisfied (if any are specified)
  3. If no requirements are specified, the condition defaults to true