Class DifficultyRange

Constructors

Properties

Methods

Constructors

Properties

average: number
max: number
min: number
result: HitResult

Methods

  • Maps a difficulty value [0, 10] to a two-piece linear range of values.

    Parameters

    • difficulty: number

      The difficulty value to be mapped.

    • min: number

      Minimum of the resulting range which will be achieved by a difficulty value of 0.

    • mid: number

      Midpoint of the resulting range which will be achieved by a difficulty value of 5.

    • max: number

      Maximum of the resulting range which will be achieved by a difficulty value of 10.

    Returns number

    Value to which the difficulty value maps in the specified range.