Function stat_throw_scaled

Source
pub fn stat_throw_scaled(
    random: &GameRng,
    lookups: &ContentLookups,
    entity: &Entity,
    stat_code: &str,
    bonus: f64,
    scale: f64,
) -> bool
Expand description

stat_throw with the success probability multiplied by scale — the sigmoid-steepening experiments dial down binary per-hit RNG (crit) without touching entity stats. scale = 1.0 is byte-identical to the unscaled throw (same single RNG draw for any positive stat).