fix newlines in source files
This commit is contained in:
@@ -78,12 +78,12 @@ namespace OpenRA.Traits
|
||||
/* apply the damage modifiers, if we have any. */
|
||||
var modifier = (float)self.TraitsImplementing<IDamageModifier>()
|
||||
.Concat(self.Owner.PlayerActor.TraitsImplementing<IDamageModifier>())
|
||||
.Select(t => t.GetDamageModifier(attacker, warhead)).Product();
|
||||
.Select(t => t.GetDamageModifier(attacker, warhead)).Product();
|
||||
|
||||
if (!ignoreModifiers)
|
||||
if (!ignoreModifiers)
|
||||
damage = damage > 0 ? (int)(damage * modifier) : damage;
|
||||
|
||||
hp = Exts.Clamp(hp - damage, 0, MaxHP);
|
||||
|
||||
hp = Exts.Clamp(hp - damage, 0, MaxHP);
|
||||
|
||||
var ai = new AttackInfo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user