protected virtual void OnDamaged(object sender, DamagedEventArgs e) { World.SplashBlood(Position2D, Math.Min(0.25f * e.Damage + 0.5f, 4.0f)); }
protected override void OnDamaged(object sender, DamagedEventArgs e) { base.OnDamaged(sender, e); if (!IsInfected && e.HasAttacker && e.Attacker.HasComponent<Zombie>() && Tools.Random.NextDouble() < 0.37) Infect(); }