Exemple #1
0
        public override void Destroy(DestroyMode mode = DestroyMode.Vanish)
        {
            ListerDroids.DeregisterDroid(this);

            base.Destroy(mode);
            if (mode == DestroyMode.Kill)
            {
                Messages.Message(this.LabelBase + " was destroyed!", MessageSound.Negative);
                if (meta.ExplodeOnDeath)
                {
                    GenExplosion.DoExplosion(this.Position, meta.ExplosionRadius, DamageDefOf.Bomb, this);
                }
            }
        }
Exemple #2
0
 public override void DeSpawn()
 {
     ListerDroids.DeregisterDroid(this);
     base.DeSpawn();
 }