Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. --- ../sp20160826/OpenRA.Mods.Common/Traits/Health.cs 2016-08-23 23:22:08.000000000 +0300
  2. +++ ./OpenRA.Mods.Common/Traits/Health.cs 2016-08-27 20:14:17.475969761 +0300
  3. @@ -12,6 +12,7 @@
  4. using System.Linq;
  5. using OpenRA.Mods.Common.HitShapes;
  6. using OpenRA.Traits;
  7. +using OpenRA.Widgets;
  8.  
  9. namespace OpenRA.Mods.Common.Traits
  10. {
  11. @@ -148,6 +149,8 @@
  12. damage = new Damage(Util.ApplyPercentageModifiers(damage.Value, modifiers), damage.DamageTypes);
  13. }
  14.  
  15. + 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));
  16. +
  17. hp = (hp - damage.Value).Clamp(0, MaxHP);
  18.  
  19. var ai = new AttackInfo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement