Пример #1
0
 protected virtual void OnDamaged(object sender, DamagedEventArgs e)
 {
     World.SplashBlood(Position2D, Math.Min(0.25f * e.Damage + 0.5f, 4.0f));
 }
Пример #2
0
        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();
        }