Encounter Rate

A property of rooms, encounter rate is a hidden variable that affects random encounter generation.

Maths
With every room that is entered, an "encounter chances" counter is incremented by the encounter rate. Then, the probability of a random encounter is:

1 - e-counter/100

If a random encounter occurs, the counter is reset to zero.

Safe zones have a large negative encounter rate, which has the effect of immediately reducing the counter to zero and keeping it there. Some specific rooms are hardcoded to have no random encounters, either the first time they are entered or on a permanent basis. These are different from safe zones in that the counter is not reduced to zero but rather continues to increment. Finally, hardcoded encounters will prevent random encounters from occurring simultaneously, although this does not reset the counter either.

Table of Encounter Rates
Random encounters can occur in the following areas: