mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
c349afc9e9
@ -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;
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user