mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Added check for 0 combo in healing aura strength equation
This commit is contained in:
parent
65ff2fb193
commit
68725a0131
@ -84,7 +84,8 @@ impl CharacterBehavior for Data {
|
||||
category: _,
|
||||
source: _,
|
||||
} => {
|
||||
data.strength *= 1.0 + (combo as f32).log(2.0_f32);
|
||||
data.strength *=
|
||||
1.0 + (if combo > 0 { combo } else { 1 } as f32).log(2.0_f32);
|
||||
},
|
||||
}
|
||||
update.server_events.push_front(ServerEvent::ComboChange {
|
||||
|
Loading…
Reference in New Issue
Block a user