Merge branch 'sam/speed-beam' into 'master'

Fixed how the speed stat was applied to beams.

See merge request veloren/veloren!1732
This commit is contained in:
Samuel Keiffer 2021-01-24 23:23:53 +00:00
commit c349afc9e9

View File

@ -471,8 +471,9 @@ impl CharacterAbility {
} => {
*buildup_duration = (*buildup_duration as f32 / speed) as u64;
*recover_duration = (*recover_duration as f32 / speed) as u64;
*base_hps = (*base_hps as f32 * power) as u32;
*base_dps = (*base_dps as f32 * power) as u32;
// hps and dps adjusted by speed as they are normalized by tick rate already
*base_hps = (*base_hps as f32 * power * speed) as u32;
*base_dps = (*base_dps as f32 * power * speed) as u32;
*tick_rate *= speed;
},
}