Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ../sp20160826/OpenRA.Mods.Common/Traits/Health.cs 2016-08-23 23:22:08.000000000 +0300
- +++ ./OpenRA.Mods.Common/Traits/Health.cs 2016-08-27 20:14:17.475969761 +0300
- @@ -12,6 +12,7 @@
- using System.Linq;
- using OpenRA.Mods.Common.HitShapes;
- using OpenRA.Traits;
- +using OpenRA.Widgets;
- namespace OpenRA.Mods.Common.Traits
- {
- @@ -148,6 +149,8 @@
- damage = new Damage(Util.ApplyPercentageModifiers(damage.Value, modifiers), damage.DamageTypes);
- }
- + Log.Write("debug", "LUCAS_DAMAGE: " + attacker.Info.Name + " deals damage to " + self.Info.Name + " for " + damage.Value.ToString() + " in time " + WidgetUtils.FormatTime(self.World.WorldTick, true, self.World.Timestep));
- +
- hp = (hp - damage.Value).Clamp(0, MaxHP);
- var ai = new AttackInfo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement