# ANTI_VARIANCE_WEIGHT_MODIFIER | pokemon-rogue-battle
Documentation for pokemon-rogue-battle

# Variable ANTI_VARIANCE_WEIGHT_MODIFIER`Const`

ANTI_VARIANCE_WEIGHT_MODIFIER: 15

Will increase/decrease the chance of spawning a ME based on the current run's total MEs encountered vs AVERAGE_ENCOUNTERS_PER_RUN_TARGET Example: AVERAGE_ENCOUNTERS_PER_RUN_TARGET = 17 (expects avg 1 ME every 10 floors) ANTI_VARIANCE_WEIGHT_MODIFIER = 15

On wave 20, if 1 ME has been encountered, the difference from expected average is 0 MEs. So anti-variance adds 0/256 to the spawn weight check for ME spawn.

On wave 20, if 0 MEs have been encountered, the difference from expected average is 1 ME. So anti-variance adds 15/256 to the spawn weight check for ME spawn.

On wave 20, if 2 MEs have been encountered, the difference from expected average is -1 ME. So anti-variance adds -15/256 to the spawn weight check for ME spawn.

- Defined in src/data/mystery-encounters/mystery-encounters.ts:71