Skip to main content

rating_percent_points

Function rating_percent_points 

Source
pub fn rating_percent_points(
    data: &ResolvedGameData,
    rating_type: RatingType,
    amount: f64,
) -> Result<f64, StatsError>
Expand description

Convert raw rating from resolved game data into effective percent points.

Empty introspection data produces a neutral zero instead of requiring rating tables.

ยงErrors

Errors when the level divisor or diminishing-returns curve is unavailable.