mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Addressed comments
This commit is contained in:
parent
51141b2c1a
commit
5f889773b5
@ -125,15 +125,10 @@ impl<'a> System<'a> for Sys {
|
||||
}
|
||||
|
||||
// Weapon gives base damage
|
||||
let source = if is_heal {
|
||||
DamageSource::Healing
|
||||
let (source, healthchange) = if is_heal {
|
||||
(DamageSource::Healing, attack.base_heal as f32)
|
||||
} else {
|
||||
DamageSource::Melee
|
||||
};
|
||||
let healthchange = if is_heal {
|
||||
attack.base_heal as f32
|
||||
} else {
|
||||
-(attack.base_damage as f32)
|
||||
(DamageSource::Melee, -(attack.base_damage as f32))
|
||||
};
|
||||
let mut damage = Damage {
|
||||
healthchange,
|
||||
|
Loading…
Reference in New Issue
Block a user