[ACE] Changing Random Encounters Frequency

I'm trying to make random encounters a little more consistent, so I changed the Create Encounter Count to this:

#-------------------------------------------------------------------------- # * Create Encounter Count #-------------------------------------------------------------------------- def make_encounter_count n = $game_map.encounter_step @encounter_count = rand(n) + n + 1 endMy test map has Steps Average set to 40. Based on that formula, @encounter_count should be set between 41 and 80 for that map.

However, the first two battles I got were after 26 steps and after 36 steps. How come I'm getting encounters lower than 'n'? Am I missing something about how encounters are calculated?

Edit: Never mind, guys! I just found the issue. Looking into the code I've found the culprit:

#-------------------------------------------------------------------------- # * Get Encounter Progress Value #-------------------------------------------------------------------------- def encounter_progress_value value = $game_map.bush?(@x, @y) ? 2 : 1I totally didn't know bush tiles counted as two steps! My test map is basically 95% bush tiles lol

Anyway, problem solved. Sorry for the trouble.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/ace-changing-random-encounters-frequency.24570/