Class BeatmapDifficultySection

Constructors

Properties

BASE_DIFFICULTY: number = 5

The default value used for all difficulty settings except slider multiplier and slider tickrate.

Accessors

Methods

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

    Parameters

    • diff: 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.