Skip to content
Version 2.11.0
↓ Get the launcher

ImagineCooldownCalc.EffectiveDuration method

Effective per-charge recharge in ms: (validCdMs > 0 ? validCdMs : durMs) × (1 − cdReductionFraction).

public static int EffectiveDuration(int durMs, int validCdMs, float cdReductionFraction)
parameter description
durMs Wire duration (nominal per-charge recharge).
validCdMs Wire valid_cd_time when populated (else 0 → falls back to durMs).
cdReductionFraction Total cooldown reduction, 0..1 (e.g. 0.10 default + attr/10000).