Function touch_enemy

Source
pub fn touch_enemy(
    rng: &GameRng,
    lookups: &ContentLookups,
    target: &Entity,
) -> bool
Expand description

Native: returns whether target is touched (i.e. did NOT evade). Balance v2: dodge probability follows the DR curve ev/(ev+K_DODGE) (asymptote < 100%, no 100%-dodge cliff) instead of the old linear ev/10000. Consumes exactly one rng draw iff the target has positive evasion rating — matching the old stat_throw’s “draw only when stat > 0” so draw-count is preserved.