Function class_counter_multiplier

Source
pub fn class_counter_multiplier(
    lookups: &ContentLookups,
    attacker: Option<Uuid>,
    defender: Option<Uuid>,
) -> f64
Expand description

Soft 3-cycle damage multiplier for an attacker class hitting a defender class (both Option, resolved via lookups.class_counter_role). Returns 1 + CLASS_COUNTER_SWING when the attacker’s role beats the defender’s, 1 - CLASS_COUNTER_SWING when it is beaten, and 1.0 otherwise (same role, either neutral, or a classless PvE mob).