Function veloren_common::states::utils::tick_attack_or_default
source ยท pub fn tick_attack_or_default(
data: &JoinData<'_>,
timer: Duration,
other_modifier: Option<f32>,
) -> Duration
Expand description
Ticks timer
by dt
, applying relevant stat attack modifiers and
other_modifier
. Returns Duration::default()
if overflow occurs